|
|
@@ -2993,23 +2993,6 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 获取协作文件 |
|
|
|
*/ |
|
|
|
listCollaborationFiles: function() { |
|
|
|
var thisApp = this; |
|
|
|
thisApp.nowFolderId = |
|
|
|
thisApp.listUserFolders[thisApp.nowFolderIndex].folderID; // 设置当前打开工作文件夹ID |
|
|
|
this.$axios({ |
|
|
|
method: "put", |
|
|
|
url: encodeURI(process.env.API_HOST + "projects/projuser"), |
|
|
|
data: projUserData |
|
|
|
}) |
|
|
|
.then(response => {}) |
|
|
|
.catch(error => { |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 获取当前工作下文件 |
|
|
|
*/ |
|
|
@@ -3059,6 +3042,10 @@ export default { |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
if(this.fileindex == 2) |
|
|
|
{ |
|
|
|
this.fileindex = 0; |
|
|
|
} |
|
|
|
this.$axios({ |
|
|
|
method: "get", |
|
|
|
url: encodeURI( |
|
|
@@ -3121,23 +3108,16 @@ export default { |
|
|
|
arch.modifyTime = arch.modifyTime.replace(/T/g, " "); |
|
|
|
arch.modifyTime = arch.modifyTime.replace(/\+/g, " "); |
|
|
|
} |
|
|
|
arch.isShowFile = true; |
|
|
|
}); |
|
|
|
thisApp.myCollFilesList = []; |
|
|
|
thisApp.myCollFilesList = response.data.data; |
|
|
|
for (var i = 0; i < thisApp.myCollFilesList.length; i++) { |
|
|
|
thisApp.myCollFilesList[i].isShowFile = true; |
|
|
|
} |
|
|
|
if ( |
|
|
|
thisApp.myCollFilesList == null || |
|
|
|
thisApp.myCollFilesList.length == 0 |
|
|
|
) { |
|
|
|
thisApp.myCollaborationFilesList = []; |
|
|
|
} else { |
|
|
|
thisApp.scrollIndex = 7; |
|
|
|
// 非滚动模式,直接设置数据 |
|
|
|
// thisApp.myCollaborationFilesList =thisApp.myCollFilesList ; |
|
|
|
thisApp.scrollLoad(); |
|
|
|
if(response.data.data!=null && response.data.data.length > 0){ |
|
|
|
thisApp.myCollFilesList = response.data.data; |
|
|
|
} |
|
|
|
if (thisApp.myCollFilesList.length > 0) { |
|
|
|
thisApp.scrollIndex = 7; |
|
|
|
thisApp.scrollLoad(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(error => { |
|
|
|
console.log(error); |
|
|
|