CN-1066 feat: 增加知识库格式提示

This commit is contained in:
chenjinsong
2023-07-14 20:32:18 +08:00
parent d640c656fa
commit ee338b247d
2 changed files with 35 additions and 1 deletions

View File

@@ -94,6 +94,22 @@
}) }}
</div>
<div class="imported-table-box" :class="previewErrorTip ? 'imported-table-box--error' : ''">
<div class="entity-format-tip">
<template v-if="editObject.source === knowledgeBaseType.find(t => t.name === 'ip').value">
<div><span>{{$t('overall.format')}}:</span></div>
<div><span>IPv4</span> x.x.x.x</div>
<div><span>IPv4 CIDR</span> x.x.x.x/n</div>
<div><span>IPv4 Range</span> x.x.x.x-y.y.y.y</div>
<div><span>IPv6</span> x:x:x::x</div>
<div><span>IPv6 CIDR</span> x:x:x::x/n</div>
<div><span>IPv6 Range</span> x:x:x::x-y:y:y::y</div>
</template>
<template v-else-if="editObject.source === knowledgeBaseType.find(t => t.name === 'domain').value">
<div><span>{{$t('overall.format')}}:</span></div>
<div><span>{{$t('entities.format.suffix')}}</span> *example.com</div>
<div><span>{{$t('entities.format.exactly')}}</span> $www.example.com</div>
</template>
</div>
<el-form ref="editForm" :model="editTagForm" :rules="editTagFormRules">
<table class="imported-table" v-if="!importedDataNoData">
<tr>