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