From 456bf97f623e81d7c60a9dcf5ea09f09d20ccf21 Mon Sep 17 00:00:00 2001 From: dengbf Date: Fri, 4 Jul 2025 10:57:31 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E5=85=B3=E8=81=94]=20#[1457358708899840]?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=8F=91=E5=B8=83-=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=9C=89=E5=BA=94=E7=94=A8=E7=9A=84=E6=9F=A5=E7=9C=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=9D=83=E9=99=90=EF=BC=8C=E6=97=A0=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9D=83=E9=99=90=E6=97=B6=EF=BC=8C=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=8F=91=E5=B8=83=E4=BD=9C=E4=B8=9A=E7=9A=84=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E7=B1=BB=E7=9B=AE=E5=BC=82=E5=B8=B8=20http://192.168.?= =?UTF-8?q?0.96:8090/demo/rdm.html#/bug-detail/939050947543040/93905094754?= =?UTF-8?q?3057/1457358708899840?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application-config/application-config-manage.vue | 1 - .../deploy/application-config/pipeline-detail.vue | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/views/pages/deploy/application-config/application-config-manage.vue b/src/views/pages/deploy/application-config/application-config-manage.vue index 8aa8d1de..7b3cd191 100644 --- a/src/views/pages/deploy/application-config/application-config-manage.vue +++ b/src/views/pages/deploy/application-config/application-config-manage.vue @@ -251,7 +251,6 @@ export default { if (this.envId) { this.$set(query, 'envId', this.envId); } - this.$set(query, 'hasEditAuth', this.canEdit); // 编辑配置权限 this.$router.push({ path: '/application-config-pipeline-detail', query: query diff --git a/src/views/pages/deploy/application-config/pipeline-detail.vue b/src/views/pages/deploy/application-config/pipeline-detail.vue index bb2b6453..217ff230 100644 --- a/src/views/pages/deploy/application-config/pipeline-detail.vue +++ b/src/views/pages/deploy/application-config/pipeline-detail.vue @@ -311,14 +311,8 @@ export default { this.envId = parseInt(this.$route.query.envId); this.combopConfig.isEditRuntimeParam = false; } - if (this.appSystemId && this.$route.query.hasOwnProperty('hasEditAuth')) { - // 是否有编辑配置权限 - let hasEditAuth = this.$route.query.hasEditAuth == 'true'; - this.hasEditAuth = hasEditAuth; - } else { - // 预置参数集,跳转到编辑流水线,需要判断是否有编辑配置权限 - await this.getAuthInfo(); - } + //跳转到编辑流水线,需要判断是否有编辑配置权限 + await this.getAuthInfo(); this.getAppPipeline(); }, beforeMount() {}, @@ -1041,6 +1035,8 @@ export default { if (authList.includes('operation#all') || authList.includes('operation#edit') || (authInfo && authInfo.isHasAllAuthority)) { // 有编辑配置权限 this.hasEditAuth = true; + } else if (authList.includes('operation#view') || authList.includes('operation#auth') || authList.includes('operation#execute')) { + this.hasEditAuth = false; } else { this.$router.push({ path: '/no-authority', -- Gitee