fix : 修复需求上报缓存问题

This commit is contained in:
dj
2025-05-15 16:06:04 +08:00
parent 0cc1b63ae7
commit a5ebab16a6

View File

@@ -233,7 +233,7 @@
</el-col> </el-col>
<el-col :span="6" :style="{marginLeft:!formData.isSpecialFund?route.query.id?'-10px':'0':'0'}"> <el-col :span="6" :style="{marginLeft:!formData.isSpecialFund?route.query.id?'-10px':'0':'0'}">
<el-form-item label="需求征集" prop="" required> <el-form-item label="需求征集" prop="" required>
<template v-if="formData.requirementDefaultName">{{ formData.requirementDefaultName }}</template> <template v-if="requirementDefaultName">{{ requirementDefaultName }}</template>
<el-select v-else v-model="formData.requirementId" clearable placeholder="请选择需求征集" <el-select v-else v-model="formData.requirementId" clearable placeholder="请选择需求征集"
@change="changeCollectData();changeRequirement()"> @change="changeCollectData();changeRequirement()">
<el-option <el-option
@@ -448,6 +448,7 @@ const loading = ref(false)
const processDiagramViewer = ref(false) const processDiagramViewer = ref(false)
const tagsViewStore = useTagsView() const tagsViewStore = useTagsView()
const companyOption = ref([]) const companyOption = ref([])
const requirementDefaultName = ref('')
const summaryForm = ref() const summaryForm = ref()
const deploymentId = ref() const deploymentId = ref()
const optionalChargeLeadershipPickerRef = ref() const optionalChargeLeadershipPickerRef = ref()
@@ -591,6 +592,12 @@ getProjectList()
const getRequirementList = () => { const getRequirementList = () => {
getRequirementOption().then(res => { getRequirementOption().then(res => {
if (res.code === 1000) { if (res.code === 1000) {
res.data= res.data?.map(item=>{
return {
label: item.label,
value: item.value+''
}
})
requirementList.value = res.data requirementList.value = res.data
} }
}) })
@@ -601,7 +608,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 requirementDefaultName.value = 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) {