政策课题-课题组资料-其他-字段修改

This commit is contained in:
zyn
2023-11-16 10:58:15 +08:00
parent dd8eca16d1
commit 5c3f70931e
4 changed files with 19 additions and 10 deletions
@@ -98,8 +98,8 @@
<div class="whole" style="display: flex;border-bottom: 1px solid #E5E5E5">
<label style=" margin-right: 164px;line-height: 44px">其他</label>
<div style="min-height: 44px;padding: 8px 0;">
<template v-if="form.otherList && form.otherList.length > 0">
<p class="file-item" v-for="file in form.otherList">
<template v-if="form.researchGroupOtherList && form.researchGroupOtherList.length > 0">
<p class="file-item" v-for="file in form.researchGroupOtherList">
<a class="file-title" target="_blank" :title="file.oldFileName" @click="openFileInPdf(file.id, file.oldFileName)">{{ file.oldFileName }}</a>
<i title="下载" class="icon-download" @click="downloadFile(file.id)"></i>
<i title="下载带水印" class="icon-download2" @click="downloadFileByWater(file.id, file.fileSuffix)"></i>
@@ -165,9 +165,9 @@
<customFile
:config="{
attrName: '其他',
attrField: 'other'
attrField: 'researchGroupOther'
}"
v-model="form.other"
v-model="form.researchGroupOther"
></customFile>
</el-col>
<el-col :span="12">
@@ -442,7 +442,7 @@ export default {
// 课题组资料
researchPlan: '',
researchFindings: '',
other: '',
researchGroupOther: '',
conferenceMaterials: '',
// 课题组联系方式
topicContactInformationList: [
@@ -498,6 +498,15 @@ export default {
showDrawer (val) {
if (this.title === '编辑') {
this.form = { ...this.editForm }
if (this.editForm.meetingList.length < 1) {
this.form.meetingList = JSON.parse(JSON.stringify(this.initForm.meetingList))
}
if (this.editForm.topicContactInformationList.length < 1) {
this.form.topicContactInformationList = JSON.parse(JSON.stringify(this.initForm.topicContactInformationList))
}
if (this.editForm.insideContactInformationList.length < 1) {
this.form.insideContactInformationList = JSON.parse(JSON.stringify(this.initForm.insideContactInformationList))
}
} else {
this.resetForm()
}
@@ -20,9 +20,9 @@
<el-col :span="12">
<UploadFormItem
label="其他"
prop="other"
:ids.sync="form.other"
:names.sync="form.otherName"
prop="researchGroupOther"
:ids.sync="form.researchGroupOther"
:names.sync="form.researchGroupOtherName"
:disabled="disabled">
</UploadFormItem>
<UploadFormItem
@@ -159,8 +159,8 @@ export default {
researchPlanName: '',
researchFindings: '',
researchFindingsName: '',
other: '',
otherName: '',
researchGroupOther: '',
researchGroupOtherName: '',
conferenceMaterials: '',
conferenceMaterialsName: '',
// 课题组联系方式