diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 29b0f6ea..8bfeb169 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -370,6 +370,10 @@ export default { } } ] + }, + + queryType:{ + 'AGENCY_ID':'like' } } }, @@ -540,7 +544,7 @@ export default { // 监听基础form handleChangeForm(val) { for (let n in this.fixedForm) { - debugger + if (n === val) { if (this.fixedList.length > 0) { let _item = {} @@ -553,7 +557,7 @@ export default { console.log('fixedList----val', this.fixedList) } else { _item = { - queryType: 'like',//'equal', + queryType: this.queryType[val]?this.queryType[val]:'equal',//'equal', tableName: 'ic_resi_user', columnName: val, columnValue: [this.form[val]] @@ -565,7 +569,7 @@ export default { if (Object.keys(_item).length > 0 && !hasVal) this.fixedList.push(_item) } else { this.$set(this.fixedList, 0, { - queryType: 'like',//'equal', + queryType: this.queryType[val]?this.queryType[val]:'equal',//'equal', tableName: 'ic_resi_user', columnName: val, columnValue: [this.form[val]] @@ -587,7 +591,8 @@ export default { return this.$message.error(res.msg) } else { console.log('获取组织树成功', res.data) - this.orgOptions = res.data + this.orgOptions=[] + this.orgOptions .push( res.data) } }) .catch(() => {