[update] 选用户组件查询当前查询条件下所有用户换接口

This commit is contained in:
lideqin
2024-08-14 11:46:27 +08:00
parent 496e5c8f32
commit c13b7f5417
+6 -6
View File
@@ -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 || []