[update] 市场法规清单
This commit is contained in:
+7
-9
@@ -245,6 +245,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['defaultHeight']),
|
||||
...mapGetters(['userInfo']),
|
||||
yScrollHeight () {
|
||||
/**
|
||||
* 前几个使用变量是为了配合iframe嵌套,算出页面显示范围的高度
|
||||
@@ -266,15 +267,12 @@ export default {
|
||||
importExcelUrl: function () {
|
||||
return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}`
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo']),
|
||||
// 是否可以查看历史版本,当前用户是否是法规管理员或超级管理员
|
||||
isCanLookHistory () {
|
||||
const superAdminRoleCode = window._CONFIG.superAdminRoleCode
|
||||
const regulationAdminRoleCode = window._CONFIG.regulationAdminRoleCode
|
||||
const userRoleList = this.userInfo.roleCode.split(',')
|
||||
return userRoleList.includes(superAdminRoleCode) || userRoleList.includes(regulationAdminRoleCode)
|
||||
}
|
||||
// 是否可以查看历史版本,当前用户是否是法规管理员或超级管理员
|
||||
isCanLookHistory () {
|
||||
const superAdminRoleCode = window._CONFIG.superAdminRoleCode
|
||||
const regulationAdminRoleCode = window._CONFIG.regulationAdminRoleCode
|
||||
const userRoleList = this.userInfo.roleCode.split(',')
|
||||
return userRoleList.includes(superAdminRoleCode) || userRoleList.includes(regulationAdminRoleCode)
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
||||
Reference in New Issue
Block a user