Procházet zdrojové kódy

活动管理申请表下载修改bug

Q-ABAB před 2 roky
rodič
revize
cdd5af634a

+ 0 - 0
src/assets/file/附件 1:创客专项资金项目申请表(个人创客)20180511.doc → public/file/附件 1:创客专项资金项目申请表(个人创客)20180511.doc


+ 0 - 0
src/assets/file/附件 2:创客专项资金项目申请表(创客活动).doc → public/file/附件 2:创客专项资金项目申请表(创客活动).doc


+ 0 - 0
src/assets/file/附件 5 :学校创客专项资金使用申请表.xlsx → public/file/附件 5 :学校创客专项资金使用申请表.xlsx


+ 2 - 2
src/components/tool/downloadFile.js

@@ -1,5 +1,5 @@
 export default function downloadFile(url,fileName,changeState){
-    changeState(true);
+    changeState & changeState(true);
     let _url = "";
     if (url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1)_url = url.split("https://view.officeapps.live.com/op/view.aspx?src=")[1];
     else _url = url;
@@ -16,7 +16,7 @@ export default function downloadFile(url,fileName,changeState){
         document.body.appendChild(link);
         link.click();
         document.body.removeChild(link);
-        changeState(false);
+        changeState & changeState(false);
     }
     x.send()
 

+ 1 - 1
src/views/activityManage/makerActvity.vue

@@ -429,7 +429,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
         },
         
         edit(){ // 申请表按钮
-          downloadFile('../../assets/file/附件 2:创客专项资金项目申请表(创客活动).doc',"创客专项资金项目申请表(创客活动).doc",(_b)=>this.loading = _b);
+          downloadFile('/file/附件 2:创客专项资金项目申请表(创客活动).doc',"创客专项资金项目申请表(创客活动).doc",(_b)=>this.loading = _b);
         },
              
         audi(row){  // 审核按钮