fix : 需求上报-预期成果形式多选及展示

This commit is contained in:
2024-06-29 11:21:50 +08:00
parent e44b41bf14
commit ed08c6a796
2 changed files with 26 additions and 8 deletions

View File

@@ -170,7 +170,7 @@
</el-col>
<el-col :span="16" style="margin-bottom: -18px">
<el-form-item label="预期成果形式" prop="resultForm" label-width="145">
<el-select v-model="formData.resultForm" placeholder="请选择预期成果形式" clearable filterable>
<el-select v-model="formData.resultForm" placeholder="请选择预期成果形式" clearable filterable multiple>
<el-option
v-for="item in cacheStore.getDict('result_form')"
:key="item.value"
@@ -286,9 +286,10 @@ const showSingleTable = ref(false)
const otherFileList = ref([])
const singleList = ref([])
const formData = ref({
isSpecialFund: false,
isSpecialFund: true,
industryUniversityResearch: '0',
governmentDeclaration: '0',
resultForm:[]
})
const rules = reactive({
@@ -411,6 +412,7 @@ const handleSubmit = debounce(async (instance) => {
if (formData.value.singleFile !== undefined) {
formData.value.singleFile = getFileParam(formData.value.singleFile)
}
formData.value.resultForm=formData.value.resultForm.map(item=>item).join(',')
let params = {
...formData.value,
deploymentId: deploymentId.value,
@@ -464,6 +466,7 @@ const handleResubmit = debounce(() => {
if (formData.value.isSpecialFund && formData.value.specialFund === null) {
formData.value.specialFund = getFundName(formData.value.specialFundId)
}
formData.value.resultForm=formData.value.resultForm.map(item=>item).join(',')
let params = {
...formData.value,
deploymentId: deploymentId.value,