|
@@ -81,15 +81,14 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template #checkItemTotal="scope">
|
|
<template #checkItemTotal="scope">
|
|
|
<span>{{
|
|
<span>{{
|
|
|
- scope.row.checkItemTotal ? scope.row.checkItemTotal+'项' : '-'
|
|
|
|
|
|
|
+ scope.row.checkItemTotal ?? 0
|
|
|
}}</span>
|
|
}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #qualifiedItemNum="scope">
|
|
<template #qualifiedItemNum="scope">
|
|
|
- <span>{{ scope.row.qualifiedItemNum ? scope.row.qualifiedItemNum+'项' : '-' }}</span>
|
|
|
|
|
|
|
+ <span>{{ scope.row.qualifiedItemNum ?? 0 }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #unqualifiedItemNum="scope">
|
|
<template #unqualifiedItemNum="scope">
|
|
|
- <span style="color:#1777ff;" v-if="scope.row.unqualifiedItemNum" @click="openUnqualifiedDialog(scope.row)">{{ scope.row.unqualifiedItemNum+'项'}}</span>
|
|
|
|
|
- <span v-else>-</span>
|
|
|
|
|
|
|
+ <span style="color:#1777ff;cursor: pointer;" @click="openUnqualifiedDialog(scope.row)">{{ scope.row.unqualifiedItemNum ?? 0 }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template #action="scope">
|
|
<template #action="scope">
|
|
|
<div class="action-container--div" style="justify-content: left">
|
|
<div class="action-container--div" style="justify-content: left">
|
|
@@ -552,6 +551,7 @@
|
|
|
{ label: '室内外停车场', value: '室内外停车场' },
|
|
{ label: '室内外停车场', value: '室内外停车场' },
|
|
|
];
|
|
];
|
|
|
getTableData();
|
|
getTableData();
|
|
|
|
|
+ loadDeptAndUserOptionsDept();
|
|
|
onIssueDialogOpen();
|
|
onIssueDialogOpen();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -647,6 +647,22 @@
|
|
|
walk(nodes);
|
|
walk(nodes);
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ const loadDeptAndUserOptionsDept = async () => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const [deptRes, userRes] = await Promise.all([
|
|
|
|
|
+ getAllDepartments(),
|
|
|
|
|
+ queryAvailableUserList({ pageNumber: 1, pageSize: 9999, queryParam: {} }),
|
|
|
|
|
+ ]);
|
|
|
|
|
+ const fullTree = (deptRes as DeptTree[]) ?? [];
|
|
|
|
|
+ deptTree.value = Array.isArray(fullTree) && fullTree[0]?.children ? fullTree[0].children : [];
|
|
|
|
|
+ reviewUserListDept.value = (userRes as any)?.records ?? [];
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ console.error('获取部门/用户列表失败:', e);
|
|
|
|
|
+ deptTree.value = [];
|
|
|
|
|
+ reviewUserListDept.value = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
const openUnqualifiedDialog = (row: { id?: number } & Record<string, unknown>) => {
|
|
const openUnqualifiedDialog = (row: { id?: number } & Record<string, unknown>) => {
|
|
|
if (!row.id) return;
|
|
if (!row.id) return;
|
|
|
currentRecordIdForUnqualified.value = Number(row.id);
|
|
currentRecordIdForUnqualified.value = Number(row.id);
|