From 4f8dc0069a307bcf0ba28fd6f39bf8095a3db5ab Mon Sep 17 00:00:00 2001 From: "zhaokaiyao@91isoft.com" <6922339zky> Date: Tue, 9 Nov 2021 10:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E5=86=85=E5=A4=96,=E4=BC=81=E4=B8=9A,?= =?UTF-8?q?=E6=94=BF=E7=AD=96=E8=A1=A8=E6=A0=BC=E6=9D=83=E9=99=90=E6=93=8D?= =?UTF-8?q?=E4=BD=9C,=E6=B2=A1=E6=9C=89=E4=BB=BB=E6=84=8F=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=9D=83=E9=99=90=E7=9A=84=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=88=97,=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=98=BE=E7=A4=BA=E5=85=B6=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domesticStandardsAndRegulations/index.vue | 17 +-- .../components/EnterpriseStandardDatabase.vue | 112 +++++++++++++----- .../foreignRegulationsDatabase/index.vue | 101 +++++++++++----- .../foreignStandardsAndRegulations/index.vue | 28 ++--- 4 files changed, 175 insertions(+), 83 deletions(-) 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) {