|
@@ -20,11 +20,19 @@
|
20
|
20
|
</template>
|
21
|
21
|
<template slot-scope="scope">
|
22
|
22
|
<div v-if="item.prop=='type'">
|
23
|
|
-
|
|
23
|
+ <span v-if="scope.row.type==1">链接</span>
|
|
24
|
+ <span v-else-if="scope.row.type==2">PDF</span>
|
|
25
|
+ <span v-else-if="scope.row.type==3">图片</span>
|
|
26
|
+ <span v-else-if="scope.row.type==4">视频</span>
|
|
27
|
+ <span v-else="scope.row.type==1">-</span>
|
24
|
28
|
</div>
|
25
|
|
-
|
26
|
|
-
|
27
|
|
- <div>{{scope.row[item.prop] ||scope.row[item.prop]==0 ? scope.row[item.prop] : '-'}}</div>
|
|
29
|
+ <div v-else-if="item.prop=='tag_list'">
|
|
30
|
+ <template v-if="scope.row.tag_list&&scope.row.tag_list.length==0 || !scope.row.tag_list">-</template>
|
|
31
|
+ <div class="customerServiceTagBox biaoqian" v-else>
|
|
32
|
+ <div class="customerServiceTag" v-for="(item,index) in scope.row.tag_list" :key="index+'biaoqian'">{{item}}</div>
|
|
33
|
+ </div>
|
|
34
|
+ </div>
|
|
35
|
+ <div v-else>{{scope.row[item.prop] ||scope.row[item.prop]==0 ? scope.row[item.prop] : '-'}}</div>
|
28
|
36
|
</template>
|
29
|
37
|
</el-table-column>
|
30
|
38
|
</template>
|
|
@@ -34,8 +42,10 @@
|
34
|
42
|
<template slot-scope="scope">
|
35
|
43
|
<div class="flex">
|
36
|
44
|
<div class="c-00B38A pointer">编辑</div>
|
37
|
|
- <div class="c-00B38A pointer lMar8">删除</div>
|
38
|
|
- <div class="c-00B38A pointer lMar8" @click="goDataAanlyse(scope.row.id)">分析数据</div>
|
|
45
|
+ <el-popconfirm @confirm="deleRadar(scope.row.radar_id)" :title="`确定删除【${scope.row.name}】渠道活码?`">
|
|
46
|
+ <div slot="reference" class="c-00B38A pointer lMar8">删除</div>
|
|
47
|
+ </el-popconfirm>
|
|
48
|
+ <div class="c-00B38A pointer lMar8" @click="goDataAanlyse(scope.row.radar_id)">分析数据</div>
|
39
|
49
|
</div>
|
40
|
50
|
</template>
|
41
|
51
|
</el-table-column>
|
|
@@ -86,6 +96,24 @@ export default {
|
86
|
96
|
goDataAanlyse(id){
|
87
|
97
|
this.$router.push('/radar_dataAnalyse/'+id)
|
88
|
98
|
},
|
|
99
|
+ deleRadar(id){
|
|
100
|
+ this.loading = true
|
|
101
|
+ this.$axios.post(this.URL.BASEURL + this.URL.radar_radarDele, {
|
|
102
|
+ radar_id:id
|
|
103
|
+ }).then((res) => {
|
|
104
|
+ var res = res.data
|
|
105
|
+ this.loading = false
|
|
106
|
+ this.$message({
|
|
107
|
+ message: res.err,
|
|
108
|
+ type: "warning"
|
|
109
|
+ })
|
|
110
|
+ if (res && res.errno == 0) {
|
|
111
|
+ this.init(1)
|
|
112
|
+ }
|
|
113
|
+ }).catch((err) => {
|
|
114
|
+ this.loading = false
|
|
115
|
+ });
|
|
116
|
+ },
|
89
|
117
|
init (page) {
|
90
|
118
|
this.page = page ? page : this.page;
|
91
|
119
|
this.loading = true
|