|
@@ -210,12 +210,11 @@ export default {
|
|
this.bindDialog = true;
|
|
this.bindDialog = true;
|
|
},
|
|
},
|
|
judDelete(item) {
|
|
judDelete(item) {
|
|
- //管理员,不能注销 TODO 非管理员不能修改
|
|
|
|
|
|
+ //管理员,不能注销
|
|
if (item.role === '0') return false;
|
|
if (item.role === '0') return false;
|
|
//此hr不是管理员,看当前用户是不是管理员,是管理员则允许
|
|
//此hr不是管理员,看当前用户是不是管理员,是管理员则允许
|
|
else if (this.is_admin) return true;
|
|
else if (this.is_admin) return true;
|
|
- //当前用户不是管理员,看看这个hr是不是自己,是自己允许修改,不是就不允许
|
|
|
|
- else return item.mobile === this.user.sub;
|
|
|
|
|
|
+ else return false;
|
|
},
|
|
},
|
|
judUser(item) {
|
|
judUser(item) {
|
|
if (this.is_admin) return true;
|
|
if (this.is_admin) return true;
|