feat:充值流水分页
This commit is contained in:
1 parent
dd6082e521
commit
bb0317fbc8
3 files changed
+70
-41
No files matched your search
@@ -139,6 +139,7 @@ const menuDialogRef = ref()
|
||||
const showSearch = ref(true)
|
||||
const queryRef = ref()
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
createdIsNeed: false,
|
||||
pageList: pageList, // H
|
||||
queryForm: {
|
||||
parentId: -1,
|
||||
@@ -149,6 +150,10 @@ const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
|
||||
const { getDataList, tableStyle } = useTable(state)
|
||||
|
||||
onMounted(async () => {
|
||||
getDataList()
|
||||
})
|
||||
|
||||
// 根据类型判断是否有子节点
|
||||
const setHasChildren = (arr: any[]) => {
|
||||
arr.forEach((item) => {
|
||||
@@ -201,7 +206,9 @@ const load = (row: any, treeNode: unknown, resolve: (date: any[]) => void) => {
|
||||
if (Array.isArray(childrenList)) {
|
||||
setHasChildren(childrenList)
|
||||
}
|
||||
resolve(childrenList)
|
||||
if (childrenList && childrenList.length) {
|
||||
resolve(childrenList)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -222,3 +229,11 @@ const handleDelete = async (row: any) => {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
:deep() {
|
||||
.el-table .row-expand-cover .cell .el-table__expand-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user