添加查全部

This commit is contained in:
ctw committed 2025-01-19 15:34:44 +08:00
1 parent fe2884f161
commit 7f48dbbc1c
1 file changed
+3 -1
+3 -1
View File
@@ -4,6 +4,7 @@
<pane size="15">
<div class="layout-padding-auto layout-padding-view">
<el-scrollbar>
<el-switch v-model="isQueryAll" inactive-text="查当前" active-text="查全部" />
<query-tree
:placeholder="$t('common.queryDeptTip')"
:query="deptData.queryList"
@@ -232,6 +233,7 @@ const excelUploadRef = ref()
const queryRef = ref()
const showSearch = ref(true)
const inputPassword = ref()
const isQueryAll = ref(false) // 是否查全部
// 多选rows
const selectObjs = ref([]) as any
@@ -245,7 +247,7 @@ const state: BasicTableProps = reactive<BasicTableProps>({
username: "",
phone: "",
},
pageList: pageList,
pageList: async () => await pageList(isQueryAll.value ? { ...state.queryForm, deptId: "" } : state.queryForm),
})
const { getDataList, currentChangeHandle, sizeChangeHandle, downBlobFile, tableStyle } = useTable(state)