浏览代码

修改门户管理-运营服务的下载功能

Sanmu8 1 年之前
父节点
当前提交
e279114e71
共有 2 个文件被更改,包括 4 次插入7 次删除
  1. 2 3
      src/api/portal/OPSERVICE/OPSERVICE.js
  2. 2 4
      src/views/OPSERVICE/index.vue

+ 2 - 3
src/api/portal/OPSERVICE/OPSERVICE.js

@@ -65,8 +65,7 @@ export function upload(data) {
 // 下载文件
 export function download(data) {
   return request({
-    url: '/OPSERVICE/download',
-    method: 'get',
-    data:data
+    url: '/common/download?fileName='+data,
+    method: 'get'
   })
 }

+ 2 - 4
src/views/OPSERVICE/index.vue

@@ -300,10 +300,8 @@ export default {
       });
     },
     handleDownload(row){
-      let data = new FormData()
-      data.append('resource',row.serviceName)
-      data.append('delete',false)
-      download(data).then(res=>{
+      let fileName = row.serviceName
+      download(fileName).then(res=>{
       })
     },
     httprequest() {},