|
@ -233,7 +233,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-upload> --> |
|
|
</el-upload> --> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="年度调度运用计划" prop="planAttachment"> |
|
|
<el-form-item label="资料附件" prop="planAttachment"> |
|
|
<myUpload :fileList="fileList2" /> |
|
|
<myUpload :fileList="fileList2" /> |
|
|
<!-- <el-upload |
|
|
<!-- <el-upload |
|
|
class="upload-demo" |
|
|
class="upload-demo" |
|
@ -369,7 +369,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
fileDateFormat(row) { |
|
|
fileDateFormat(row) { |
|
|
return this.selectDictLabel(this.fileDateTypeOptions, row.regulationsAttachment); |
|
|
return this.selectDictLabel( |
|
|
|
|
|
this.fileDateTypeOptions, |
|
|
|
|
|
row.regulationsAttachment |
|
|
|
|
|
); |
|
|
}, |
|
|
}, |
|
|
/** 查询堤防档案管理列表 */ |
|
|
/** 查询堤防档案管理列表 */ |
|
|
getList() { |
|
|
getList() { |
|
@ -468,7 +471,9 @@ export default { |
|
|
const id = row.id || this.ids; |
|
|
const id = row.id || this.ids; |
|
|
getDagl(id).then((response) => { |
|
|
getDagl(id).then((response) => { |
|
|
this.form = response.data; |
|
|
this.form = response.data; |
|
|
|
|
|
if (this.form.planAttachment) { |
|
|
|
|
|
this.fileList2 = JSON.parse(this.form.planAttachment); |
|
|
|
|
|
} |
|
|
this.open = true; |
|
|
this.open = true; |
|
|
this.title = "修改堤防档案管理"; |
|
|
this.title = "修改堤防档案管理"; |
|
|
}); |
|
|
}); |
|
@ -477,7 +482,7 @@ export default { |
|
|
submitForm() { |
|
|
submitForm() { |
|
|
this.$refs["form"].validate((valid) => { |
|
|
this.$refs["form"].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
|
|
|
this.form.planAttachment = JSON.stringify(this.fileList2); |
|
|
if (this.form.id != null) { |
|
|
if (this.form.id != null) { |
|
|
updateDagl(this.form).then((response) => { |
|
|
updateDagl(this.form).then((response) => { |
|
|
if (response.code === 200) { |
|
|
if (response.code === 200) { |
|
|