Skip to content

Commit

Permalink
feat:推荐版本号优化 TencentBlueKing#10958
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 20134
  • Loading branch information
useryuyu committed Oct 10, 2024
1 parent 3a17fe6 commit 8093028
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@
<div class="version-con">
<div class="version-names">
<div
:class="{ 'baseline-build': isBuildNo(param) }"
:class="{ 'baseline-build': param.isBuildNo }"
v-bk-tooltips="{
...baselineTooltipContent,
disabled: param.id !== 'BK_CI_BUILD_NO'
}"
>
<span>{{ param.id }}</span>
<span>({{ isBuildNo(param) ? param.desc : $t(param.desc) }})</span>
<span>({{ param.isBuildNo ? param.desc : $t(param.desc) }})</span>
</div>
<div
id="baseline-tooltip-content"
v-if="isBuildNo(param)"
v-if="param.isBuildNo"
>
<p
v-for="(tip, index) in buildNoBaselineTips"
:key="index"
>
{{ $t(tip) }}
{{ tip }}
</p>
</div>
</div>
<div class="value-row">
<span class="default-value">
<span v-if="isBuildNo(param)">
<span v-if="param.isBuildNo">
{{ `${$t('buildNoBaseline.baselineValue')}${renderBuildNo.buildNo}(${getLabelByBuildType(renderBuildNo.buildNoType)})` }}
<span
class="dafault-value-current"
Expand Down Expand Up @@ -182,7 +182,7 @@
v-for="(tip, index) in buildNoBaselineTips"
:key="index"
>
{{ $t(tip) }}
{{ tip }}
</p>
</div>
</bk-form-item>
Expand Down Expand Up @@ -347,7 +347,8 @@
...this.versions,
{
id: 'BK_CI_BUILD_NO',
desc: this.$t('buildNo')
desc: this.$t('buildNo'),
isBuildNo: true
}
]
},
Expand All @@ -371,9 +372,6 @@
},
resetBuildNo () {
return this.buildNo.buildNo + 1
},
isBuildNo () {
return (param) => param.id === 'BK_CI_BUILD_NO'
}
},
watch: {
Expand Down

0 comments on commit 8093028

Please sign in to comment.