From f9cf8d0e85fec6c9bbce5c82f88c6ba9ccb325dd Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Mon, 9 Jan 2023 10:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Customer/label.vue | 19 +++++++++++++------ src/views/Template/requiremining.vue | 2 +- src/views/Template/taboo.vue | 8 ++++---- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/views/Customer/label.vue b/src/views/Customer/label.vue index 30c88ea..7a6c0e6 100644 --- a/src/views/Customer/label.vue +++ b/src/views/Customer/label.vue @@ -621,11 +621,11 @@ export default { } }).then(data => { this.moxingVisible = false - if(data.data.res==1){ - this.$message.success(data.data.obj) + if(data.code==0){ + this.$message.success(data.data) this.getorgCode() }else{ - this.$message.error(data.data.resMsg) + this.$message.error(data.msg) } }).catch((e)=>{ this.moxingVisible = false @@ -647,7 +647,7 @@ export default { keywordsId: data.id } }).then(res => { - console.log(res) + // console.log(res) this.moxingVisible = true if (res.code == 0) { let obj = res.data @@ -704,8 +704,15 @@ export default { houseId:this.houseId }, }).then((res) => { - this.dialogVisible2=false; - this.getHouse() + if(res.code ==0){ + this.dialogVisible2=false; + this.getHouse() + }else{ + this.$message({ + message: res.msg||'添加失败', + type: "error", + }); + } }) }else{ this.$message({ diff --git a/src/views/Template/requiremining.vue b/src/views/Template/requiremining.vue index 6b70d46..9d0f243 100644 --- a/src/views/Template/requiremining.vue +++ b/src/views/Template/requiremining.vue @@ -775,7 +775,7 @@ export default { url: `/autoSR/zk/keywords/setWordLevel`, method: "get", params: { - houseI: this.houseId, + houseId: this.houseId, level: this.frosasd.setVal, keywordId: this.frosasd.id }, diff --git a/src/views/Template/taboo.vue b/src/views/Template/taboo.vue index 57d8233..9d1b04c 100644 --- a/src/views/Template/taboo.vue +++ b/src/views/Template/taboo.vue @@ -740,10 +740,10 @@ export default { editor() { this.$refs.ruleForm.validate((valid) => { if (valid) { - if (this.hasOwn.indexOf(this.ruleForm.words) != -1) { - this.$message.error("该敏感词已存在"); - return; - } + // if (this.hasOwn.indexOf(this.ruleForm.words) != -1) { + // this.$message.error("该敏感词已存在"); + // return; + // } this.loadingFlag = true; if (this.editFlag == false) { this.$api.http