Skip to content

Commit 722a79d

Browse files
fix: 平台管理体验提单问题修复7-7 (#2275)
1 parent 6dff19b commit 722a79d

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

webfe/package_vue/src/views/dev-center/create-app/cloud.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ export default {
929929
},
930930
clusterList() {
931931
// TODO(mh)目前先取 prod 的集群,后续前端按多租户设计稿开发时,需要分环境处理
932-
return this.advancedOptionsObj[this.regionChoose]['prod'] || [];
932+
return this.advancedOptionsObj[this.regionChoose]?.['prod'] || [];
933933
},
934934
mirrorExamplePlaceholder() {
935935
return `${this.$t('请输入镜像仓库,如')}${

webfe/package_vue/src/views/platform/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ export default {
134134
newQuery = { ...query };
135135
} else {
136136
newQuery = {
137-
...query,
138137
...(active === 'list' && query),
139138
...(active && { active }),
140139
};

webfe/package_vue/src/views/platform/operations/details/app-overview/index.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export default {
381381
app_tenant_mode: '租户模式',
382382
app_tenant_id: '租户 ID',
383383
type: '应用类型',
384-
category: "应用分类",
384+
category: '应用分类',
385385
is_active: '状态',
386386
creator: '创建人',
387387
created_humanized: '创建时间',
@@ -517,9 +517,9 @@ export default {
517517
this.editCategory.visible = true;
518518
this.editCategory.loading = false;
519519
await this.getCategoryList();
520-
520+
521521
// 查找当前分类的ID
522-
const currentCategory = this.editCategory.categoryList.find(item => item.name === this.baseInfo.category);
522+
const currentCategory = this.editCategory.categoryList.find((item) => item.name === this.baseInfo.category);
523523
this.editCategory.selectedCategory = currentCategory ? currentCategory.id : null;
524524
},
525525
// 获取分类列表
@@ -537,10 +537,9 @@ export default {
537537
await this.$store.dispatch('tenantOperations/updateAppCategory', {
538538
appCode: this.appCode,
539539
data: {
540-
category: this.editCategory.selectedCategory
541-
}
540+
category: this.editCategory.selectedCategory,
541+
},
542542
});
543-
this.editCategory.loading = false;
544543
this.editCategory.visible = false;
545544
this.$paasMessage({
546545
theme: 'success',
@@ -549,13 +548,14 @@ export default {
549548
this.getAppDetails();
550549
} catch (e) {
551550
this.catchErrorHandler(e);
551+
} finally {
552552
this.editCategory.loading = false;
553553
}
554554
},
555555
// 确认修改分类
556556
handleConfirmCategory() {
557557
if (!this.editCategory.selectedCategory) return;
558-
558+
559559
this.editCategory.loading = true;
560560
this.updateAppCategory();
561561
},
@@ -619,7 +619,7 @@ export default {
619619
const routeName = this.baseInfo.type === 'cloud_native' ? 'cloudAppSummary' : 'appSummary';
620620
const route = this.$router.resolve({
621621
name: routeName,
622-
params: { id: this.baseInfo.code },
622+
params: { id: this.baseInfo.code, moduleId: 'default' },
623623
});
624624
this.toLink(route.href);
625625
},

webfe/package_vue/src/views/platform/services/service-config/services-sideslider.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div slot="header">
1313
<div class="header-box">
1414
<span>{{ $t('配置服务') }}</span>
15-
<span class="desc">{{ `${$t('租户')}:${data.tenant_id}` }}</span>
15+
<span class="desc">{{ `${$t('租户')}:${data.name}` }}</span>
1616
</div>
1717
</div>
1818
<div

0 commit comments

Comments
 (0)