优化代码生成,添加字典预览与文件预览,使其适配当前版本

This commit is contained in:
zhoumingfa
2025-03-31 23:29:58 +08:00
parent 5136148ce1
commit 4062d5a4bb
14 changed files with 120 additions and 62 deletions

View File

@@ -120,7 +120,7 @@
{{ text }}
</template>
<template v-if="column.dataIndex === 'place'">
<DictPreview :options="descList['GOODS_PLACE']" :value="text" />
<DictPreview :options="dictList['GOODS_PLACE']" :value="text" />
</template>
<template v-if="column.dataIndex === 'remark'">
<span>{{ text ? text : '' }}</span>
@@ -206,7 +206,7 @@
import DictPreview from '/@/components/dict-preview/index.vue';
import { useDict } from '/@/utils/dict';
const descList = useDict('GOODS_PLACE');
const dictList = useDict('GOODS_PLACE', 'GOODS_PLACE');
// ---------------------------- 表格列 ----------------------------
const columns = ref([

View File

@@ -59,6 +59,7 @@
<a-table
size="small"
:scroll="{ x: 1000 }"
bordered
class="smart-margin-top10"
:dataSource="tableData"