Blame view

frontend/front/src/components/tableSlot/qzgl/tyxydm.vue 851 Bytes
8d73e917   陈威   初始化提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<template>
  <div>
    <template v-if="this.row.wczxxfyyzz">
      <el-link type="primary" @click="onClick">{{ row.wczxxftyshxydm ? row.wczxxftyshxydm : "-" }}</el-link>
    </template>
    <template v-else>
      <el-link type="primary" target="_blank">{{ row.wczxxftyshxydm ? row.wczxxftyshxydm : "-" }}</el-link>
    </template>
  </div>
</template>
<script>

export default {
  props: {
    row: {
      type: Object
    },
    column: {
      type: Object
    },
    index: {
      type: String
    },
    desc: {
      type: String
    }
  },

  data: () => ({}),

  created() {

  },
  methods: {
    onClick() {
      if(!this.row.wczxxftyshxydm){return false;}
      window.open(
        this.$requestConfig.filePreview(JSON.parse(this.row.wczxxfyyzz)[0].response.fileId)
      );
    }
  }
};
</script>

<style scoped lang="scss">

</style>