|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="disaster-precaution-container">
|
|
|
|
|
- <header class="disaster-precaution-container__header">
|
|
|
|
|
- <img :src="BackIcon" alt="back" class="back-icon" @click="router.back()" />
|
|
|
|
|
- <span class="disaster-precaution-container__title">{{ name }}</span>
|
|
|
|
|
|
|
+ <div class="safety-platform-container">
|
|
|
|
|
+ <header class="safety-platform-container__header">
|
|
|
|
|
+ <BreadcrumbBack />
|
|
|
|
|
+ <span class="breadcrumb-title">{{ name }}</span>
|
|
|
</header>
|
|
</header>
|
|
|
- <main class="disaster-precaution-container__main">
|
|
|
|
|
- <div class="info-container">
|
|
|
|
|
|
|
+ <main class="safety-platform-container__main">
|
|
|
|
|
+ <div class="template-table-merge-container">
|
|
|
<TemplateTableMerge
|
|
<TemplateTableMerge
|
|
|
:operation-type="'template'"
|
|
:operation-type="'template'"
|
|
|
:main-table="templateDetail"
|
|
:main-table="templateDetail"
|
|
@@ -18,20 +18,18 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
- import { useRoute, useRouter } from 'vue-router';
|
|
|
|
|
|
|
+ import { useRoute } from 'vue-router';
|
|
|
import { ref, computed, onMounted } from 'vue';
|
|
import { ref, computed, onMounted } from 'vue';
|
|
|
import TemplateTableMerge from './src/components/TemplateTableMerge.vue';
|
|
import TemplateTableMerge from './src/components/TemplateTableMerge.vue';
|
|
|
import type { SpanTableData } from '@/views/disaster/disaster-precaution/src/type';
|
|
import type { SpanTableData } from '@/views/disaster/disaster-precaution/src/type';
|
|
|
import type { ContentItem } from '@/types/disaster-precaution';
|
|
import type { ContentItem } from '@/types/disaster-precaution';
|
|
|
import { getTaskTemplateDetail } from '@/api/disaster-precaution';
|
|
import { getTaskTemplateDetail } from '@/api/disaster-precaution';
|
|
|
import { TASK_TEMPLATE_LIST } from './src/constants/template-detail';
|
|
import { TASK_TEMPLATE_LIST } from './src/constants/template-detail';
|
|
|
- import BackIcon from 'assets/svg/back.svg';
|
|
|
|
|
|
|
|
|
|
const resultData = ref<ContentItem>({} as ContentItem);
|
|
const resultData = ref<ContentItem>({} as ContentItem);
|
|
|
const opinionData = ref<ContentItem>({} as ContentItem);
|
|
const opinionData = ref<ContentItem>({} as ContentItem);
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
- const router = useRouter();
|
|
|
|
|
const id = Number(route.params.id);
|
|
const id = Number(route.params.id);
|
|
|
const name = computed(() => {
|
|
const name = computed(() => {
|
|
|
return TASK_TEMPLATE_LIST.find((item) => item.id === Number(id))?.name;
|
|
return TASK_TEMPLATE_LIST.find((item) => item.id === Number(id))?.name;
|
|
@@ -44,14 +42,6 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
- @use '../style/disaster.scss' as *;
|
|
|
|
|
- @use '@/views/disaster/style/info-container.scss' as *;
|
|
|
|
|
- .disaster-precaution-container__header {
|
|
|
|
|
- flex-direction: row !important;
|
|
|
|
|
- justify-content: flex-start !important;
|
|
|
|
|
- gap: 8px !important;
|
|
|
|
|
- }
|
|
|
|
|
- .disaster-precaution-container__main {
|
|
|
|
|
- width: calc(100vw - 300px);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ @use '@/styles/page-details-layout.scss' as *;
|
|
|
|
|
+ @use './src/style/common.scss' as *;
|
|
|
</style>
|
|
</style>
|