From 3641be23ee13d286f4ec7dc1fe1fc30b8a59cf77 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 23 Oct 2020 15:49:04 +0800 Subject: [PATCH 1/5] update request.js --- src/utils/request.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 3ab9f3ea..b94484cd 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -54,15 +54,15 @@ export async function fetchApi(path, params, config) { : axios.post(fullpath, params, config) ); return res.data; - } catch(e) { - if(e.response && e.response.status) { - switch(e.response.status) { + } catch (e) { + if (e.response && e.response.status) { + switch (e.response.status) { case 404: return { Code: 404, Msg: '找不到指定的服务', }; - default: + default: return { Code: 503, Msg: '服务异常,请稍后再试', @@ -78,7 +78,7 @@ export async function fetchApi(path, params, config) { } export function wrapErrorHint(response) { - if(response.Code !== 0) { + if (response.Code !== 0) { notify.error(response.Msg); } return response; @@ -88,7 +88,8 @@ export default axios; function mapApiPathToFullPath(path) { const [service] = path.split('/'); - const fullpath = `api/${(service === 'template' || service === 'project') ? 'pms' : 'cms'}/${service === 'authentication' ? '' : 'v1/'}${path}`; + const prefix = ['template', 'project', 'folder'].indexOf(service) !== -1 ? 'pms' : 'cms'; + const fullpath = `api/${prefix}/${service === 'authentication' ? '' : 'v1/'}${path}`; let method = 'GET'; switch (path) { @@ -109,9 +110,11 @@ function mapApiPathToFullPath(path) { case 'template/addTemplateNodeModelFile': case 'template/createNestedRelevance': case 'template/deleteNestedRelevance': - case 'project/EditProject': - case 'project/CreateProject': - // case 'template/deleteTemplateNodeModelFile': + case "folder/createSubfolder": + case "project/CreateProject": + case "project/EditProject": + case "project/assignedWork": + // case 'template/deleteTemplateNodeModelFile': method = 'POST'; break; // case 'authentication/loginOut': From f8b61de571b48e75ddd23ac2b5dabe65c7af0c8f Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 23 Oct 2020 17:06:29 +0800 Subject: [PATCH 2/5] =?UTF-8?q?newProj.vue=20=E5=8E=BB=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components_web/newProj/newProj.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/components_web/newProj/newProj.vue b/src/views/components_web/newProj/newProj.vue index f9faefb5..2f02fa3d 100644 --- a/src/views/components_web/newProj/newProj.vue +++ b/src/views/components_web/newProj/newProj.vue @@ -1441,7 +1441,7 @@ const res = await templateService.queryTemplateNodeByTemplateId(this.selectTemlateID); this.checkNewProjData.Node = res.Data; - this.$fetchApi('project/CreateProject', JSON.stringify(this.checkNewProjData)).then(res => { + this.$fetchApi('project/CreateProject', this.checkNewProjData).then(res => { console.log(res); if(res.Code === 0) { thisApp.$notify({ From 70c45f8e82c69c92526d6f1b95bdd88fbf32ac7c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 23 Oct 2020 18:22:00 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8C=87=E4=BB=A4resolve?= =?UTF-8?q?Img;=E5=A2=9E=E5=8A=A0img-lazy=E7=BB=84=E4=BB=B6=E4=BB=A5?= =?UTF-8?q?=E8=A7=A3=E5=86=B3v-lazy=E6=8C=87=E4=BB=A4=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=BD=BF=E7=94=A8filters=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/img-lazy/index.vue | 10 ++++++++++ src/filters/resolveAvator.js | 3 --- src/filters/resolveImg.js | 8 ++++++++ src/main.js | 5 ++++- src/views/demo/index.vue | 4 ++++ src/views/main_web/index/index.vue | 2 +- 6 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 src/components/img-lazy/index.vue delete mode 100644 src/filters/resolveAvator.js create mode 100644 src/filters/resolveImg.js diff --git a/src/components/img-lazy/index.vue b/src/components/img-lazy/index.vue new file mode 100644 index 00000000..95039235 --- /dev/null +++ b/src/components/img-lazy/index.vue @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/src/filters/resolveAvator.js b/src/filters/resolveAvator.js deleted file mode 100644 index cbf46bcd..00000000 --- a/src/filters/resolveAvator.js +++ /dev/null @@ -1,3 +0,0 @@ -import { getFileUrl } from '@/services/oss'; - -export default imgSrc => getFileUrl(imgSrc) || '/static/img/avator_default.svg'; \ No newline at end of file diff --git a/src/filters/resolveImg.js b/src/filters/resolveImg.js new file mode 100644 index 00000000..05e147c5 --- /dev/null +++ b/src/filters/resolveImg.js @@ -0,0 +1,8 @@ +import { getFileUrl } from '@/services/oss'; + +export const resolveAvator = imgSrc => getFileUrl(imgSrc) || '/static/img/avator_default.svg'; + +export default (imgSrc, imgType) => { + const defaultImg = imgType === 'avator' ? '/static/img/avator_default.svg' : '' + return getFileUrl(imgSrc) || defaultImg; +}; \ No newline at end of file diff --git a/src/main.js b/src/main.js index 3a7c1f95..bc3acea4 100644 --- a/src/main.js +++ b/src/main.js @@ -10,9 +10,10 @@ import 'element-ui/lib/theme-chalk/index.css'; import store from './store'; import vuex from 'vuex'; import Cookies from 'js-cookie' -import resolveAvator from '@/filters/resolveAvator'; +import resolveImg ,{ resolveAvator } from '@/filters/resolveImg'; import VueLazyload from 'vue-lazyload' import VueContextMenu from '@xunlei/vue-context-menu' +import LazyImg from '@/components/img-lazy'; // 加载其他css import "@/../public/static/css/element_chanage.css" @@ -29,12 +30,14 @@ Vue.use(ElementUI); Vue.use(VueLazyload); Vue.use(vuex); Vue.prototype.$cookie = Cookies; +Vue.component('ImgLazy', LazyImg); // todo DEPRECATED Vue.prototype.$axios = axios; // todo DEPRECATED Vue.prototype.$fetch = axios; Vue.prototype.$fetchApi = fetchApi; +Vue.filter('resolveImg', resolveImg); Vue.filter('resolveAvator', resolveAvator); //右键菜单 diff --git a/src/views/demo/index.vue b/src/views/demo/index.vue index a8c96941..95c50897 100644 --- a/src/views/demo/index.vue +++ b/src/views/demo/index.vue @@ -25,6 +25,10 @@ +
+ + +
diff --git a/src/views/main_web/index/index.vue b/src/views/main_web/index/index.vue index b1425b41..5aea8c53 100644 --- a/src/views/main_web/index/index.vue +++ b/src/views/main_web/index/index.vue @@ -84,7 +84,7 @@
From 6f0423d78de08b6467e5d045ea0283bd2491a7b2 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 26 Oct 2020 14:33:13 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=9A=20=E6=9B=B4=E6=AD=A3=E8=B7=B3=E8=BD=AC=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=A9=BA=E9=97=B4=E5=89=8D=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main_web/index/index.vue | 92 +++++++++++++++--------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/src/views/main_web/index/index.vue b/src/views/main_web/index/index.vue index 5aea8c53..10c2677f 100644 --- a/src/views/main_web/index/index.vue +++ b/src/views/main_web/index/index.vue @@ -372,21 +372,21 @@ export default { /** * 设置日期、时间 */ - setDateTime: function () { - this.nowDate = commonJs.getDate(); - this.createDate = this.nowDate; - this.nowTime = commonJs.getTime(); - var time = this.nowTime.substring(0, 2); - if (time < 12 && time > 0) { - this.welcome = "上午好! " + this.cnName; - } else if (time == 12) { - this.welcome = "中午好! " + this.cnName; - } else if (time > 12 && time > 20) { - this.welcome = "晚上好,注意休息! " + this.cnName; - } else if (time > 12 && time < 20) { - this.welcome = "下午好!" + this.cnName; - } - }, + // setDateTime: function () { + // this.nowDate = commonJs.getDate(); + // this.createDate = this.nowDate; + // this.nowTime = commonJs.getTime(); + // var time = this.nowTime.substring(0, 2); + // if (time < 12 && time > 0) { + // this.welcome = "上午好! " + this.cnName; + // } else if (time == 12) { + // this.welcome = "中午好! " + this.cnName; + // } else if (time > 12 && time > 20) { + // this.welcome = "晚上好,注意休息! " + this.cnName; + // } else if (time > 12 && time < 20) { + // this.welcome = "下午好!" + this.cnName; + // } + // }, /** * 获取项目数据 */ @@ -435,14 +435,14 @@ export default { * 转到workspace工作空间 */ goFilePage: function (proj) { - sessionStorage.createUserID = proj.createUserID; - sessionStorage.templateID = proj.templateID; - sessionStorage.projId = proj.projID; + sessionStorage.createUserID = proj.CreateUserId; + sessionStorage.templateID = proj.TemplateId; + sessionStorage.projId = proj.Id; sessionStorage.nowFolderIndex = ""; - sessionStorage.comFolderId = proj.comFolderID; - sessionStorage.newProjStatus = proj.newProjStatus; - if (sessionStorage.projName != proj.projName) { - sessionStorage.projName = proj.projName; + sessionStorage.comFolderId = proj.ComFolderId; + sessionStorage.newProjStatus = proj.NewProjStatus; + if (sessionStorage.projName != proj.ProjName) { + sessionStorage.projName = proj.ProjName; } this.$router.push({ name: "workspace", @@ -612,30 +612,30 @@ export default { /** * 打开项目设置窗体 */ - projectEdit: function (proj) { - this.currProjId = proj.projID; - var thisApp = this; - this.$axios({ - method: "get", - url: encodeURI( - process.env.API_HOST + - "projects/manager/" + - this.currProjId + - "/" + - sessionStorage.userId - ), - }) - .then((response) => { - if (response.data != null && response.data != "") { - thisApp.isProjectManager = response.data.isProjManager; - thisApp.isShowProjSetting = true; - thisApp.isEditProjFolder = false; - } - }) - .catch((error) => { - console.log(error); - }); - }, + // projectEdit: function (proj) { + // this.currProjId = proj.projID; + // var thisApp = this; + // this.$axios({ + // method: "get", + // url: encodeURI( + // process.env.API_HOST + + // "projects/manager/" + + // this.currProjId + + // "/" + + // sessionStorage.userId + // ), + // }) + // .then((response) => { + // if (response.data != null && response.data != "") { + // thisApp.isProjectManager = response.data.isProjManager; + // thisApp.isShowProjSetting = true; + // thisApp.isEditProjFolder = false; + // } + // }) + // .catch((error) => { + // console.log(error); + // }); + // }, /** * 打开项目概况 */ From eda969b715c9cdfe383414732a6f0f3d26c43be5 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 26 Oct 2020 17:57:03 +0800 Subject: [PATCH 5/5] =?UTF-8?q?workspace=20=E8=B0=83=E6=95=B4=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BD=8D=E7=BD=AE=EF=BC=9B=E6=9B=B4=E6=8D=A2folder?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workspace/components}/workLine.vue | 642 +++++++++--------- src/views/main_web/workspace/service.js | 25 + src/views/main_web/workspace/workspace.vue | 334 +++++---- 3 files changed, 537 insertions(+), 464 deletions(-) rename src/views/{components_web/workLine => main_web/workspace/components}/workLine.vue (95%) create mode 100644 src/views/main_web/workspace/service.js diff --git a/src/views/components_web/workLine/workLine.vue b/src/views/main_web/workspace/components/workLine.vue similarity index 95% rename from src/views/components_web/workLine/workLine.vue rename to src/views/main_web/workspace/components/workLine.vue index ceda3326..dcd82a66 100644 --- a/src/views/components_web/workLine/workLine.vue +++ b/src/views/main_web/workspace/components/workLine.vue @@ -1,322 +1,320 @@ - - - + + + diff --git a/src/views/main_web/workspace/service.js b/src/views/main_web/workspace/service.js new file mode 100644 index 00000000..1e670e3f --- /dev/null +++ b/src/views/main_web/workspace/service.js @@ -0,0 +1,25 @@ +import { fetchApi } from '@/utils/request'; +import { firstCharToLowerCase, firstCharToUpperCase } from '@/utils/tool'; + + +export async function fetchWorkFlow(projectId, userId) { + const res = await fetchApi('folder/queryNodeFolderListByProjectIdAndUserId', { projectId, userId }); + const list = (res.Data || []).map(node => { + const lower = firstCharToLowerCase(node); + // 工作链中的上下游 + lower.listsShareFrom = [[], []]; + return lower; + }); + return list; +} + +/** + * 查询文件夹下边的文件(包含子文件夹以及协同文件) + * @param {*} folderId + * @param {*} userId + */ +export async function fetchFolderFileList(folderId, userId) { + const res = await fetchApi('folder/queryFileListByFolderId', {folderId, userId}); + console.log(res); + return res; +} \ No newline at end of file diff --git a/src/views/main_web/workspace/workspace.vue b/src/views/main_web/workspace/workspace.vue index 6cf69f71..7f72bcc7 100644 --- a/src/views/main_web/workspace/workspace.vue +++ b/src/views/main_web/workspace/workspace.vue @@ -2264,7 +2264,7 @@
{{ item.extension }} @@ -2332,7 +2332,7 @@
{{ item.extension }} @@ -2710,12 +2710,13 @@ import officeview from "@/views/components/officeview/officeview.vue"; import imageview from "@/views/components/imageview/imageview.vue"; // import BMapComponent from "@/views/components/map/bmap"; import DistWork from "@/views/components_web/distWork/distWork"; -import WorkLine from "@/views/components_web/workLine/workLine"; +import WorkLine from "./components/workLine"; import ProjSetting from "@/views/components_web/projSetting/projSetting"; import FileShare from "@/views/components_web/share_setting/fileshare"; import draggable from "vuedraggable"; import vuetify from "vuetify"; import back from '@/services/system'; +import * as services from './service'; const $ = window.jQuery; const Velocity = window.Velocity; @@ -2730,7 +2731,7 @@ const initialTempFile = (folderGroupID, folderGroupName) => ({ folderGroupID, folderGroupName, folderID: "", - levelID: "", + levelId: "", modifyTime: "", modifyUserID: "", superID: "", @@ -2939,7 +2940,7 @@ export default { folderGroupID: "", folderID: "", superID: "", - levelID: "", + levelId: "", folderGroupName: "", childCount: 0, createUserID: "", @@ -3145,6 +3146,7 @@ export default { } }, /** + * todo * 获取设置信息 */ loadSettings() { @@ -3181,6 +3183,7 @@ export default { }); }, /** + * todo * 判断用户是否是项目负责人 */ loadProjManager: function () { @@ -3679,62 +3682,65 @@ export default { this.isonselect = "-2"; } }, - /* - *获取列表文件夹 - */ - listFolders: function () { - var thisApp = this; - this.$axios({ - method: "get", - url: encodeURI( - process.env.API_HOST + - "folders/work/" + - this.userId + - "/" + - this.projId - ), - }) - .then((response) => { - thisApp.listUserFolders = response.data; - if (thisApp.listUserFolders.length > 0) { - if (this.$route.params.folderId != undefined) { - var folderid = this.$route.params.folderId; - for ( - let index = 0; - index < thisApp.listUserFolders.length; - index++ - ) { - if (thisApp.listUserFolders[index].folderID == folderid) { - thisApp.nowFolderIndex = index; - } - } - } else { - if ( - sessionStorage.nowFolderIndex != "" && - sessionStorage.nowFolderIndex != undefined - ) { - thisApp.nowFolderIndex = parseInt( - sessionStorage.nowFolderIndex - ); - } else { - thisApp.nowFolderIndex = 0; - } - } - thisApp.nowFolder = thisApp.listUserFolders[thisApp.nowFolderIndex]; - thisApp.listFiles(); - if ( - thisApp.dbClickSelectedFolderGroupData == null || - JSON.stringify(thisApp.dbClickSelectedFolderGroupData) == "{}" - ) { - thisApp.timer = setInterval(() => { - thisApp.listFiles(); - }, 3 * 1000); - } + /** + * todo + * 获取列表文件夹 + */ + async listFolders () { + const userId = this.userId; + const projId = this.projId; + const workList = await services.fetchWorkFlow(projId, userId); + const folderList = workList.slice(1); + console.log(folderList); + this.listUserFolders = folderList; + if(!folderList.length) return; + if (this.$route.params.folderId != undefined) { + var folderId = this.$route.params.folderId; + folderList.forEach((folder, index) => { + if(folder.id === folderId) { + this.nowFolderIndex = index; } - }) - .catch((error) => { - console.log(error); }); + } else { + if ( + sessionStorage.nowFolderIndex != "" && + sessionStorage.nowFolderIndex != undefined + ) { + this.nowFolderIndex = parseInt( + sessionStorage.nowFolderIndex + ); + } else { + this.nowFolderIndex = 0; + } + } + + this.nowFolder = folderList[this.nowFolderIndex]; + this.listFiles(); + if ( + this.dbClickSelectedFolderGroupData == null || + JSON.stringify(this.dbClickSelectedFolderGroupData) == "{}" + ) { + this.timer = setInterval(() => { + this.listFiles(); + }, 3 * 1000); + } + // var thisApp = this; + // this.$axios({ + // method: "get", + // url: encodeURI( + // process.env.API_HOST + + // "folders/work/" + + // this.userId + + // "/" + + // this.projId + // ), + // }) + // .then((response) => { + + // }) + // .catch((error) => { + // console.log(error); + // }); }, /** * 更新新项目标识 @@ -3761,91 +3767,134 @@ export default { /** * 获取当前工作下文件 */ - listFiles: function () { - var thisApp = this; - thisApp.isCommonPage = false; - thisApp.nowFolderId = - thisApp.listUserFolders[thisApp.nowFolderIndex].folderID; // 设置当前打开工作文件夹ID - thisApp.nowFolderName = - thisApp.listUserFolders[thisApp.nowFolderIndex].folderName; // 设置当前工作名称 - var folderPerm = - thisApp.listUserFolders[thisApp.nowFolderIndex].folderPerm; - if ( - this.listUserFolders[thisApp.nowFolderIndex].folderName == "公共文件夹" - ) { + async listFiles() { + const currentFolderIdx = this.nowFolderIndex; + const currentFolder = this.listUserFolders[currentFolderIdx]; + const userId = this.userId; + this.isCommonPage = false; + this.nowFolderId = currentFolder.id; // 设置当前打开工作文件夹ID + this.nowFolderName = currentFolder.folderName; // 设置当前工作名称 + this.folderPerm = currentFolder.folderPerm; + // thisApp.isCommonPage = false; + // thisApp.nowFolderId = + // thisApp.listUserFolders[thisApp.nowFolderIndex].id; // 设置当前打开工作文件夹ID + // thisApp.nowFolderName = + // thisApp.listUserFolders[thisApp.nowFolderIndex].folderName; // 设置当前工作名称 + // var folderPerm = + // thisApp.listUserFolders[thisApp.nowFolderIndex].folderPerm; + const isCommonFolder = currentFolder.folderName === '公共文件夹'; + if(isCommonFolder) { this.fileindex = 2; - sessionStorage.comFolderId = - thisApp.listUserFolders[thisApp.nowFolderIndex].folderID; + sessionStorage.comFolderId = currentFolder.id; this.isCommonPage = true; - this.$axios({ - method: "get", - url: encodeURI( - process.env.API_HOST + - "archives" + - "/all/" + - thisApp.nowFolderId + - "/" + - sessionStorage.userId - ), - }) - .then((response) => { - thisApp.folderFileList = response.data; - if (this.currentPageType == 0) { - // 加载我的文件 - this.myFilesList = this.folderFileList.listMyFiles; - //zxm+ 加载我的文件夹组 - this.myListFolderGroups = this.folderFileList.listFolderGroups; - } else { - // 加载工作文件 - this.myFilesList = this.folderFileList.listOtherFiles; - //zxm+ 加载工作文件夹组 - this.myListFolderGroups = this.folderFileList.listOtherFolderGroups; - } - thisApp.loadCommitedComFiles(); - }) - .catch((error) => { - console.log(error); - }); + } else if (this.fileindex == 2) { this.fileindex = 0; } + + const res = await services.fetchFolderFileList(currentFolder.id, userId); + if(res.Code !== 0) return; + const folderResInfo = (res.Data || {}); + const folderFileList = this.folderFileList = { + listAllFiles:null, + listBreadFolderGroups: null, + listFolderGroups: folderResInfo.folder, + // 我的文件 + listMyFiles: folderResInfo.myFile, + // 工作文件 + listOtherFiles: folderResInfo.workFile, + listOtherFolderGroups: null, + } + + if (this.currentPageType == 0) { + // 加载我的文件 + this.myFilesList = this.folderFileList.listMyFiles; + // 加载我的文件夹 zxm+ + this.myListFolderGroups = this.folderFileList.listFolderGroups; + } else { + // 加载工作文件 + this.myFilesList = this.folderFileList.listOtherFiles; + // 加载工作文件分组 zxm+ + this.myListFolderGroups = this.folderFileList.listOtherFolderGroups; + } + + if(isCommonFolder) { + this.loadCommitedComFiles(); } else { - if (this.fileindex == 2) { - this.fileindex = 0; + if (this.curactive == 0) { + this.listCollaborationFiles(); + } else if (this.curactive == 1) { + this.loadListCommonFiles(); } - this.$axios({ - method: "get", - url: encodeURI( - process.env.API_HOST + - "archives" + - "/all/" + - thisApp.nowFolderId + - "/" + - sessionStorage.userId - ), - }) - .then((response) => { - thisApp.folderFileList = response.data; - if (this.currentPageType == 0) { - // 加载我的文件 - thisApp.myFilesList = thisApp.folderFileList.listMyFiles; - // 加载我的文件夹 zxm+ - thisApp.myListFolderGroups = - thisApp.folderFileList.listFolderGroups; - } else { - // 加载工作文件 - thisApp.myFilesList = thisApp.folderFileList.listOtherFiles; - // 加载工作文件分组 zxm+ - thisApp.myListFolderGroups = - thisApp.folderFileList.listOtherFolderGroups; - } - if (thisApp.curactive == 0) { - thisApp.listCollaborationFiles(); - } else if (thisApp.curactive == 1) { - thisApp.loadListCommonFiles(); - } - }) - .catch((error) => { - console.log(error); - }); } + + // debugger; + // if (currentFolder.folderName == "公共文件夹") { + // this.fileindex = 2; + // sessionStorage.comFolderId = currentFolder.id; + // this.isCommonPage = true; + // this.$axios({ + // method: "get", + // url: encodeURI( + // process.env.API_HOST + + // "archives" + + // "/all/" + + // this.nowFolderId + + // "/" + + // sessionStorage.userId + // ), + // }) + // .then((response) => { + // this.folderFileList = response.data; + // if (this.currentPageType == 0) { + // // 加载我的文件 + // this.myFilesList = this.folderFileList.listMyFiles; + // //zxm+ 加载我的文件夹组 + // this.myListFolderGroups = this.folderFileList.listFolderGroups; + // } else { + // // 加载工作文件 + // this.myFilesList = this.folderFileList.listOtherFiles; + // //zxm+ 加载工作文件夹组 + // this.myListFolderGroups = this.folderFileList.listOtherFolderGroups; + // } + // this.loadCommitedComFiles(); + // }) + // .catch((error) => { + // console.log(error); + // }); + // } else { + // if (this.fileindex == 2) { this.fileindex = 0; } + // this.$axios({ + // method: "get", + // url: encodeURI( + // process.env.API_HOST + + // "archives" + + // "/all/" + + // this.nowFolderId + + // "/" + + // sessionStorage.userId + // ), + // }) + // .then((response) => { + // this.folderFileList = response.data; + // if (this.currentPageType == 0) { + // // 加载我的文件 + // this.myFilesList = this.folderFileList.listMyFiles; + // // 加载我的文件夹 zxm+ + // this.myListFolderGroups = this.folderFileList.listFolderGroups; + // } else { + // // 加载工作文件 + // this.myFilesList = this.folderFileList.listOtherFiles; + // // 加载工作文件分组 zxm+ + // this.myListFolderGroups = this.folderFileList.listOtherFolderGroups; + // } + // if (this.curactive == 0) { + // this.listCollaborationFiles(); + // } else if (this.curactive == 1) { + // this.loadListCommonFiles(); + // } + // }) + // .catch((error) => { + // console.log(error); + // }); + // } }, /** * 获取协作文件 @@ -6366,7 +6415,7 @@ export default { folderGroupID: "", folderID: "", superID: "", - levelID: "", + levelId: "", folderGroupName: "", childCount: 0, createUserID: "", @@ -6395,9 +6444,10 @@ export default { } this.folderGroupData.folderGroupID = this.dbClickSelectedFolderGroupData.folderGroupID; this.folderGroupData.superID = this.dbClickSelectedFolderGroupData.folderGroupID; - this.folderGroupData.levelID = this.dbClickSelectedFolderGroupData.levelID; + this.folderGroupData.levelId = this.dbClickSelectedFolderGroupData.levelId; this.folderGroupData.folderID = this.nowFolder.folderID; this.folderGroupData.createUserID = sessionStorage.userId; + // debugger; this.$axios({ method: "post", url: encodeURI(process.env.API_HOST + "folders/foldergroup"), @@ -6455,7 +6505,7 @@ export default { var param = { folderId: foldergroup.folderID, foldergroupId: foldergroup.folderGroupID, - levelID: foldergroup.levelID, + levelId: foldergroup.levelId, userId: sessionStorage.userId, }; this.$axios({