mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-08 19:53:47 +08:00
优化代码生成,添加字典预览与文件预览,使其适配当前版本
This commit is contained in:
@@ -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([
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
|
||||
<a-table
|
||||
size="small"
|
||||
:scroll="{ x: 1000 }"
|
||||
bordered
|
||||
class="smart-margin-top10"
|
||||
:dataSource="tableData"
|
||||
|
||||
Reference in New Issue
Block a user