+ )" :key="index">
![]()
@@ -880,7 +879,8 @@ export default {
{
this.listManagerUser=[];
this.selectedUser.forEach(user => {
- if( user.userID != this.currUser.userID)
+ // if( user.userID != this.currUser.userID)
+ if( user.id != this.currUser.id)
{
this.listManagerUser.push(user);
}
@@ -897,12 +897,13 @@ export default {
showClose:false,
type: "warning"
}).then(() => {
+ // 注意这里将folderID修改为 id字段
for (var i = 0; i < this.listNewFolder.length; i++) {
- if( this.listNewFolder[i].folderID==this.currSelectData.folderID){
+ if( this.listNewFolder[i].id == this.currSelectData.id){
this.listNewFolder[i] = this.currSelectData;
}
for (var j = 0; j < this.listNewFolder[i].listChildren.length; j++) {
- if( this.listNewFolder[i].listChildren[j].folderID==this.currSelectData.folderID){
+ if( this.listNewFolder[i].listChildren[j].id == this.currSelectData.id){
this.listNewFolder[i].listChildren[j] = this.currSelectData;
}
}
@@ -983,7 +984,8 @@ export default {
// this.InitData.manageUser[0].roleName = "普通职员";
for (var i = 0; i < this.selectedUser.length; i++) {
if (
- this.selectedUser[i].userID == this.InitData.manageUser[0].userID
+ // this.selectedUser[i].userID == this.InitData.manageUser[0].userID
+ this.selectedUser[i].id == this.InitData.manageUser[0].id
) {
this.InitData.manageUser[0].folderPerm = 0;
this.selectedUser.splice(i, 1);
@@ -993,11 +995,11 @@ export default {
var listManageUser = [];
nowUser.folderPerm = 2;
listManageUser.push(nowUser);
- this.selectedUser.forEach(user => {
- if (user.folderPerm == 2 && user.userID != nowUser.userID) {
+ this.selectedUser.forEach(user => {//将userID 修改为id
+ if (user.folderPerm == 2 && user.id != nowUser.id) {
user.folderPerm = 1;
}
- if (user.userID == nowUser.userID) {
+ if (user.id == nowUser.id) {
user.folderPerm = 2;
}
});
@@ -1115,7 +1117,7 @@ export default {
//首级全选
for (var j = 0; j < this.listDept.length; j++) {
if (this.listDept[j].listUser.length > 0) {
- // this.handleCheckItemAll(j, false); //清除已经被选中的状态
+ this.handleCheckItemAll(j, false); //清除已经被选中的状态
this.handleCheckItemAll(j, e);
}
}