|
@@ -70,9 +70,13 @@
|
70
|
70
|
<!-- <chatGroup v-if="acIdx == 3"></chatGroup>-->
|
71
|
71
|
<order v-if="acIdx == 4" :rowProp="rowProp"></order>
|
72
|
72
|
</div>
|
73
|
|
-
|
74
|
|
- <el-dialog v-loading="dialogLoading" title="选择企业标签" :visible.sync="comLableShow" :append-to-body="true" class="addLable_dialog" width="30%">
|
75
|
|
- <div class="addLableBox">
|
|
73
|
+ <el-dialog
|
|
74
|
+ title="选择企业标签"
|
|
75
|
+ :visible.sync="comLableShow"
|
|
76
|
+ :append-to-body="true"
|
|
77
|
+ class="addLable_dialog"
|
|
78
|
+ width="30%">
|
|
79
|
+ <div class="addLableBox" v-loading="dialogLoading">
|
76
|
80
|
<!--后台说先不做-->
|
77
|
81
|
<template v-if="false">
|
78
|
82
|
<div class="add" @click="iptshow = true,addLableVal = ''">+ 添加</div>
|
|
@@ -96,8 +100,8 @@
|
96
|
100
|
+新建标签组
|
97
|
101
|
</div>
|
98
|
102
|
<div>
|
99
|
|
- <el-button size="mini" @click="comLableShow = false">取 消</el-button>
|
100
|
|
- <el-button size="mini" type="primary" @click="edit_tag">确 定</el-button>
|
|
103
|
+ <el-button :disabled="dialogLoading" size="mini" @click="comLableShow = false">取 消</el-button>
|
|
104
|
+ <el-button :disabled="dialogLoading" size="mini" type="primary" @click="edit_tag">确 定</el-button>
|
101
|
105
|
</div>
|
102
|
106
|
</div>
|
103
|
107
|
</el-dialog>
|
|
@@ -209,14 +213,8 @@ export default {
|
209
|
213
|
chatRecord,
|
210
|
214
|
order,
|
211
|
215
|
},
|
212
|
|
- methods: {
|
213
|
|
- onPerson () {
|
214
|
|
-
|
215
|
|
- },
|
216
|
|
- nextPerson () {
|
217
|
|
-
|
218
|
|
- },
|
219
|
|
- edit_tag () {//选择企业标签框的确定
|
|
216
|
+ methods:{
|
|
217
|
+ edit_tag(){//选择企业标签框的确定
|
220
|
218
|
// this.comLableShow = true
|
221
|
219
|
this.dialogLoading = true
|
222
|
220
|
this.$axios.post(this.URL.BASEURL + this.URL.tag_detial_edit, {
|
|
@@ -237,27 +235,32 @@ export default {
|
237
|
235
|
this.dialogLoading = false
|
238
|
236
|
})
|
239
|
237
|
},
|
240
|
|
- init_tag () {
|
|
238
|
+ init_tag(){//点击企业标签编辑,初始化标签列表
|
241
|
239
|
this.comLableShow = true
|
242
|
|
- this.$axios.get(this.URL.BASEURL + this.URL.tag_detial_list, {
|
243
|
|
- params: {
|
244
|
|
- customer_id: this.rowProp.customer_id,
|
245
|
|
- user_id: this.rowProp.user_id
|
|
240
|
+ this.dialogLoading = true
|
|
241
|
+ this.$axios.get(this.URL.BASEURL + this.URL.tag_detial_list,{
|
|
242
|
+ params:{
|
|
243
|
+ customer_id:this.rowProp.customer_id,
|
|
244
|
+ user_id:this.rowProp.user_id
|
246
|
245
|
}
|
247
|
246
|
}).then((res) => {
|
248
|
247
|
res = res.data
|
249
|
248
|
this.lableArr = res.rst
|
250
|
|
-
|
251
|
|
- this.lableArr_checked = []
|
252
|
|
- res.rst.forEach(l => {
|
253
|
|
- l.tag_list.forEach(t => {
|
254
|
|
- if (t.selected == 1) {
|
|
249
|
+ this.lableArr_checked=[]
|
|
250
|
+ res.rst.forEach(l=>{
|
|
251
|
+ l.tag_list.forEach(t=>{
|
|
252
|
+ if(t.selected == 1){
|
255
|
253
|
this.lableArr_checked.push(t.tag_id)
|
256
|
254
|
}
|
257
|
255
|
})
|
258
|
256
|
})
|
259
|
|
- console.log(this.lableArr_checked, ' this.lableArr_checked');
|
260
|
|
-
|
|
257
|
+ this.dialogLoading = false
|
|
258
|
+ }).catch(err=>{
|
|
259
|
+ this.$message({
|
|
260
|
+ message: '服务故障,请稍候再试',
|
|
261
|
+ type: "warning"
|
|
262
|
+ })
|
|
263
|
+ this.dialogLoading = false
|
261
|
264
|
})
|
262
|
265
|
},
|
263
|
266
|
init () {
|