Skip to content

Commit

Permalink
fix:1.14 问题修复 (#862)
Browse files Browse the repository at this point in the history
* fix(version_log): 1.14 tag date (#846)

* fix: 1.14问题修复 (#850)

* fix:1.14问题修复 && eslint (#854)

# Reviewed, transaction id: 17173

* fix: 1.14 问题修复

---------

Co-authored-by: wklken <wklken@gmail.com>
Co-authored-by: ielgnaw <wuji0223@126.com>
  • Loading branch information
3 people authored Sep 4, 2024
1 parent fa85b16 commit 602d085
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/dashboard-front/src/views/online-debug/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
v-for="item in stageList"
:id="item.id"
:key="item.id"
:name="item.name"
:name="getItemName(item)"
:disabled="['unreleased', 'failure'].includes(item?.release?.status)"
/>
</bk-select>
<div class="search-source">
Expand Down Expand Up @@ -537,6 +538,18 @@ const resourceGroup = computed(() => {
return group;
});
const getItemName = (item: any) => {
if (!['unreleased', 'failure'].includes(item?.release?.status)) {
return item.name;
}
if (item?.release?.status === 'unreleased') {
return `${item.name} (未发布)`;
}
if (item?.release?.status === 'failure') {
return `${item.name} (发布失败)`;
}
};
const handleStageChange = (payload: number) => {
const hasData = stageList.value.find((item: Record<string, number>) => item.id === payload);
// 如果是未发布或者发布失败则不需要调资源列表
Expand Down

0 comments on commit 602d085

Please sign in to comment.