From c13b7f5417bcc34b3d6032223f991b4b0fc3689e Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 14 Aug 2024 11:46:27 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E9=80=89=E7=94=A8=E6=88=B7=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=9F=A5=E8=AF=A2=E5=BD=93=E5=89=8D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E4=B8=8B=E6=89=80=E6=9C=89=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=8D=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/selection/UserSelectModal.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/selection/UserSelectModal.vue b/src/components/selection/UserSelectModal.vue index 806573c..0a131c7 100644 --- a/src/components/selection/UserSelectModal.vue +++ b/src/components/selection/UserSelectModal.vue @@ -138,7 +138,7 @@ export default { deep: true, handler (val) { console.log(this.currentQueryAllData) - const arrOne = this.currentQueryAllData.map(item => item.id) + const arrOne = this.currentQueryAllData const arrTwo = this.dataSourceRight.map(item => item.id) const temp = [] for (const item of arrTwo) { @@ -157,7 +157,7 @@ export default { deep: true, handler (val) { console.log(this.currentQueryAllData) - const arrOne = this.currentQueryAllData.map(item => item.id) + const arrOne = this.currentQueryAllData const arrTwo = this.dataSourceRight.map(item => item.id) const temp = [] for (const item of arrTwo) { @@ -299,7 +299,7 @@ export default { this.checkCurrentAll() } else { const field = 'id' - this.dataSourceRight = this.dataSourceRight.filter(item => !this.currentQueryAllData.some(i => i[field] === item[field])) + this.dataSourceRight = this.dataSourceRight.filter(item => !this.currentQueryAllData.some(i => i === item[field])) this.selectedRowKeys = JSON.parse(JSON.stringify(this.dataSourceRight)).map(item => item[field]) } }, @@ -343,9 +343,9 @@ export default { const params = Object.assign({}, this.queryParam) // params.pageNo = 1 // params.pageSize = 100000000 - // params.field = 'id,avatar,username,realname,sex_dictText,phone,orgCodeTxt,roleTxt,status_dictText' - // params.column = 'createTime' - // params.order = 'desc' + params.field = 'id,avatar,username,realname,sex_dictText,phone,orgCodeTxt,roleTxt,status_dictText' + params.column = 'createTime' + params.order = 'desc' await getAction(this.url.queryList, params).then(res => { if (res.success) { this.currentQueryAllData = res.result.records || []