Explorar el Código

公共文件显示和每日ip地址更改

master
kim131 hace 4 años
padre
commit
18f08a59fc
Se han modificado 2 ficheros con 44 adiciones y 24 borrados
  1. +43
    -23
      src/views/main_web/workspace/workspace.vue
  2. +1
    -1
      vue.config.js

+ 43
- 23
src/views/main_web/workspace/workspace.vue Ver fichero

@@ -3863,6 +3863,19 @@ export default {
// 协作文件
this.myCollaborationFilesList = folderResInfo.coordinationFiles;
this.myCollFilesList = folderResInfo.coordinationFiles;
// 协作文件处理
this.myCollaborationFilesList.forEach((arch) => {
if (arch.createTime != null && arch.modifyTime != null) {
arch.createTime = arch.createTime.replace(/T/g, " ");
arch.createTime = arch.createTime.replace(/\+/g, " ");
arch.modifyTime = arch.modifyTime.replace(/T/g, " ");
arch.modifyTime = arch.modifyTime.replace(/\+/g, " ");
}
arch.isShowFile = true;
})
// 公共文件
this.myPublicFilesList = folderResInfo.public.length > 0 ? folderResInfo.public : this.myPublicFilesList;

if (this.currentPageType == 0) {
// 加载我的文件
@@ -3878,14 +3891,15 @@ export default {

if(isCommonFolder) {
this.loadCommitedComFiles();
} else {
if (this.curactive == 0) {
this.listCollaborationFiles();
} else if (this.curactive == 1) {
this.myPublicFilesList=[];
this.loadListCommonFiles();
}
}
}
// else {
// if (this.curactive == 0) {
// this.listCollaborationFiles();
// } else if (this.curactive == 1) {
// this.myPublicFilesList=[];
// this.loadListCommonFiles();
// }
// }
this.refreshFileStatus();
// debugger;
// if (currentFolder.folderName == "公共文件夹") {
@@ -3962,20 +3976,20 @@ export default {
* 获取协作文件
*/
listCollaborationFiles: function () {
var thisApp = this;
thisApp.nowFolderId =
thisApp.listUserFolders[thisApp.nowFolderIndex].folderID; // 设置当前打开工作文件夹ID
if(!this.myCollaborationFilesList) return;
if(!this.myCollaborationFilesList.length) return;
this.myCollaborationFilesList.forEach((arch) => {
if (arch.createTime != null && arch.modifyTime != null) {
arch.createTime = arch.createTime.replace(/T/g, " ");
arch.createTime = arch.createTime.replace(/\+/g, " ");
arch.modifyTime = arch.modifyTime.replace(/T/g, " ");
arch.modifyTime = arch.modifyTime.replace(/\+/g, " ");
}
arch.isShowFile = true;
})
// var thisApp = this;
// thisApp.nowFolderId =
// thisApp.listUserFolders[thisApp.nowFolderIndex].folderID; // 设置当前打开工作文件夹ID
// if(!this.myCollaborationFilesList) return;
// if(!this.myCollaborationFilesList.length) return;
// this.myCollaborationFilesList.forEach((arch) => {
// if (arch.createTime != null && arch.modifyTime != null) {
// arch.createTime = arch.createTime.replace(/T/g, " ");
// arch.createTime = arch.createTime.replace(/\+/g, " ");
// arch.modifyTime = arch.modifyTime.replace(/T/g, " ");
// arch.modifyTime = arch.modifyTime.replace(/\+/g, " ");
// }
// arch.isShowFile = true;
// })
// this.$axios({
// method: "get",
// url: encodeURI(
@@ -4014,7 +4028,13 @@ export default {
* 获取公共文件
*/
async loadListCommonFiles() {

// const currentFolderIdx = this.nowFolderIndex;
// const currentFolder = this.listUserFolders[currentFolderIdx];
// const commonFolder = this.listUserFolders.find(f => f.folderName === '公共文件夹');
// const commonFolderId = commonFolder && commonFolder.id;
// const userId = this.userId;
// const res = await services.fetchFolderFileList(currentFolder.id, userId, commonFolderId);
// this.myPublicFilesList = res.public && res.public.length > 0 ? res.public : this.myPublicFilesList;
// var thisApp = this;
// //thisApp.myPublicFilesList = [];
// this.$axios({


+ 1
- 1
vue.config.js Ver fichero

@@ -32,7 +32,7 @@ module.exports = {
proxy: {
'/api/pms': {
// target: 'http://47.104.91.134:8089',
target:'http://10.240.32.127:8089',
target:'http://10.240.32.156:8089',

changeOrigin: true,
secure: false,


Cargando…
Cancelar
Guardar