jyxkzbh.vue
866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<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>