Commit 8fb5df0a authored by zhang's avatar zhang

fix: (检测内容/实施细则)修改条件查询不能更新的bug

parent 877dc5c1
......@@ -210,11 +210,6 @@ export default {
return node
})
},
/**
* 任务:
* 1.chapter去重
* 2.将类型映射位中文可渲染形式
*/
async loadData() {
this.loading = true
......
......@@ -344,7 +344,7 @@ export default {
// 公共组件左侧标准全局变量选中
'$store.getters.standardObj': {
handler(newVal, oldVal) {
if(newVal.id == oldVal.id && newVal.type == oldVal.type && newVal.chapter == oldVal.chapter && newVal.name == oldVal.name){
if(newVal.id == oldVal.id && newVal.type == oldVal.type && newVal.chapter == oldVal.chapter && newVal.name == oldVal.name && newVal.text == oldVal.text){
console.log(true)
}else{
this.queryParams.standardId = newVal.id
......@@ -539,9 +539,10 @@ export default {
},2000)
this.queryParams.text = this.searchQueryParams.text
let obj = {
id:this.$store.getters.standardObj.id,
id: this.$store.getters.standardObj.id,
type: this.$store.getters.standardObj.type,
chapter: this.searchQueryParams.chapter
chapter: this.searchQueryParams.chapter,
text: this.searchQueryParams.text,
}
this.$store.dispatch('standard/setStandardObj', obj)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment