|
@@ -252,8 +252,8 @@
|
|
|
this.loadData()
|
|
this.loadData()
|
|
|
this.getConfig()
|
|
this.getConfig()
|
|
|
const roleList = this.$store.getters.userInfo.role
|
|
const roleList = this.$store.getters.userInfo.role
|
|
|
- // 系统管理角色添加删除按钮
|
|
|
|
|
- const hasRole = roleList.some(item => item.name === '质量负责人')
|
|
|
|
|
|
|
+ // 质量负责人和删除数据角色添加删除按钮
|
|
|
|
|
+ const hasRole = roleList.some(item => item.alias === 'zlfzr' || item.alias === 'scsjjs')
|
|
|
if (hasRole) {
|
|
if (hasRole) {
|
|
|
// 系统管理角色不做分类过滤
|
|
// 系统管理角色不做分类过滤
|
|
|
this.hasPermission = false
|
|
this.hasPermission = false
|