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

<style scoped lang="scss">

</style>
