|
@@ -705,6 +705,7 @@ export default { |
|
|
currListDeptUserData:[],
|
|
|
currListDeptUserData:[],
|
|
|
|
|
|
|
|
|
userList: [], // 员工列表
|
|
|
userList: [], // 员工列表
|
|
|
|
|
|
finishBtnClickCount: 0,
|
|
|
};
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
created:function(){
|
|
|
created:function(){
|
|
@@ -919,7 +920,10 @@ export default { |
|
|
*分配完成并关闭窗体
|
|
|
*分配完成并关闭窗体
|
|
|
*/
|
|
|
*/
|
|
|
submitAndClose: function () {
|
|
|
submitAndClose: function () {
|
|
|
this.createFolders();
|
|
|
|
|
|
|
|
|
this.finishBtnClickCount ++;
|
|
|
|
|
|
if(this.finishBtnClickCount == 1) {
|
|
|
|
|
|
this.createFolders();
|
|
|
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
/*
|
|
|
/*
|
|
|
*编辑自定义工作
|
|
|
*编辑自定义工作
|
|
@@ -968,17 +972,22 @@ export default { |
|
|
if (this.InitData.manageUser.length != 0) {
|
|
|
if (this.InitData.manageUser.length != 0) {
|
|
|
console.log(this.InitData.manageUser[0]);
|
|
|
console.log(this.InitData.manageUser[0]);
|
|
|
this.InitData.manageUser[0].selected = false;
|
|
|
this.InitData.manageUser[0].selected = false;
|
|
|
|
|
|
this.listDept.forEach(dept => {
|
|
|
|
|
|
dept.listUser.forEach(user => {
|
|
|
|
|
|
if(user.id === this.InitData.manageUser[0].id) {
|
|
|
|
|
|
user.selected = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
|
|
// this.InitData.manageUser[0].roleName = "普通职员";
|
|
|
// this.InitData.manageUser[0].roleName = "普通职员";
|
|
|
for (var i = 0; i < this.selectedUser.length; i++) {
|
|
|
for (var i = 0; i < this.selectedUser.length; i++) {
|
|
|
if (
|
|
|
|
|
|
// this.selectedUser[i].userID == this.InitData.manageUser[0].userID
|
|
|
|
|
|
this.selectedUser[i].id == this.InitData.manageUser[0].id
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
if (this.selectedUser[i].id == this.InitData.manageUser[0].id) {
|
|
|
this.InitData.manageUser[0].folderPerm = 0;
|
|
|
this.InitData.manageUser[0].folderPerm = 0;
|
|
|
this.selectedUser.splice(i, 1);
|
|
|
this.selectedUser.splice(i, 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
var listManageUser = [];
|
|
|
var listManageUser = [];
|
|
|
nowUser.folderPerm = 2;
|
|
|
nowUser.folderPerm = 2;
|
|
|
listManageUser.push(nowUser);
|
|
|
listManageUser.push(nowUser);
|
|
@@ -1009,19 +1018,8 @@ export default { |
|
|
this.selectedUser = data.listUser;
|
|
|
this.selectedUser = data.listUser;
|
|
|
this.selectedManageUser = data.manageUser;
|
|
|
this.selectedManageUser = data.manageUser;
|
|
|
this.isShowSecondPage = true;
|
|
|
this.isShowSecondPage = true;
|
|
|
|
|
|
this.isShowStaffList = false;
|
|
|
this.isShowFirstPage = false;
|
|
|
this.isShowFirstPage = false;
|
|
|
// 这里应该将负责人的selected信息改变
|
|
|
|
|
|
this.listDept.some(dept=> {
|
|
|
|
|
|
if(data.manageUser[0].deptId === dept.id) {
|
|
|
|
|
|
dept.listUser.find(user => {
|
|
|
|
|
|
if(user.id === data.manageUser[0].id) {
|
|
|
|
|
|
//在部门的人员列表里面找到了已经选择的负责人 修改selected状态
|
|
|
|
|
|
user.selected = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
this.listDept = [...this.listDept];
|
|
|
|
|
|
},
|
|
|
},
|
|
|
/**
|
|
|
/**
|
|
|
* 进入时,重置权限
|
|
|
* 进入时,重置权限
|
|
@@ -1040,6 +1038,7 @@ export default { |
|
|
data.listUser[i].folderPerm;
|
|
|
data.listUser[i].folderPerm;
|
|
|
this.listDept[j].listUser[k].selected = true;
|
|
|
this.listDept[j].listUser[k].selected = true;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if(!this.isShowManager)
|
|
|
if(!this.isShowManager)
|
|
|
{
|
|
|
{
|
|
|
// if(this.currUser.accountId == sessionStorage.userId && sessionStorage.accountId == this.listDept[j].listUser[k].userID )
|
|
|
// if(this.currUser.accountId == sessionStorage.userId && sessionStorage.accountId == this.listDept[j].listUser[k].userID )
|
|
@@ -1060,7 +1059,6 @@ export default { |
|
|
*添加职员按钮直接进入 指派职员页面
|
|
|
*添加职员按钮直接进入 指派职员页面
|
|
|
*/
|
|
|
*/
|
|
|
aloneAddUserOnlyStaff: function (data) {
|
|
|
aloneAddUserOnlyStaff: function (data) {
|
|
|
debugger;
|
|
|
|
|
|
this.isShowManager=true;
|
|
|
this.isShowManager=true;
|
|
|
this.currWorkName = data.folderName;
|
|
|
this.currWorkName = data.folderName;
|
|
|
if (data.listUser == null) {
|
|
|
if (data.listUser == null) {
|
|
@@ -1284,6 +1282,7 @@ export default { |
|
|
this.selectedUser.splice(k, 1);
|
|
|
this.selectedUser.splice(k, 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
this.selectedManageUser.splice(0,1);
|
|
|
this.cancelCheck(user.id);
|
|
|
this.cancelCheck(user.id);
|
|
|
this.toSecondPage();
|
|
|
this.toSecondPage();
|
|
|
},
|
|
|
},
|
|
|