|
|
@@ -192,6 +192,7 @@
|
|
|
const roleList = this.$store.getters.userInfo.role
|
|
|
// 系统管理角色、实验室主任、信息管理角色具有高级权限
|
|
|
const hasRole = roleList.some(item => item.alias === 'xtgljs' || item.alias === 'xxgljs' || item.alias === 'syszr')
|
|
|
+ const { account = '' } = this.$store.getters
|
|
|
return {
|
|
|
width: 250,
|
|
|
selection: false,
|
|
|
@@ -248,11 +249,12 @@
|
|
|
{ prop: 'endTime', label: '完成时间', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width: 90}
|
|
|
],
|
|
|
rowHandle: hasRole ? {
|
|
|
- actions: [
|
|
|
- // {
|
|
|
- // key: 'detail',label:"内容及附件"
|
|
|
- // }
|
|
|
- ],
|
|
|
+ actions: account === 'jinyuan' ? [
|
|
|
+ {
|
|
|
+ key: 'detail',
|
|
|
+ label:'详情'
|
|
|
+ }
|
|
|
+ ] : [],
|
|
|
effect: 'display',
|
|
|
width: '100'
|
|
|
} : null
|