fix : 优化需求上报时需求征集显示
This commit is contained in:
@@ -231,10 +231,10 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- :style="{marginLeft:!formData.isSpecialFund?route.query.id?'-10px':'-10px':route.query.id?'0':'-40px'}">-->
|
<el-col :span="6" :style="{marginLeft:!formData.isSpecialFund?route.query.id?'-10px':'0':'0'}">
|
||||||
<el-col :span="6">
|
|
||||||
<el-form-item label="需求征集" prop="requirementId">
|
<el-form-item label="需求征集" prop="requirementId">
|
||||||
<el-select v-model="formData.requirementId" clearable placeholder="请选择需求征集"
|
<template v-if="formData.requirementDefaultName">{{ formData.requirementDefaultName }}</template>
|
||||||
|
<el-select v-else v-model="formData.requirementId" clearable placeholder="请选择需求征集"
|
||||||
@change="changeCollectData">
|
@change="changeCollectData">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in requirementList"
|
v-for="item in requirementList"
|
||||||
@@ -481,7 +481,7 @@ const changeCollectData = () => {
|
|||||||
...formData.value,
|
...formData.value,
|
||||||
deploymentId: deploymentId.value,
|
deploymentId: deploymentId.value,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
requirementId: route.query.id ? route.query.id : formData.value.requirementId ? formData.value.requirementId : '-1'
|
requirementId: route.query.id ? route.query.id : formData.value.requirementId ? formData.value.requirementId : null
|
||||||
}
|
}
|
||||||
params.fileList = otherFileList.value
|
params.fileList = otherFileList.value
|
||||||
localStorage.setItem('collectData', JSON.stringify(params))
|
localStorage.setItem('collectData', JSON.stringify(params))
|
||||||
@@ -525,6 +525,7 @@ const getIsFund = async () => {
|
|||||||
// loading.value = true
|
// loading.value = true
|
||||||
await getFormInfo(route.query.id).then(res => {
|
await getFormInfo(route.query.id).then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
|
formData.value.requirementDefaultName = res.data.requirementName
|
||||||
// loading.value = false
|
// loading.value = false
|
||||||
formData.value.isSpecialFund = res.data.isSpecialFund
|
formData.value.isSpecialFund = res.data.isSpecialFund
|
||||||
if (res.data.isSpecialFund) {
|
if (res.data.isSpecialFund) {
|
||||||
@@ -742,17 +743,21 @@ const handleResubmit = debounce((instance) => {
|
|||||||
const getDetailInfo = async () => {
|
const getDetailInfo = async () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
await getDetail(route.query.projectId).then(res => {
|
await getDetail(route.query.projectId).then(res => {
|
||||||
ElNotification({
|
|
||||||
title: '提示',
|
|
||||||
message: res.msg,
|
|
||||||
type: res.code === 1000 ? 'success' : 'error'
|
|
||||||
})
|
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
res.data.formData.specialFundId = res.data.formData.specialFundId === 0 ? null : res.data.formData.specialFundId
|
res.data.formData.specialFundId = res.data.formData.specialFundId === 0 ? null : res.data.formData.specialFundId
|
||||||
|
if (res.data.formData.requirementId == -1) {
|
||||||
|
res.data.formData.requirementId = null
|
||||||
|
}
|
||||||
formData.value = res.data.formData
|
formData.value = res.data.formData
|
||||||
opentionData.value = res.data
|
opentionData.value = res.data
|
||||||
optionalChargeLeadershipList.value = formData.value.optionalChargeLeadership
|
optionalChargeLeadershipList.value = formData.value.optionalChargeLeadership
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
}else{
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: res.msg,
|
||||||
|
type: res.code === 1000 ? 'success' : 'error'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user