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

<style scoped lang="scss">

</style>
