|
@@ -6,6 +6,14 @@
|
|
|
<p class="title">
|
|
<p class="title">
|
|
|
被检查自查单位:<span class="content">{{ deptName }}</span>
|
|
被检查自查单位:<span class="content">{{ deptName }}</span>
|
|
|
</p>
|
|
</p>
|
|
|
|
|
+ <div class="export-file" @click="handleExportTaksTable" v-if="taskState === TASK_STAGE.COMPLETED">
|
|
|
|
|
+ <el-button type="primary">
|
|
|
|
|
+ <template #icon>
|
|
|
|
|
+ <img :src="ExportIcon" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ 导出预防检查任务单
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
<div class="info-container">
|
|
<div class="info-container">
|
|
|
<TemplateTableMerge
|
|
<TemplateTableMerge
|
|
|
:operation-type="operateType"
|
|
:operation-type="operateType"
|
|
@@ -20,11 +28,13 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
|
import { ref, onMounted } from 'vue';
|
|
import { ref, onMounted } from 'vue';
|
|
|
|
|
+ import { ElMessage } from 'element-plus';
|
|
|
import TemplateTableMerge from './TemplateTableMerge.vue';
|
|
import TemplateTableMerge from './TemplateTableMerge.vue';
|
|
|
import type { SpanTableData } from '@/views/disaster/disaster-precaution/src/type';
|
|
import type { SpanTableData } from '@/views/disaster/disaster-precaution/src/type';
|
|
|
import type { TemplateDetailResponse, ContentItem } from '@/types/disaster-precaution';
|
|
import type { TemplateDetailResponse, ContentItem } from '@/types/disaster-precaution';
|
|
|
import { getTaskExecutionDetail, getTaskTemplateDetail } from '@/api/disaster-precaution';
|
|
import { getTaskExecutionDetail, getTaskTemplateDetail } from '@/api/disaster-precaution';
|
|
|
import { TASK_STAGE } from '../constants/task-execution';
|
|
import { TASK_STAGE } from '../constants/task-execution';
|
|
|
|
|
+ import ExportIcon from 'assets/svg/export.svg';
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
const id = Number(route.query.id);
|
|
const id = Number(route.query.id);
|
|
@@ -59,6 +69,9 @@
|
|
|
getTaskExecutionDetailList_Template();
|
|
getTaskExecutionDetailList_Template();
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
+ const handleExportTaksTable = () => {
|
|
|
|
|
+ ElMessage.warning('导出功能后端正在开发中,暂时无法下载');
|
|
|
|
|
+ };
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getTaskExecutionDetailList();
|
|
getTaskExecutionDetailList();
|
|
|
});
|
|
});
|
|
@@ -77,4 +90,12 @@
|
|
|
.content {
|
|
.content {
|
|
|
color: rgba($text-color, 0.65);
|
|
color: rgba($text-color, 0.65);
|
|
|
}
|
|
}
|
|
|
|
|
+ .disaster-precaution {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ }
|
|
|
|
|
+ .export-file {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|