<template>
  <div>
    <template v-if="this.row.wqyxxfyyzz">
      <el-link type="primary" @click="onClick">{{ row.wqyxxftyshxydm ? row.wqyxxftyshxydm : "-" }}</el-link>
    </template>
    <template v-else>
      <el-link type="primary" target="_blank">{{ row.wqyxxftyshxydm ? row.wqyxxftyshxydm : "-" }}</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.wqyxxftyshxydm){return false;}
      window.open(
        this.$requestConfig.filePreview(JSON.parse(this.row.wqyxxfyyzz)[0].response.fileId)
      );
    }
  }
};
</script>

<style scoped lang="scss">

</style>
