From fe977bd7b84235dc9e667a408d3a79a991d59242 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 21 Jun 2022 09:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E4=BF=A1=E6=81=AF=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiSearch.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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(() => {