Skip to content

Commit

Permalink
fix: 变量是否为常量改为必选 --bug=120999984
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 25468
  • Loading branch information
ywywZhou authored and luofann committed Dec 2, 2024
1 parent 511e07c commit 4d619c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@
source_tag: 'input.input',
source_type: 'custom',
validation: '^.+$',
pre_render_mako: false,
pre_render_mako: '',
value: '',
version: 'legacy'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,16 @@
</div>
<!-- 模板预渲染 -->
<div class="form-item clearfix" v-if="!isInternalVal">
<label class="form-label">
<label class="form-label required">
<span v-bk-tooltips.top="$t('常量在任务启动就完成变量值的计算,使用变量时不再重新计算保持值不变')" class="condition-tip">{{ $t('常量')}}</span>
</label>
<div class="form-content">
<bk-select
:value="String(theEditingData.pre_render_mako)"
:clearable="false"
:disabled="isViewMode"
name="preRenderMakoRule"
v-validate="{ required: true }"
@selected="onSelectPreRenderMako">
<bk-option
v-for="(option, index) in preRenderList"
Expand All @@ -176,6 +178,7 @@
:name="option.name">
</bk-option>
</bk-select>
<span v-show="veeErrors.has('preRenderMakoRule')" class="common-error-tip error-msg">{{ veeErrors.first('preRenderMakoRule') }}</span>
</div>
</div>
<!-- 描述 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@
source_type: 'custom',
validation: '^.+$',
is_condition_hide: 'false',
pre_render_mako: false,
pre_render_mako: '',
value: '',
version: 'legacy'
}
Expand Down

0 comments on commit 4d619c3

Please sign in to comment.