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