diff --git a/src/components/hzwlComponents/Import.vue b/src/components/hzwlComponents/Import.vue
index c677970b9..6acb5812d 100644
--- a/src/components/hzwlComponents/Import.vue
+++ b/src/components/hzwlComponents/Import.vue
@@ -146,6 +146,8 @@ export default {
})
}
this.fileList = fileList
+ } else {
+ this.fileList = []
}
},
onClose () {
diff --git a/src/pages/policyRegulation/standardTrackingList/ImportModel.vue b/src/pages/policyRegulation/standardTrackingList/ImportModel.vue
index d84860ba5..ca26bb7b6 100644
--- a/src/pages/policyRegulation/standardTrackingList/ImportModel.vue
+++ b/src/pages/policyRegulation/standardTrackingList/ImportModel.vue
@@ -38,12 +38,14 @@
关闭
this.form[key] = '')
this.$nextTick(() => {
- this.$refs.formRef.clearValidate()
+ this.$nextTick(() => {
+ this.$refs.formRef.clearValidate()
+ this.$refs.importRef.initFileList()
+ })
})
this.visible = true
},
@@ -143,6 +148,9 @@ export default {
onPreview (id) {
this.$preview(id)
},
+ onSuccess () {
+ this.$refs.formRef.validateField('templateName')
+ },
downTemplate () {
window.open(`${this.url.exportTemplateFile}?fileName=标准跟踪清单导入模板`)
}