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

<style scoped lang="scss">

</style>
