[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, deep: true,
handler (val) { handler (val) {
console.log(this.currentQueryAllData) 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 arrTwo = this.dataSourceRight.map(item => item.id)
const temp = [] const temp = []
for (const item of arrTwo) { for (const item of arrTwo) {
@@ -157,7 +157,7 @@ export default {
deep: true, deep: true,
handler (val) { handler (val) {
console.log(this.currentQueryAllData) 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 arrTwo = this.dataSourceRight.map(item => item.id)
const temp = [] const temp = []
for (const item of arrTwo) { for (const item of arrTwo) {
@@ -299,7 +299,7 @@ export default {
this.checkCurrentAll() this.checkCurrentAll()
} else { } else {
const field = 'id' 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]) this.selectedRowKeys = JSON.parse(JSON.stringify(this.dataSourceRight)).map(item => item[field])
} }
}, },
@@ -343,9 +343,9 @@ export default {
const params = Object.assign({}, this.queryParam) const params = Object.assign({}, this.queryParam)
// params.pageNo = 1 // params.pageNo = 1
// params.pageSize = 100000000 // params.pageSize = 100000000
// params.field = 'id,avatar,username,realname,sex_dictText,phone,orgCodeTxt,roleTxt,status_dictText' params.field = 'id,avatar,username,realname,sex_dictText,phone,orgCodeTxt,roleTxt,status_dictText'
// params.column = 'createTime' params.column = 'createTime'
// params.order = 'desc' params.order = 'desc'
await getAction(this.url.queryList, params).then(res => { await getAction(this.url.queryList, params).then(res => {
if (res.success) { if (res.success) {
this.currentQueryAllData = res.result.records || [] this.currentQueryAllData = res.result.records || []