|
@@ -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",
|