|
@@ -114,10 +114,10 @@
|
|
|
import Empty from 'assets/images/empty@1X.png';
|
|
import Empty from 'assets/images/empty@1X.png';
|
|
|
import useTableConfig from '@/hooks/useTableConfigHook';
|
|
import useTableConfig from '@/hooks/useTableConfigHook';
|
|
|
import { formatDeptTree } from '@/views/disaster/utils/formatDeptTree';
|
|
import { formatDeptTree } from '@/views/disaster/utils/formatDeptTree';
|
|
|
- import type { DeptTree } from '@/types/dept/type';
|
|
|
|
|
|
|
+ import type { DeptTreeItem } from '@/types/dept/type';
|
|
|
import { getPriorityStatus, getfixStatus } from '../util';
|
|
import { getPriorityStatus, getfixStatus } from '../util';
|
|
|
|
|
|
|
|
- const firstLevelDepts = ref<DeptTree[]>([]);
|
|
|
|
|
|
|
+ const firstLevelDepts = ref<DeptTreeItem[]>([]);
|
|
|
|
|
|
|
|
const currentPage = ref(1);
|
|
const currentPage = ref(1);
|
|
|
const pageSize = ref(DEFAULT_PAGE_SIZE);
|
|
const pageSize = ref(DEFAULT_PAGE_SIZE);
|
|
@@ -157,9 +157,11 @@
|
|
|
|
|
|
|
|
const getDisposalTableData = async () => {
|
|
const getDisposalTableData = async () => {
|
|
|
tableConfig.loading = true;
|
|
tableConfig.loading = true;
|
|
|
|
|
+ const { handleDeptIds, ...otherSearchData } = searchData;
|
|
|
const res = await getLossRecordTableData({
|
|
const res = await getLossRecordTableData({
|
|
|
handleTaskIds: taskIds.value,
|
|
handleTaskIds: taskIds.value,
|
|
|
- ...searchData,
|
|
|
|
|
|
|
+ ...otherSearchData,
|
|
|
|
|
+ ...(handleDeptIds.length > 0 ? { handleDeptIds } : {}),
|
|
|
});
|
|
});
|
|
|
collapseList.value.forEach((item) => {
|
|
collapseList.value.forEach((item) => {
|
|
|
item.tableData = res.filter((tableItem) => tableItem.handleTaskId === item.id);
|
|
item.tableData = res.filter((tableItem) => tableItem.handleTaskId === item.id);
|