fix: 修复字段描述不展示的问题

This commit is contained in:
junjun 2024-03-20 18:05:21 +08:00
parent 7ef8b09147
commit f5925bb192
4 changed files with 31 additions and 4 deletions

View File

@ -1429,7 +1429,8 @@ export default {
the_running_results: '即可查看运行结果',
item: '项',
logic_filter: '条件筛选',
enum_filter: '枚举筛选'
enum_filter: '枚举筛选',
description: '字段备注'
},
about: {
auth_to: '授权给',

View File

@ -116,7 +116,7 @@ watch(
<el-checkbox @change="checkChange" v-model="scope.row.checked" />
</template>
</el-table-column>
<el-table-column :label="t('panel.column_name')">
<el-table-column :label="t('dataset.origin_name')">
<template #default="scope">
<el-icon>
<Icon
@ -127,7 +127,7 @@ watch(
{{ scope.row.originName }}
</template>
</el-table-column>
<el-table-column property="name" :label="t('deDataset.original_name')" />
<el-table-column property="description" :label="t('deDataset.description')" />
</el-table>
</div>
</div>

View File

@ -1486,6 +1486,19 @@ const getDsIconName = data => {
</template>
</el-table-column>
<el-table-column
prop="description"
:label="t('deDataset.description')"
width="240"
>
<template #default="scope">
<div class="column-style">
<span v-if="scope.row.extField === 0">{{ scope.row.description }}</span>
<span style="color: #8d9199" v-else>&nbsp;</span>
</div>
</template>
</el-table-column>
<el-table-column prop="deType" :label="t('dataset.field_type')" width="200">
<template #default="scope">
<el-cascader
@ -1633,6 +1646,19 @@ const getDsIconName = data => {
</template>
</el-table-column>
<el-table-column
prop="description"
:label="t('deDataset.description')"
width="240"
>
<template #default="scope">
<div class="column-style">
<span v-if="scope.row.extField === 0">{{ scope.row.description }}</span>
<span style="color: #8d9199" v-else>&nbsp;</span>
</div>
</template>
</el-table-column>
<el-table-column prop="deType" :label="t('dataset.field_type')" width="200">
<template #default="scope">
<el-cascader

View File

@ -152,7 +152,7 @@ const allFieldsColumns = [
{
key: 'description',
dataKey: 'description',
title: '备注',
title: '字段备注',
width: 250
}
]