|
|
@@ -818,44 +818,45 @@ |
|
|
|
this.wajueshow = true |
|
|
|
return; |
|
|
|
} |
|
|
|
let flag = true |
|
|
|
|
|
|
|
this.wajueshow = true |
|
|
|
if(flag){ |
|
|
|
flag = false |
|
|
|
} |
|
|
|
uni.request({ |
|
|
|
url: config.service.addWordMining, |
|
|
|
method: "post", |
|
|
|
header: { |
|
|
|
'content-type': 'application/json', |
|
|
|
'Access-Token': uni.getStorageSync('weapp_session_login_data').token |
|
|
|
}, |
|
|
|
data: { |
|
|
|
"houseId": this.buildingID, // 楼盘id |
|
|
|
"cusId": this.customerId, //客户id |
|
|
|
"question": this.thewrongword, // 问题 |
|
|
|
"keywordsId": this.wordBiao.wordBiaoqianId, // 标签id |
|
|
|
"level": this.wordBiao.level // 标签等级 |
|
|
|
}, |
|
|
|
success: (res) => { |
|
|
|
// console.log(res) |
|
|
|
flag = true; |
|
|
|
if (res.data.code == 10000) { |
|
|
|
uni.showToast({ |
|
|
|
title: '添加成功', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
this.wajueshow = false |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: res.data.message, |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
this.wajueshow = false |
|
|
|
if(!this.flag){ |
|
|
|
this.flag = true |
|
|
|
uni.request({ |
|
|
|
url: config.service.addWordMining, |
|
|
|
method: "post", |
|
|
|
header: { |
|
|
|
'content-type': 'application/json', |
|
|
|
'Access-Token': uni.getStorageSync('weapp_session_login_data').token |
|
|
|
}, |
|
|
|
data: { |
|
|
|
"houseId": this.buildingID, // 楼盘id |
|
|
|
"cusId": this.customerId, //客户id |
|
|
|
"question": this.thewrongword, // 问题 |
|
|
|
"keywordsId": this.wordBiao.wordBiaoqianId, // 标签id |
|
|
|
"level": this.wordBiao.level // 标签等级 |
|
|
|
}, |
|
|
|
success: (res) => { |
|
|
|
// console.log(res) |
|
|
|
this.flag = false; |
|
|
|
if (res.data.code == 10000) { |
|
|
|
uni.showToast({ |
|
|
|
title: '添加成功', |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
this.wajueshow = false |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: res.data.message, |
|
|
|
icon: 'none', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
this.wajueshow = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 挖掘话术分类树的选择 |
|
|
|
confirmTree(e) { |
|
|
|