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 || []