|
@@ -849,7 +849,7 @@ export default { |
|
|
rec_index_todo: false, |
|
|
rec_index_todo: false, |
|
|
rec_index_receflag: false, |
|
|
rec_index_receflag: false, |
|
|
rec_index_textyh: false, |
|
|
rec_index_textyh: false, |
|
|
|
|
|
|
|
|
|
|
|
mistakenList:[], |
|
|
outSpeechSkillList: [], // 导出话术列表 |
|
|
outSpeechSkillList: [], // 导出话术列表 |
|
|
isNum:false, |
|
|
isNum:false, |
|
|
searchText:"", |
|
|
searchText:"", |
|
@@ -1469,12 +1469,18 @@ export default { |
|
|
|
|
|
|
|
|
//常错词确认 |
|
|
//常错词确认 |
|
|
subMsg() { |
|
|
subMsg() { |
|
|
|
|
|
if (this.mistakenList.indexOf(this.form.wrongWord) != -1) { |
|
|
|
|
|
this.$message.error("错误词已添加过~"); |
|
|
|
|
|
return; |
|
|
|
|
|
}else{ |
|
|
if(this.form.wrongWord.length>8){ |
|
|
if(this.form.wrongWord.length>8){ |
|
|
this.$message.warning("常错词不能超过8个字!"); |
|
|
this.$message.warning("常错词不能超过8个字!"); |
|
|
}else{ |
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
}else{ |
|
|
let reg = /^[0-9]+$/ |
|
|
let reg = /^[0-9]+$/ |
|
|
if(reg.test(this.form.wrongWord)){ |
|
|
if(reg.test(this.form.wrongWord)){ |
|
|
this.$message.warning("常错词不能为纯数字!"); |
|
|
this.$message.warning("常错词不能为纯数字!"); |
|
|
|
|
|
return; |
|
|
}else{ |
|
|
}else{ |
|
|
this.$refs.form.validate((valid) => { |
|
|
this.$refs.form.validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
@@ -1490,7 +1496,9 @@ export default { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
//常错词提交 |
|
|
//常错词提交 |
|
|
subWrongMsg() { |
|
|
subWrongMsg() { |
|
@@ -1518,6 +1526,7 @@ export default { |
|
|
|
|
|
|
|
|
//常错词点击 |
|
|
//常错词点击 |
|
|
checkMsg(row, index) { |
|
|
checkMsg(row, index) { |
|
|
|
|
|
this.correctListFun() |
|
|
if (this.rec_index_wrongword == false) { |
|
|
if (this.rec_index_wrongword == false) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@@ -1534,6 +1543,17 @@ export default { |
|
|
this.isNum = true |
|
|
this.isNum = true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
correctListFun() { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
houseId : localStorage.getItem("houseId") |
|
|
|
|
|
}; |
|
|
|
|
|
this.$api.api.correctList(obj).then((res) => { |
|
|
|
|
|
this.mistakenList = res.data.map((item) => { |
|
|
|
|
|
return item.wrongWord; |
|
|
|
|
|
}); |
|
|
|
|
|
console.log(this.mistakenList, this.correctList); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
// 销讲词禁忌tab |
|
|
// 销讲词禁忌tab |
|
|
recordclick(i) { |
|
|
recordclick(i) { |
|
|
this.zhixingcenterindex = i; |
|
|
this.zhixingcenterindex = i; |
|
|