|
@@ -26,6 +26,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="附件">
|
|
|
<el-upload
|
|
|
+ ref="upload"
|
|
|
action=""
|
|
|
:auto-upload="false"
|
|
|
:on-change="beforeUploadDetail"
|
|
@@ -72,6 +73,7 @@
|
|
|
year:'',
|
|
|
file:[]
|
|
|
}
|
|
|
+ this.$forceUpdate()
|
|
|
},
|
|
|
validateNumber() {
|
|
|
// 只允许输入数字
|
|
@@ -93,7 +95,7 @@
|
|
|
if (data){
|
|
|
this.$utils.downloadExcel(data, filename)
|
|
|
this.$message.success('报告号替换成功')
|
|
|
- this.visible = false
|
|
|
+ this.close()
|
|
|
this.$emit("refreshList");
|
|
|
}
|
|
|
})
|
|
@@ -101,6 +103,7 @@
|
|
|
close(){
|
|
|
this.visible = false
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
this.inputForm = {
|
|
|
file:[]
|
|
|
}
|