|
@@ -102,29 +102,22 @@ const tabs = reactive([
|
|
|
]);
|
|
|
|
|
|
const activeTab = ref('1');
|
|
|
-
|
|
|
+const searchTableRef: any = ref<InstanceType<typeof pageSearch>>();
|
|
|
// 操作弹框
|
|
|
import usePageModal from '@/components/components/hooks/usePageDetails';
|
|
|
const { modalRef, handleNewDataClick, handleEditDataClick, handleCheckDataClick, handlePageDetail } =
|
|
|
usePageModal();
|
|
|
|
|
|
const getTreeCheck = async data => {
|
|
|
- console.log(data);
|
|
|
- // console.log(searchObj);
|
|
|
- if (tableListRef.value) {
|
|
|
- if (activeTab.value == '1') {
|
|
|
- console.log(data.join());
|
|
|
- searchConfig.pageListParams.belongsDept = data.join();
|
|
|
- console.log(searchConfig);
|
|
|
- } else {
|
|
|
- searchNonIndustryConfig.pageListParams.belongsDept = data.join();
|
|
|
- }
|
|
|
-
|
|
|
- await tableListRef.value[0].fetchPageListData({ belongsDept: data.join() });
|
|
|
+ if (activeTab.value == '1') {
|
|
|
+ searchConfig.pageListParams.belongsDeptIds = data.join();
|
|
|
+ } else {
|
|
|
+ searchNonIndustryConfig.pageListParams.belongsDeptIds = data.join();
|
|
|
}
|
|
|
+ searchTableRef.value[0].handleQueryClick();
|
|
|
};
|
|
|
const treeSelectdRef = ref<InstanceType<typeof TreeSelect>>();
|
|
|
-const searchTableRef = ref<InstanceType<typeof pageSearch>>();
|
|
|
+
|
|
|
const handleClick = async (tab: TabsPaneContext) => {
|
|
|
setTimeout(() => {
|
|
|
if (treeSelectdRef.value) {
|