【更新】人员、机构等选择器分页问题修复

pull/124/head
小诺 2023-06-29 23:51:25 +08:00 committed by 俞宝山
parent 5eb8ed8d1e
commit 82d4c4fe50
4 changed files with 31 additions and 34 deletions

View File

@ -169,7 +169,7 @@
const dataIsConverterFlw = props.dataIsConverterFlw || false
//
const current = ref(0) //
const pageSize = ref(0) //
const pageSize = ref(20) //
const total = ref(0) //
//
@ -201,6 +201,7 @@
}
})
}
searchFormState.value.size = pageSize.value
loadData()
if (props.checkedOrgListApi) {
if (isEmpty(recordIds.value)) {
@ -223,7 +224,6 @@
pageLoading.value = true
props.orgPageApi(searchFormState.value).then((data) => {
current.value = data.current
pageSize.value = data.size
total.value = data.total
//
tableData.value = []
@ -241,11 +241,9 @@
}
// pageSize
const paginationChange = (page, pageSize) => {
const param = {
current: page,
size: pageSize
}
loadData(param)
searchFormState.value.current = page
searchFormState.value.size = pageSize
loadData()
}
const judge = () => {
if (radioModel && selectedData.value.length > 0) {
@ -293,6 +291,7 @@
}
//
const treeSelect = (selectedKeys) => {
searchFormState.value.current = 0
if (selectedKeys.length > 0) {
searchFormState.value.orgId = selectedKeys.toString()
} else {
@ -329,7 +328,7 @@
tableRecordNum.value = 0
tableData.value = []
current.value = 0
pageSize.value = 0
pageSize.value = 20
total.value = 0
selectedData.value = []
visible.value = false

View File

@ -169,7 +169,7 @@
const dataIsConverterFlw = props.dataIsConverterFlw || false
//
const current = ref(0) //
const pageSize = ref(0) //
const pageSize = ref(20) //
const total = ref(0) //
//
@ -202,6 +202,7 @@
}
})
}
searchFormState.value.size = pageSize.value
loadData()
if (props.checkedPosListApi) {
if (isEmpty(recordIds.value)) {
@ -224,7 +225,6 @@
pageLoading.value = true
props.posPageApi(searchFormState.value).then((data) => {
current.value = data.current
pageSize.value = data.size
total.value = data.total
//
tableData.value = []
@ -242,11 +242,9 @@
}
// pageSize
const paginationChange = (page, pageSize) => {
const param = {
current: page,
size: pageSize
}
loadData(param)
searchFormState.value.current = page
searchFormState.value.size = pageSize
loadData()
}
const judge = () => {
if (radioModel && selectedData.value.length > 0) {
@ -294,6 +292,7 @@
}
//
const treeSelect = (selectedKeys) => {
searchFormState.value.current = 0
if (selectedKeys.length > 0) {
searchFormState.value.orgId = selectedKeys.toString()
} else {
@ -330,7 +329,7 @@
tableRecordNum.value = 0
tableData.value = []
current.value = 0
pageSize.value = 0
pageSize.value = 20
total.value = 0
selectedData.value = []
visible.value = false

View File

@ -199,7 +199,7 @@
const roleGlobal = props.roleGlobal
//
const current = ref(0) //
const pageSize = ref(0) //
const pageSize = ref(20) //
const total = ref(0) //
//
@ -242,6 +242,7 @@
}
})
}
searchFormState.value.size = pageSize.value
loadData()
if (props.checkedRoleListApi) {
if (isEmpty(recordIds.value)) {
@ -268,7 +269,6 @@
pageLoading.value = true
props.rolePageApi(searchFormState.value).then((data) => {
current.value = data.current
pageSize.value = data.size
total.value = data.total
//
tableData.value = []
@ -286,11 +286,9 @@
}
// pageSize
const paginationChange = (page, pageSize) => {
const param = {
current: page,
size: pageSize
}
loadData(param)
searchFormState.value.current = page
searchFormState.value.size = pageSize
loadData()
}
const judge = () => {
if (radioModel && selectedData.value.length > 0) {
@ -338,6 +336,7 @@
}
//
const treeSelect = (selectedKeys) => {
searchFormState.value.current = 0
if (selectedKeys.length > 0) {
if (selectedKeys[0] === 'GLOBAL') {
searchFormState.value.category = selectedKeys[0]
@ -380,7 +379,7 @@
tableRecordNum.value = 0
tableData.value = []
current.value = 0
pageSize.value = 0
pageSize.value = 20
total.value = 0
selectedData.value = []
visible.value = false
@ -430,10 +429,10 @@
overflow: auto;
}
.cardTag {
margin-left: 10px;
margin-left: 20px;
}
.primarySele {
margin-right: 10px;
margin-right: 20px;
}
.ant-form-item {
margin-bottom: 0 !important;

View File

@ -169,7 +169,7 @@
const dataIsConverterFlw = props.dataIsConverterFlw || false
//
const current = ref(0) //
const pageSize = ref(0) //
const pageSize = ref(20) //
const total = ref(0) //
//
@ -202,6 +202,7 @@
}
})
}
searchFormState.value.size = pageSize.value
loadData()
if (props.checkedUserListApi) {
if (isEmpty(recordIds.value)) {
@ -224,7 +225,7 @@
pageLoading.value = true
props.userPageApi(searchFormState.value).then((data) => {
current.value = data.current
pageSize.value = data.size
// pageSize.value = data.size
total.value = data.total
//
tableData.value = []
@ -242,11 +243,9 @@
}
// pageSize
const paginationChange = (page, pageSize) => {
const param = {
current: page,
size: pageSize
}
loadData(param)
searchFormState.value.current = page
searchFormState.value.size = pageSize
loadData()
}
const judge = () => {
if (radioModel && selectedData.value.length > 0) {
@ -294,6 +293,7 @@
}
//
const treeSelect = (selectedKeys) => {
searchFormState.value.current = 0
if (selectedKeys.length > 0) {
searchFormState.value.orgId = selectedKeys.toString()
} else {
@ -330,7 +330,7 @@
tableRecordNum.value = 0
tableData.value = []
current.value = 0
pageSize.value = 0
pageSize.value = 20
total.value = 0
selectedData.value = []
visible.value = false