|
|
@@ -131,7 +131,7 @@
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
import { Document } from '@element-plus/icons-vue';
|
|
|
import PreviewOnline from '@/views/disaster/components/PreviewOnline.vue';
|
|
|
- import { getDrawLessonsAdminDetail, approveDrawLessons } from '@/api/drawLessons';
|
|
|
+ import { getDrawLessonsAdminTowDetail, approveDrawLessons } from '@/api/drawLessons';
|
|
|
import { FILE_TYPE_ICON } from '@/components/UploadFiles/constants';
|
|
|
import DownloadIcon from '@/views/disaster/disaster-control/src/svg/download.svg';
|
|
|
import { downloadFile } from '@/views/disaster/utils';
|
|
|
@@ -204,7 +204,7 @@
|
|
|
const getDetail = async () => {
|
|
|
if (!id.value) return;
|
|
|
try {
|
|
|
- const res = await getDrawLessonsAdminDetail(id.value);
|
|
|
+ const res = await getDrawLessonsAdminTowDetail(id.value);
|
|
|
const data = (res as any)?.data ?? res;
|
|
|
if (data && typeof data === 'object') {
|
|
|
const records = Array.isArray(data.issueRecords) ? data.issueRecords : [];
|
|
|
@@ -213,7 +213,7 @@
|
|
|
creatorName: data.creatorName,
|
|
|
createdAt: data.createdAt,
|
|
|
statusName: data.statusName,
|
|
|
- issueCount: records.length ?? data.issueCount,
|
|
|
+ issueCount: data.issueCount,
|
|
|
feedbackCount: data.feedbackCount ?? records.filter((r: any) => r.statusId === 5 || r.statusName === '已完成' || r.feedbackAt).length,
|
|
|
planStartDate: data.planStartDate,
|
|
|
dangerProposeDate: data.dangerProposeDate,
|