diff --git a/epmet-oper-web/src/views/modules/workPc/guidance/DetailForm.vue b/epmet-oper-web/src/views/modules/workPc/guidance/DetailForm.vue
index 6171502..05afbfa 100644
--- a/epmet-oper-web/src/views/modules/workPc/guidance/DetailForm.vue
+++ b/epmet-oper-web/src/views/modules/workPc/guidance/DetailForm.vue
@@ -62,13 +62,17 @@
:key="item.moduleId"
:label="item.moduleName"
:name="item.moduleId">
-
-
+
+
@@ -102,6 +106,7 @@
accept=".doc,.pdf,.xls,.docx,.xlsx"
:on-success="handleFileSuccess"
:on-remove="handleFileRemove"
+ :on-preview="handleFileDownload"
:limit="3"
:before-upload="beforeUpload"
:file-list="fileList">
@@ -183,6 +188,7 @@ export default {
methods: {
async initData (guideId, formType) {
+ this.startLoading()
this.formType = formType
this.guideId = guideId
this.resetData()
@@ -199,6 +205,7 @@ export default {
await this.loadFormData()
}
+ this.endLoading()
this.isLoaded = true
},
@@ -381,7 +388,6 @@ export default {
})
},
-
resetData () {
this.moduleArray = []
// this.moduleArray.forEach(element => {
@@ -456,6 +462,19 @@ export default {
} else this.$message.error(res.msg)
},
+ //下载
+ handleFileDownload (file) {
+
+ var a = document.createElement('a');
+ var event = new MouseEvent('click');
+ a.download = file.name;
+ console.log(a)
+ a.href = file.url;
+ a.dispatchEvent(event);
+
+
+ },
+
// 开启加载动画
startLoading () {
loading = Loading.service({