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

<style scoped lang="scss">

</style>
