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 8aa8d1deedd461e3f925a111d195b065f1700603..7b3cd19119686109df97a8232f7a62d85ba3f1f0 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 bb2b6453c41b89c6ae1b854e62a83bae1cbaf1ad..217ff2304319195c66d0ac511c64af5bd9060069 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',