[update] 修改选人组件的全选

This commit is contained in:
lideqin
2024-02-23 09:08:43 +08:00
parent 1aefabb223
commit 35ed990a05
4 changed files with 48 additions and 33 deletions
@@ -167,7 +167,7 @@ export default {
}
}
},
dataSource: {
currentQueryAllData: {
immediate: true,
handler (val) {
console.log(this.currentQueryAllData)
@@ -265,8 +265,11 @@ export default {
this.loadData()
},
methods: {
open (value) {
async open (value) {
this.visible = true
if (this.type === 'checkbox') {
await this.getCurrentAllData()
}
this.loadData()
if (value) {
this.selectedRowKeys = value.split(',')
@@ -284,10 +287,13 @@ export default {
})
},
// 左侧树点击选中
treeSelect (selectedKeys) {
async treeSelect (selectedKeys) {
console.log(selectedKeys)
this.currentTreeNode = selectedKeys
this.queryParam.workingGroupId = selectedKeys[0]
if (this.type === 'checkbox') {
await this.getCurrentAllData()
}
this.loadData()
},
// 获取左侧树数据
@@ -362,16 +368,16 @@ export default {
this.queryParam = {}
this.loadData()
},
searchQuery () {
async searchQuery () {
this.isClickedSearch = true
this.loadData()
},
// 获取用户左侧树列表
async loadData () {
this.loadingLeft = true
if (this.type === 'checkbox') {
await this.getCurrentAllData()
}
this.loadData()
},
// 获取用户左侧树列表
loadData () {
this.loadingLeft = true
const params = Object.assign({}, this.queryParam)
params.pageNo = this.ipagination.current
params.pageSize = this.ipagination.pageSize