Ver código fonte

[VersionBeta] V.1.0.0.0

[Adds]
1.修改获取协作文件
master
xzx 4 anos atrás
pai
commit
7805ca191c
1 arquivos alterados com 11 adições e 31 exclusões
  1. +11
    -31
      src/views/main_web/workspace.vue

+ 11
- 31
src/views/main_web/workspace.vue Ver arquivo

@@ -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);