feat: update computed attr tip

This commit is contained in:
songlh 2024-09-20 15:36:19 +08:00
parent 3beea17770
commit 4b300e772d
5 changed files with 5 additions and 0 deletions

View File

@ -286,6 +286,7 @@ const cmdb_en = {
attrCode: 'Attr Code',
computedAttrTip1: 'Reference attributes follow jinja2 syntax',
computedAttrTip2: `Multi-valued attributes (lists) are rendered with [ ] included by default, if you want to remove it, the reference method is: """{{ attr_name | join(',') }}""" where commas are separators`,
computedAttrTip3: `Cannot refer to other computed attributes`,
example: 'Example',
attrFilterTip: `The third column of values allows you to select attributes of this model to cascade attributes`,
rule: 'Rule',

View File

@ -286,6 +286,7 @@ const cmdb_zh = {
attrCode: '属性代码',
computedAttrTip1: '引用属性遵循jinja2语法',
computedAttrTip2: `多值属性(列表)默认呈现包括[ ], 如果要去掉, 引用方法为: """{{ attr_name | join(',') }}""" 其中逗号为分隔符`,
computedAttrTip3: `不能引用其他计算属性`,
example: '例如',
attrFilterTip: '第三列值可选择本模型的属性,来实现级联属性的功能',
rule: '规则',

View File

@ -398,6 +398,7 @@
<div v-show="isShowComputedArea" class="computed-attr-tip">
<div>1. {{ $t('cmdb.ciType.computedAttrTip1') }}</div>
<div>2. {{ $t('cmdb.ciType.computedAttrTip2') }}</div>
<div>3. {{ $t('cmdb.ciType.computedAttrTip3') }}</div>
</div>
<ComputedArea
showCalcComputed

View File

@ -391,6 +391,7 @@
<div v-show="isShowComputedArea" class="computed-attr-tip">
<div>1. {{ $t('cmdb.ciType.computedAttrTip1') }}</div>
<div>2. {{ $t('cmdb.ciType.computedAttrTip2') }}</div>
<div>3. {{ $t('cmdb.ciType.computedAttrTip3') }}</div>
</div>
<ComputedArea ref="computedArea" v-if="isShowComputedArea" :canDefineComputed="canDefineComputed" />
</a-form-item>

View File

@ -198,6 +198,7 @@
<div class="script-tip">
<div>1. {{ $t('cmdb.ciType.computedAttrTip1') }}</div>
<div>2. {{ $t('cmdb.ciType.computedAttrTip2') }}</div>
<div>3. {{ $t('cmdb.ciType.computedAttrTip3') }}</div>
</div>
<div class="all-attr-btn">