From 9c30a3c93469963c833a35f6180e4c4012807c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Mon, 19 Jun 2023 18:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B8=AD=E5=BF=83-=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E5=88=86=E4=BA=AB-=E4=B8=8D=E6=98=AF=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E4=BA=BA=E6=97=B6=EF=BC=8C=E4=B9=9F=E8=83=BD=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=88=AB=E4=BA=BA=E7=9A=84=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/phoneView/problemKnowledgeBase.vue | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/jero-web/src/views/phoneView/problemKnowledgeBase.vue b/jero-web/src/views/phoneView/problemKnowledgeBase.vue index fe61bb78e..9853edf6e 100644 --- a/jero-web/src/views/phoneView/problemKnowledgeBase.vue +++ b/jero-web/src/views/phoneView/problemKnowledgeBase.vue @@ -83,7 +83,9 @@ {{$t('answer')}} -
+
{{$t('delete')}}
@@ -107,7 +109,9 @@
-
+
@@ -152,11 +156,22 @@ isDisplay: false, commentQuery: {}, sendDisplay: true, - num: 1 + num: 1, + userInfoQuery:{}, + administrators:false, } }, mounted() { document.title = 'NIO GRP' + this.administrators = false + this.userInfoQuery = this.userInfo() + if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) { + this.userInfo().userRoleList.forEach(res => { + if (res.roleCode == 'admin') { + this.administrators = true + } + }) + } window.addEventListener('scroll', this.scrolling) window.addEventListener('mousedown', this.handleonmousedown) this.getQueryBy()