|
@@ -270,6 +270,7 @@ |
|
|
|
|
|
|
|
|
<script>
|
|
|
<script>
|
|
|
import { getUserInfo,roleOptions,fetchDeptList,getUserListByNode,roleMap,stateOptions} from '@/services/user.js';
|
|
|
import { getUserInfo,roleOptions,fetchDeptList,getUserListByNode,roleMap,stateOptions} from '@/services/user.js';
|
|
|
|
|
|
import { cloneDeep } from 'lodash';
|
|
|
import { fetchApi } from '@/utils/request';
|
|
|
import { fetchApi } from '@/utils/request';
|
|
|
import { firstCharToLowerCase, firstCharToUpperCase } from '@/utils/tool';
|
|
|
import { firstCharToLowerCase, firstCharToUpperCase } from '@/utils/tool';
|
|
|
import { AssignedWork } from '@/services/project.js';
|
|
|
import { AssignedWork } from '@/services/project.js';
|
|
@@ -329,6 +330,7 @@ export default { |
|
|
currUser: {},
|
|
|
currUser: {},
|
|
|
isShowManager:true,// 当前是否是设置项目负责人
|
|
|
isShowManager:true,// 当前是否是设置项目负责人
|
|
|
listManagerUser:[], //项目负责人
|
|
|
listManagerUser:[], //项目负责人
|
|
|
|
|
|
oldListManagerUser: [],
|
|
|
isProjManager: false,
|
|
|
isProjManager: false,
|
|
|
currListDeptUserData:[],
|
|
|
currListDeptUserData:[],
|
|
|
|
|
|
|
|
@@ -1033,94 +1035,6 @@ export default { |
|
|
this.nodeLeaves = false;
|
|
|
this.nodeLeaves = false;
|
|
|
this.opentree = true;
|
|
|
this.opentree = true;
|
|
|
},
|
|
|
},
|
|
|
/**
|
|
|
|
|
|
* 获取listprojprop
|
|
|
|
|
|
*/
|
|
|
|
|
|
getListProjProp: function () {
|
|
|
|
|
|
this.$axios({
|
|
|
|
|
|
method: "get",
|
|
|
|
|
|
url: encodeURI(
|
|
|
|
|
|
process.env.API_HOST +
|
|
|
|
|
|
"templates/templateproperty/" +
|
|
|
|
|
|
sessionStorage.templateID +
|
|
|
|
|
|
"/" +
|
|
|
|
|
|
sessionStorage.projId
|
|
|
|
|
|
)
|
|
|
|
|
|
})
|
|
|
|
|
|
.then(response => {
|
|
|
|
|
|
this.listProjProp = response.data.data;
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch(error => {
|
|
|
|
|
|
console.log(error);
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取当前项目信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
getNowProject: function () {
|
|
|
|
|
|
var thisApp = this;
|
|
|
|
|
|
this.$axios({
|
|
|
|
|
|
method: "get",
|
|
|
|
|
|
url: encodeURI(
|
|
|
|
|
|
process.env.API_HOST + "projects/project/" + sessionStorage.projId
|
|
|
|
|
|
)
|
|
|
|
|
|
})
|
|
|
|
|
|
.then(response => {
|
|
|
|
|
|
thisApp.nowProject = response.data;
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch(error => {
|
|
|
|
|
|
console.log(error);
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
* todo
|
|
|
|
|
|
* 加载需要分配的文件夹
|
|
|
|
|
|
*/
|
|
|
|
|
|
async listFolderChildren () {
|
|
|
|
|
|
// const res = await queryFolderList(sessionStorage.projId, this.userList);
|
|
|
|
|
|
// console.log(res);
|
|
|
|
|
|
// const { Data } = await templateService.queryTemplateNodeByTemplateId(templateID);
|
|
|
|
|
|
// const headNodes = (Data.children || []);
|
|
|
|
|
|
// this.newProjData.listFolder = [];
|
|
|
|
|
|
// headNodes.forEach(node => {
|
|
|
|
|
|
// const folder = {
|
|
|
|
|
|
// folderID: "",
|
|
|
|
|
|
// projID: "",
|
|
|
|
|
|
// superID: "",
|
|
|
|
|
|
// levelID: "",
|
|
|
|
|
|
// firstFolderID: "",
|
|
|
|
|
|
// tempNodeID: node.id,
|
|
|
|
|
|
// folderName: node.topic,
|
|
|
|
|
|
// fileCount: 0,
|
|
|
|
|
|
// childCount: 0,
|
|
|
|
|
|
// modifyUserID: "",
|
|
|
|
|
|
// deleted: 0,
|
|
|
|
|
|
// default: true,
|
|
|
|
|
|
// listUser: [],
|
|
|
|
|
|
// manageUser: []
|
|
|
|
|
|
// };
|
|
|
|
|
|
// this.newProjData.listFolder.push(folder);
|
|
|
|
|
|
// });
|
|
|
|
|
|
var thisApp = this;
|
|
|
|
|
|
this.$axios({
|
|
|
|
|
|
method: "get",
|
|
|
|
|
|
url: encodeURI(
|
|
|
|
|
|
process.env.API_HOST +
|
|
|
|
|
|
"folders/allot/children/" +
|
|
|
|
|
|
sessionStorage.userId +
|
|
|
|
|
|
"/" +
|
|
|
|
|
|
sessionStorage.projId
|
|
|
|
|
|
)
|
|
|
|
|
|
})
|
|
|
|
|
|
.then(response => {
|
|
|
|
|
|
for (var i = 0; i < response.data.length; i++) {
|
|
|
|
|
|
thisApp.listNewFolder.push(response.data[i]);
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch(error => {
|
|
|
|
|
|
console.log(error);
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* 获取全部的Dept数据
|
|
|
* 获取全部的Dept数据
|
|
|
*/
|
|
|
*/
|
|
@@ -1213,7 +1127,9 @@ export default { |
|
|
this.currUser = this.listManagerUser[0] || {};
|
|
|
this.currUser = this.listManagerUser[0] || {};
|
|
|
this.listManagerUser = this.listManagerUser.slice(1);
|
|
|
this.listManagerUser = this.listManagerUser.slice(1);
|
|
|
}
|
|
|
}
|
|
|
const folderList = mergeFolderList(folder, userHash);
|
|
|
|
|
|
|
|
|
this.oldListManagerUser = cloneDeep(this.listManagerUser);
|
|
|
|
|
|
const folderList = mergeFolderList(folder, userHash);
|
|
|
|
|
|
//
|
|
|
this.getfolderPerm(folderList)
|
|
|
this.getfolderPerm(folderList)
|
|
|
this.listNewFolder = folderList;
|
|
|
this.listNewFolder = folderList;
|
|
|
// console.log('得到的listNewFolder', this.listNewFolder);
|
|
|
// console.log('得到的listNewFolder', this.listNewFolder);
|
|
@@ -1269,6 +1185,7 @@ export default { |
|
|
Id: sessionStorage.createUserID,
|
|
|
Id: sessionStorage.createUserID,
|
|
|
ProjId: sessionStorage.projId,
|
|
|
ProjId: sessionStorage.projId,
|
|
|
ProjectManagerId: '',
|
|
|
ProjectManagerId: '',
|
|
|
|
|
|
OldProjectManagerId: this.oldListManagerUser.map(u => u.id).join(','),
|
|
|
Work: [],
|
|
|
Work: [],
|
|
|
};
|
|
|
};
|
|
|
params.ProjectManagerId = this.listManagerUser.length > 0 ? this.listManagerUser.map(projManager => {
|
|
|
params.ProjectManagerId = this.listManagerUser.length > 0 ? this.listManagerUser.map(projManager => {
|
|
|