瀏覽代碼

附件上传接口修改

hujunwei@agilestar.cn 1 年之前
父節點
當前提交
0fdc5c2194

+ 1 - 1
src/components/upload.vue

@@ -169,7 +169,7 @@ export default {
         query.append("relId", this.fileInfo.relId);
       }
       //运营类项目考核及结算
-      if (this.fileInfo.url == "/market/cmkAttachInfo/upload") {
+      if (this.fileInfo.url == "/market/cmkAttachInfo/uploadByMinio") {
         query.append("uploadType", this.fileInfo.uploadType);
       }
       if (this.fileInfo.url == "/market/cStoreOutWo/importData") {

+ 1 - 1
src/config/dev.js

@@ -79,7 +79,7 @@ let test = {
     riskMaterialsfresourceId: '3124a2d4-7209-11ed-8d6f-00505687dcd3',//风险防控
     materialApplicationfresourceId:'8f0e9c49-b348-11ed-be6b-00505687dcd3',//宣传物料省
     materialApplicationdsfresourceId:'a7f127b7-b348-11ed-be6b-00505687dcd3',//宣传物料地市
-    accountApplicationfresourceId: '9acf34bf-b24d-11ed-be6b-00505687dcd3',//账号申请流程
+    accountApplicationfresourceId: '27a9dbbf-d742-11ed-8255-e00084564cce',//账号申请流程
     accountdelfresourceId: 'e907b062-b33f-11ed-be6b-00505687dcd3',//账号删除
     accountPermissionsfresourceId: '2b9e648d-b24d-11ed-be6b-00505687dcd3',//账号权限申请流程
     aqbgsyListfresourceId: 'bc3402ee-b33f-11ed-be6b-00505687dcd3',//安全报告审阅

+ 10 - 8
src/pages/main/collect/collect.vue

@@ -470,7 +470,7 @@ export default {
       },
     async downloads(fileData) {
       await this.$http({
-        url: "/market/CMKFile/downFile",
+        url: "/market/waf/downFileByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",
@@ -515,13 +515,13 @@ export default {
         });
       });
       await this.$http({
-        url: "/market/CMKFile/downAllFile",
+        url: "/market/waf/downAllFileByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",
         },
         responseType: "blob",
-        data: { mkFileShareAttachList: arr },
+        data: { wfFileShareAttachList: arr },
       }).then((response) => {
         if (window.navigator && window.navigator.msSaveOrOpenBlob) {
           let blob = new Blob([response.data], {
@@ -561,15 +561,17 @@ export default {
         },
         data: array,
       }).then((res) => {
-        this.infolist = res.data.body || [];
+        // this.infolist = res.data.body || [];
+        this.infolist = res.data.body;
+        console.log(res.data.body.orderName);
         let user = window.sessionStorage.getItem('userInfo')
           let userName = JSON.parse(user).loginNo
           console.log(userName)
 
           for(let i=res.data.body.mkFileShareAttachList.length-1;i>=0;i--){
               console.log(res.data.body.createId)
-              console.log(res.data.body.mkFileShareAttachList[i].opName)
-              if(res.data.body.createId === res.data.body.mkFileShareAttachList[i].opName || res.data.body.mkFileShareAttachList[i].opName === userName){
+              console.log(res.data.body.mkFileShareAttachList[i].opNo)
+              if(res.data.body.createId === res.data.body.mkFileShareAttachList[i].opNo || res.data.body.mkFileShareAttachList[i].opNo === userName){
               }else{
                   res.data.body.mkFileShareAttachList.splice(i,1);
               }
@@ -817,7 +819,7 @@ export default {
       const form = new FormData();
       form.append("file", file);
       await this.$http({
-        url: "/market/CMKFile/upload",
+        url: "/market/CMKFile/uploadByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",
@@ -843,7 +845,7 @@ export default {
       const form = new FormData();
       form.append("file", file);
       await this.$http({
-        url: "/market/CMKFile/upload",
+        url: "/market/CMKFile/uploadByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",

+ 5 - 5
src/pages/main/collect/launch.vue

@@ -451,7 +451,7 @@ export default {
     //单文件下载方法
     async download(fileData) {
       await this.$http({
-        url: "/market/cmkFileShare/downFile",
+        url: "/market/waf/downFileByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",
@@ -487,13 +487,13 @@ export default {
         });
       });
       await this.$http({
-        url: "/market/cmkFileShare/downAllFile",
+        url: "/market/waf/downAllFileByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",
         },
         responseType: "blob",
-        data: { mkFileShareAttachList: arr },
+        data: { wfFileShareAttachList: arr },
       }).then((response) => {
         if (window.navigator && window.navigator.msSaveOrOpenBlob) {
           let blob = new Blob([response.data], {
@@ -635,7 +635,7 @@ export default {
       const form = new FormData();
       form.append("file", file);
       await this.$http({
-        url: "/market/CMKFile/upload",
+        url: "/market/CMKFile/uploadByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",
@@ -643,7 +643,7 @@ export default {
         data: form,
       }).then((res) => {
         if (this.infolist.mkFileShareAttachList) {
-          this.infolist.mkFileShareAttachList = [];
+          // this.infolist.mkFileShareAttachList = [];
           this.infolist.mkFileShareAttachList.push(res.data.body);
         } else {
           let mkFileShareAttachList = [];

+ 3 - 3
src/pages/main/file/flieList.vue

@@ -484,7 +484,7 @@ export default {
         type: "bt1n",
         typename: "上传文件",
         limit: 5,
-        url: "/market/cmkFileShare/upload",
+        url: "/market/waf/uploadByMinio",
         fileList: [],
       },
       titname: "新增",
@@ -537,7 +537,7 @@ export default {
       // });
       this.idList.forEach((item) => {
         this.$http({
-          url: "/market/cmkFileShare/downFile",
+          url: "/market/waf/downFileByMinio",
           method: "post",
           headers: {
             "Content-Type": "application/json",
@@ -581,7 +581,7 @@ export default {
     // 附件下载
     downLoad(fileData) {
       this.$http({
-        url: "/market/cmkFileShare/downFile",
+        url: "/market/waf/downFileByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",

+ 1 - 1
src/pages/main/gridDivision/workersList.vue

@@ -747,7 +747,7 @@ export default {
     handleDownload({ fileCode, fileName }) {
       console.log(fileCode, fileName);
       this.$http({
-        url: "/bpm/api/download",
+        url: "/market/waf/downFileByMinio",
         method: "post",
         headers: {
           "Content-Type": "application/json",

+ 2 - 2
src/pages/main/pdbPartners/index.vue

@@ -261,14 +261,14 @@
                     },
                 ],
                 datalist: {
-                    url: '/market/compatt/downfile',
+                    url: "/market/waf/downFileByMinio",
                     type: 1
                 },
                 uploadstatus: false,
                 attList: [],
                 fileInfo: {
                     limit: 5,
-                    url: '/market/cmkAttachInfo/upload',
+                    url: '/market/cmkAttachInfo/uploadByMinio',
                     fileList: [],
                     uploadType:'newlyCoop'
                 },