[update] 修改选人组件的全选
This commit is contained in:
@@ -114,7 +114,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dataSource: {
|
currentQueryAllData: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true,
|
deep: true,
|
||||||
handler (val) {
|
handler (val) {
|
||||||
@@ -210,8 +210,11 @@ export default {
|
|||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open (value) {
|
async open (value) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
if (this.type === 'checkbox') {
|
||||||
|
await this.getCurrentAllData()
|
||||||
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
if (value) {
|
if (value) {
|
||||||
this.selectedRowKeys = value.split(',')
|
this.selectedRowKeys = value.split(',')
|
||||||
@@ -269,16 +272,16 @@ export default {
|
|||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
searchQuery () {
|
async searchQuery () {
|
||||||
this.isClickedSearch = true
|
this.isClickedSearch = true
|
||||||
this.loadData()
|
|
||||||
},
|
|
||||||
// 获取用户左侧树列表
|
|
||||||
async loadData () {
|
|
||||||
this.loadingLeft = true
|
|
||||||
if (this.type === 'checkbox') {
|
if (this.type === 'checkbox') {
|
||||||
await this.getCurrentAllData()
|
await this.getCurrentAllData()
|
||||||
}
|
}
|
||||||
|
this.loadData()
|
||||||
|
},
|
||||||
|
// 获取用户左侧树列表
|
||||||
|
loadData () {
|
||||||
|
this.loadingLeft = true
|
||||||
const params = Object.assign({}, this.queryParam)
|
const params = Object.assign({}, this.queryParam)
|
||||||
params.pageNo = this.ipagination.current
|
params.pageNo = this.ipagination.current
|
||||||
params.pageSize = this.ipagination.pageSize
|
params.pageSize = this.ipagination.pageSize
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dataSource: {
|
currentQueryAllData: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler (val) {
|
handler (val) {
|
||||||
console.log(this.currentQueryAllData)
|
console.log(this.currentQueryAllData)
|
||||||
@@ -235,8 +235,11 @@ export default {
|
|||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open (value) {
|
async open (value) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
if (this.type === 'checkbox') {
|
||||||
|
await this.getCurrentAllData()
|
||||||
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
if (value) {
|
if (value) {
|
||||||
this.selectedRowKeys = value.split(',')
|
this.selectedRowKeys = value.split(',')
|
||||||
@@ -297,16 +300,16 @@ export default {
|
|||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
searchQuery () {
|
async searchQuery () {
|
||||||
this.isClickedSearch = true
|
this.isClickedSearch = true
|
||||||
this.loadData()
|
|
||||||
},
|
|
||||||
// 获取用户左侧树列表
|
|
||||||
async loadData () {
|
|
||||||
this.loadingLeft = true
|
|
||||||
if (this.type === 'checkbox') {
|
if (this.type === 'checkbox') {
|
||||||
await this.getCurrentAllData()
|
await this.getCurrentAllData()
|
||||||
}
|
}
|
||||||
|
this.loadData()
|
||||||
|
},
|
||||||
|
// 获取用户左侧树列表
|
||||||
|
loadData () {
|
||||||
|
this.loadingLeft = true
|
||||||
const params = Object.assign({}, this.queryParam)
|
const params = Object.assign({}, this.queryParam)
|
||||||
params.pageNo = this.ipagination.current
|
params.pageNo = this.ipagination.current
|
||||||
params.pageSize = this.ipagination.pageSize
|
params.pageSize = this.ipagination.pageSize
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dataSource: {
|
currentQueryAllData: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler (val) {
|
handler (val) {
|
||||||
console.log(this.currentQueryAllData)
|
console.log(this.currentQueryAllData)
|
||||||
@@ -265,8 +265,11 @@ export default {
|
|||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open (value) {
|
async open (value) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
if (this.type === 'checkbox') {
|
||||||
|
await this.getCurrentAllData()
|
||||||
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
if (value) {
|
if (value) {
|
||||||
this.selectedRowKeys = value.split(',')
|
this.selectedRowKeys = value.split(',')
|
||||||
@@ -284,10 +287,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 左侧树点击选中
|
// 左侧树点击选中
|
||||||
treeSelect (selectedKeys) {
|
async treeSelect (selectedKeys) {
|
||||||
console.log(selectedKeys)
|
console.log(selectedKeys)
|
||||||
this.currentTreeNode = selectedKeys
|
this.currentTreeNode = selectedKeys
|
||||||
this.queryParam.workingGroupId = selectedKeys[0]
|
this.queryParam.workingGroupId = selectedKeys[0]
|
||||||
|
if (this.type === 'checkbox') {
|
||||||
|
await this.getCurrentAllData()
|
||||||
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
// 获取左侧树数据
|
// 获取左侧树数据
|
||||||
@@ -362,16 +368,16 @@ export default {
|
|||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
searchQuery () {
|
async searchQuery () {
|
||||||
this.isClickedSearch = true
|
this.isClickedSearch = true
|
||||||
this.loadData()
|
|
||||||
},
|
|
||||||
// 获取用户左侧树列表
|
|
||||||
async loadData () {
|
|
||||||
this.loadingLeft = true
|
|
||||||
if (this.type === 'checkbox') {
|
if (this.type === 'checkbox') {
|
||||||
await this.getCurrentAllData()
|
await this.getCurrentAllData()
|
||||||
}
|
}
|
||||||
|
this.loadData()
|
||||||
|
},
|
||||||
|
// 获取用户左侧树列表
|
||||||
|
loadData () {
|
||||||
|
this.loadingLeft = true
|
||||||
const params = Object.assign({}, this.queryParam)
|
const params = Object.assign({}, this.queryParam)
|
||||||
params.pageNo = this.ipagination.current
|
params.pageNo = this.ipagination.current
|
||||||
params.pageSize = this.ipagination.pageSize
|
params.pageSize = this.ipagination.pageSize
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dataSource: {
|
currentQueryAllData: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler (val) {
|
handler (val) {
|
||||||
console.log(this.currentQueryAllData)
|
console.log(this.currentQueryAllData)
|
||||||
@@ -232,9 +232,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open (value) {
|
async open (value) {
|
||||||
this.getSysCategoryTree()
|
this.getSysCategoryTree()
|
||||||
this.initRoleList()
|
this.initRoleList()
|
||||||
|
if (this.type === 'checkbox') {
|
||||||
|
await this.getCurrentAllData()
|
||||||
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
this.visible = true
|
this.visible = true
|
||||||
if (value) {
|
if (value) {
|
||||||
@@ -315,16 +318,16 @@ export default {
|
|||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
},
|
},
|
||||||
searchQuery () {
|
async searchQuery () {
|
||||||
this.isClickedSearch = true
|
this.isClickedSearch = true
|
||||||
this.loadData(1)
|
|
||||||
},
|
|
||||||
// 获取用户左侧树列表
|
|
||||||
async loadData (arg) {
|
|
||||||
this.loadingLeft = true
|
|
||||||
if (this.type === 'checkbox') {
|
if (this.type === 'checkbox') {
|
||||||
await this.getCurrentAllData()
|
await this.getCurrentAllData()
|
||||||
}
|
}
|
||||||
|
this.loadData(1)
|
||||||
|
},
|
||||||
|
// 获取用户左侧树列表
|
||||||
|
loadData (arg) {
|
||||||
|
this.loadingLeft = true
|
||||||
if (arg) {
|
if (arg) {
|
||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user