fix : 优化需求汇总详情页面

This commit is contained in:
2024-06-10 15:50:26 +08:00
parent 07c089ed29
commit b05d0ff42f

View File

@@ -28,7 +28,7 @@ import SummaryDetail from '@/components/DetailComponent/SummaryDetail.vue';
import {useProcessStore} from '@/stores/processStore.js'; import {useProcessStore} from '@/stores/processStore.js';
import {getMapProjectStateInfo} from '@/components/steps/api'; import {getMapProjectStateInfo} from '@/components/steps/api';
import CollectionDetail from "@/components/DetailComponent/CollectionDetail.vue"; import CollectionDetail from "@/components/DetailComponent/CollectionDetail.vue";
import {ElNotification} from "element-plus"; import {ElLoading, ElNotification} from "element-plus";
const route = useRoute() const route = useRoute()
const summaryData = ref({}) const summaryData = ref({})
@@ -40,6 +40,8 @@ const active = ref(route.query.state)
const auditOpinion = ref('') const auditOpinion = ref('')
const showActive = ref() const showActive = ref()
const getInfo = async (state) => { const getInfo = async (state) => {
const loading = ElLoading.service({fullscreen: true})
try {
fileListShow.value = 'READ' fileListShow.value = 'READ'
const projectId = route.query.projectId const projectId = route.query.projectId
summaryProcessViewer.value = false summaryProcessViewer.value = false
@@ -60,6 +62,7 @@ const getInfo = async (state) => {
fileListShow.value = data.formPermMap["fileList"].perm fileListShow.value = data.formPermMap["fileList"].perm
} }
}) })
loading.close()
} else { } else {
ElNotification({ ElNotification({
title: '提示', title: '提示',
@@ -69,7 +72,10 @@ const getInfo = async (state) => {
if (msg === '查询结果为空') { if (msg === '查询结果为空') {
summaryData.value = [] summaryData.value = []
} }
loading.value = false loading.close()
}
} catch {
loading.close()
} }
} }