fix : 优化需求征集详情页面
This commit is contained in:
@@ -417,7 +417,7 @@ const handleSubmit = debounce(async (instance) => {
|
||||
// }
|
||||
let params = {
|
||||
...formData.value,
|
||||
isSpecialFund: formData.value.isSpecialFund ? formData.value.isSpecialFund : false,
|
||||
isSpecialFund: formData.value.isSpecialFund? formData.value.isSpecialFund : false,
|
||||
deploymentId: deploymentId.value,
|
||||
fileList: otherFiles,
|
||||
singleFile: singleFile,
|
||||
@@ -472,6 +472,7 @@ const handleResubmit = debounce(() => {
|
||||
//todo requirementId
|
||||
let params = {
|
||||
...formData.value,
|
||||
isSpecialFund: formData.value.isSpecialFund? formData.value.isSpecialFund : false,
|
||||
deploymentId: deploymentId.value,
|
||||
fileList: otherFiles,
|
||||
singleFile: singleFile,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<steps :active="route.query.id==='-1'?0:1" @setDetail="setDetail" @stepChange="stepChange" :reportType="route.query.id==='-1'?'direct':''">
|
||||
<template #content>
|
||||
<collection-detail v-show="showActive == '00'" :formData="summaryData.formData" :data="summaryData"
|
||||
:processViewer="summaryProcessViewer" :loading="loading"/>
|
||||
:processViewer="summaryProcessViewer" :loading="loading" :fileListShow="fileListShow"/>
|
||||
<summary-detail v-show="showActive == '10'" :formData="summaryData.formData" :data="summaryData"
|
||||
:processViewer="summaryProcessViewer" :loading="loading" :fileListShow="fileListShow"/>
|
||||
<ApprovalDetail v-show="showActive == '20'" :formData="summaryData.formData" :data="summaryData"
|
||||
@@ -32,11 +32,11 @@ const processStore = useProcessStore()
|
||||
const active = ref(route.query.state)
|
||||
const showActive = ref()
|
||||
const getInfo = async (state) => {
|
||||
fileListShow.value='READ'
|
||||
const projectId = route.query.projectId
|
||||
summaryProcessViewer.value = false
|
||||
loading.value = true
|
||||
const {code, data,msg} = await getMapProjectStateInfo(projectId, state)
|
||||
if(data===undefined)return;
|
||||
if(code===1000){
|
||||
summaryData.value = data;
|
||||
loading.value = false
|
||||
@@ -58,6 +58,10 @@ const getInfo = async (state) => {
|
||||
message: msg,
|
||||
type: 'error'
|
||||
})
|
||||
if(msg==='查询结果为空'){
|
||||
summaryData.value=[]
|
||||
}
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +75,3 @@ const stepChange = (data) => {
|
||||
getInfo(data.active)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user