|
@@ -131,7 +131,7 @@
|
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
|
import { Document } from '@element-plus/icons-vue';
|
|
import { Document } from '@element-plus/icons-vue';
|
|
|
import PreviewOnline from '@/views/disaster/components/PreviewOnline.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 { FILE_TYPE_ICON } from '@/components/UploadFiles/constants';
|
|
|
import DownloadIcon from '@/views/disaster/disaster-control/src/svg/download.svg';
|
|
import DownloadIcon from '@/views/disaster/disaster-control/src/svg/download.svg';
|
|
|
import { downloadFile } from '@/views/disaster/utils';
|
|
import { downloadFile } from '@/views/disaster/utils';
|
|
@@ -204,7 +204,7 @@
|
|
|
const getDetail = async () => {
|
|
const getDetail = async () => {
|
|
|
if (!id.value) return;
|
|
if (!id.value) return;
|
|
|
try {
|
|
try {
|
|
|
- const res = await getDrawLessonsAdminDetail(id.value);
|
|
|
|
|
|
|
+ const res = await getDrawLessonsAdminTowDetail(id.value);
|
|
|
const data = (res as any)?.data ?? res;
|
|
const data = (res as any)?.data ?? res;
|
|
|
if (data && typeof data === 'object') {
|
|
if (data && typeof data === 'object') {
|
|
|
const records = Array.isArray(data.issueRecords) ? data.issueRecords : [];
|
|
const records = Array.isArray(data.issueRecords) ? data.issueRecords : [];
|