|
|
@@ -106,7 +106,6 @@ export default {
|
|
|
actions: [
|
|
|
{ key: 'adjust', label: '申请调班', type: 'primary', icon: 'ibps-icon-exchange', hidden: false },
|
|
|
{ key: 'edit', label: '编辑', type: 'primary', icon: 'ibps-icon-edit', hidden: (row) => {
|
|
|
- debugger
|
|
|
return !this.isRoleFilter() && this.$store.getters.userId !== row.createBy
|
|
|
} },
|
|
|
{ key: 'preview', label: '查看', type: 'primary', icon: 'ibps-icon-eye', hidden: false }
|
|
|
@@ -164,7 +163,6 @@ export default {
|
|
|
* 判断当前用户是否为超级管理员和高权限角色和专业组组长
|
|
|
*/
|
|
|
isRoleFilter () {
|
|
|
- debugger
|
|
|
const highRoles = this.$store.getters.userInfo.highRoles || [] // 高权限角色
|
|
|
const userRole = this.$store.getters.userInfo.role || [] // 用户权限角色
|
|
|
let isHighRole = false
|