Merge pull request 'fix : 优化需求汇总详情页面' (#312) from dj into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/312
This commit is contained in:
@@ -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,36 +40,42 @@ 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) => {
|
||||||
fileListShow.value = 'READ'
|
const loading = ElLoading.service({fullscreen: true})
|
||||||
const projectId = route.query.projectId
|
try {
|
||||||
summaryProcessViewer.value = false
|
fileListShow.value = 'READ'
|
||||||
loading.value = true
|
const projectId = route.query.projectId
|
||||||
const {code, data, msg} = await getMapProjectStateInfo(projectId, state)
|
summaryProcessViewer.value = false
|
||||||
if (code === 1000) {
|
loading.value = true
|
||||||
summaryData.value = data;
|
const {code, data, msg} = await getMapProjectStateInfo(projectId, state)
|
||||||
loading.value = false
|
if (code === 1000) {
|
||||||
processStore.setDesign(data)
|
summaryData.value = data;
|
||||||
processStore.runningList.value = data.runningList;
|
loading.value = false
|
||||||
processStore.endList.value = data.endList;
|
processStore.setDesign(data)
|
||||||
processStore.noTakeList.value = data.noTakeList;
|
processStore.runningList.value = data.runningList;
|
||||||
processStore.refuseList.value = data.refuseList;
|
processStore.endList.value = data.endList;
|
||||||
processStore.passList.value = data.passList;
|
processStore.noTakeList.value = data.noTakeList;
|
||||||
nextTick(() => {
|
processStore.refuseList.value = data.refuseList;
|
||||||
summaryProcessViewer.value = true
|
processStore.passList.value = data.passList;
|
||||||
if (data.formPermMap["fileList"]) {
|
nextTick(() => {
|
||||||
fileListShow.value = data.formPermMap["fileList"].perm
|
summaryProcessViewer.value = true
|
||||||
|
if (data.formPermMap["fileList"]) {
|
||||||
|
fileListShow.value = data.formPermMap["fileList"].perm
|
||||||
|
}
|
||||||
|
})
|
||||||
|
loading.close()
|
||||||
|
} else {
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
if (msg === '查询结果为空') {
|
||||||
|
summaryData.value = []
|
||||||
}
|
}
|
||||||
})
|
loading.close()
|
||||||
} else {
|
|
||||||
ElNotification({
|
|
||||||
title: '提示',
|
|
||||||
message: msg,
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
if (msg === '查询结果为空') {
|
|
||||||
summaryData.value = []
|
|
||||||
}
|
}
|
||||||
loading.value = false
|
} catch {
|
||||||
|
loading.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user