diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index 1a2a2338d..cf85e6771 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -277,9 +277,9 @@ {{ textStatusMap[scope.row.textStatus] }} - + - - + + + + + + + + + + + + @@ -1232,6 +1270,7 @@ import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle' import {mapGetters} from 'vuex' +import store from "@/store"; export default { name: 'EnterpriseStandardDatabase', components: { @@ -1926,6 +1965,21 @@ export default { } }, methods: { + isPermission (value) { + let hasCount = 0 + let set =new Set( value.split(",")) + let menuList = store.getters.getMenuList + if (menuList === '') { + return hasCount + } else { + menuList.map((menu) => { + if ( set.has(menu.id)|| value === undefined || value === '') { + hasCount++ + } + }) + } + return hasCount + }, dateFormatter () { //默认返回yyyy-MM-dd HH-mm-ss const d = new Date(); diff --git a/src/pages/regulatoryRepository/foreignRegulationsDatabase/index.vue b/src/pages/regulatoryRepository/foreignRegulationsDatabase/index.vue index 044cb6584..6908780c4 100644 --- a/src/pages/regulatoryRepository/foreignRegulationsDatabase/index.vue +++ b/src/pages/regulatoryRepository/foreignRegulationsDatabase/index.vue @@ -271,35 +271,66 @@ - + + + + { + if ( set.has(menu.id)|| value === undefined || value === '') { + hasCount++ + } + }) + } + return hasCount + }, dateFormatter () { //默认返回yyyy-MM-dd HH-mm-ss const d = new Date(); diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index 6b93572bc..49a21dd87 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -311,12 +311,10 @@ {{ textStatusMap[scope.row.textStatus] }} - + + @@ -2320,19 +2318,19 @@ export default { }, methods: { isPermission (value) { - let has = false + let hasCount = 0 let set =new Set( value.split(",")) let menuList = store.getters.getMenuList if (menuList === '') { - return false + return hasCount } else { menuList.map((menu) => { if ( set.has(menu.id)|| value === undefined || value === '') { - has = true + hasCount++ } }) } - return has + return hasCount }, // 海外标签过滤 filterNode(value, data) {