tyxydm.vue 851 Bytes
<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>