@@ -453,7 +453,8 @@ export default { | |||
//不是创建者 不是项目不负责人 且也不是顶级节点的负责人 | |||
if(!tempManagerMap.includes(sessionStorage.userId) && this.currUser.id !== sessionStorage.userId && this.InitData.manageUser && this.InitData.manageUser.length > 0 && this.InitData.manageUser[0].id == sessionStorage.userId && !this.allChildrenLists.includes(this.InitData) ) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
title: "温馨提示", | |||
message: "没有权限更换工作负责人。", | |||
offset: 100, | |||
@@ -837,8 +838,8 @@ export default { | |||
handleCheckedOne(topIndex, user, e) { | |||
if(this.isAllowedDelete(user)) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "不能移除自己哦", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -850,8 +851,8 @@ export default { | |||
{ | |||
if(user.id == this.currUser.id) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "项目负责人已存在哦", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -948,7 +949,8 @@ export default { | |||
removeSelectUser: function (item) { | |||
if(item.id == this.currUser.id && !this.isShowManager) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "没有权限删除项目创建者。", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -957,7 +959,7 @@ export default { | |||
} | |||
if(item.id == sessionStorage.userId && !this.isShowManager) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
message: "不能移除自己。", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -968,7 +970,8 @@ export default { | |||
// 自己指派自己是可以移除的 | |||
if(this.isAllowedDelete(item)) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
title: "温馨提示", | |||
message: "没有权限移除自己。", | |||
offset: 100, | |||
@@ -1009,7 +1009,8 @@ export default { | |||
{ | |||
if(user.id == sessionStorage.userId) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
title: "温馨提示", | |||
message: "不能移除自己哦", | |||
offset: 100, | |||
@@ -1020,7 +1021,8 @@ export default { | |||
} | |||
if(user.id == this.currUser.accountId) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
stype:"warning", | |||
title: "温馨提示", | |||
message: "项目负责人已存在哦", | |||
offset: 100, | |||
@@ -1118,7 +1120,8 @@ export default { | |||
removeSelectUser: function (item) { | |||
if(item.id == sessionStorage.userId && !this.isShowManager) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
title: "温馨提示", | |||
message: "不能移除自己哦", | |||
offset: 100, | |||
@@ -419,7 +419,8 @@ | |||
changeManagerClick(clickUser) { | |||
if(this.isEditProjManager) { | |||
// 如果是选择项目负责人 则不需要进行状态切换 | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
title: "温馨提示", | |||
message: "项目负责人无法更换。", | |||
offset: 100, | |||
@@ -432,7 +433,8 @@ | |||
//不是创建者 不是项目不负责人 且也不是顶级节点的负责人 | |||
if(!tempManagerMap.includes(sessionStorage.userId) && this.currUser.id !== sessionStorage.userId && this.InitData.manageUser && this.InitData.manageUser.length > 0 && this.InitData.manageUser[0].id == sessionStorage.userId && !this.allChildrenLists.includes(this.InitData) ) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
title: "温馨提示", | |||
message: "没有权限更换工作负责人。", | |||
offset: 100, | |||
@@ -676,7 +678,8 @@ | |||
handleCheckedOne(topIndex, user, prevChecked, targetChecked) { | |||
if(!this.isAllowedDelete(user) && targetChecked == false) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "不能移除自己。", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -688,7 +691,8 @@ | |||
{ | |||
if(user.id == this.currUser.id && targetChecked == false)//取消选中项目创建者 | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "不可以移除项目创建者。", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -778,7 +782,8 @@ | |||
// debugger; | |||
if(item.id == this.currUser.id && !this.isShowManager) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "没有权限删除项目创建者。", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -787,7 +792,8 @@ | |||
} | |||
if(item.id == sessionStorage.userId && !this.isShowManager) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "不能移除自己。", | |||
offset: 100, | |||
duration: 5000 | |||
@@ -798,7 +804,8 @@ | |||
// 自己指派自己是可以移除的 | |||
if(!this.isAllowedDelete(item)) | |||
{ | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
title: "温馨提示", | |||
message: "没有权限移除自己。", | |||
offset: 100, | |||
@@ -212,8 +212,8 @@ | |||
}); | |||
}) | |||
.catch(() => { | |||
thisApp.$notify.info({ | |||
thisApp.$notify({ | |||
type:"warning", | |||
message: "操作已取消", | |||
offset: 100, | |||
duration: 1300 | |||
@@ -3419,7 +3419,7 @@ export default { | |||
notify.success(res.Msg); | |||
this.listFiles(); | |||
} else { | |||
notify.info(res.Msg); | |||
notify.warning(res.Msg); | |||
return; | |||
} | |||
} catch(err) { | |||
@@ -4890,8 +4890,8 @@ export default { | |||
}); | |||
}) | |||
.catch(() => { | |||
thisApp.$notify.info({ | |||
thisApp.$notify({ | |||
type:"warning", | |||
message: "操作已取消", | |||
offset: 100, | |||
duration: 2500, | |||
@@ -6939,8 +6939,8 @@ export default { | |||
}); | |||
}) | |||
.catch(() => { | |||
thisApp.$notify.info({ | |||
thisApp.$notify({ | |||
type:"warning", | |||
message: "操作已取消", | |||
offset: 100, | |||
duration: 2500, | |||
@@ -118,8 +118,8 @@ | |||
this.currentMsg = this.listAllMsg[this.msgIndex]; | |||
this.setMsg(); | |||
} else { | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "已经是最新消息啦", | |||
offset: 100, | |||
duration: 2500 | |||
@@ -137,8 +137,8 @@ | |||
this.msgIndex = this.msgIndex + 1; | |||
this.setMsg(); | |||
} else { | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "已经是最后一条消息啦", | |||
offset: 100, | |||
duration: 2500 | |||
@@ -1089,8 +1089,8 @@ | |||
this.Openclockpwd = true; | |||
this.currTreeNode = "removeUserManager"; | |||
} else { | |||
this.$notify.info({ | |||
this.$notify({ | |||
type:"warning", | |||
message: "请选择人员后再进行移除操作", | |||
offset: 100, | |||
duration: 2500 | |||