feat-wip(components): 数据字典相关页面代码提交

This commit is contained in:
2025-12-04 20:21:21 +08:00
parent b579b4542d
commit c263fa3a01

View File

@ -31,13 +31,12 @@ const { columns, columnChecks, data, loading, getData, getDataByPage, mobilePagi
columns: () => [
{
type: 'selection',
align: 'center',
width: 48
align: 'center'
},
{
key: 'index',
title: $t('common.index'),
width: 64,
width: 50,
align: 'center',
render: (_, index) => index + 1
},
@ -45,18 +44,19 @@ const { columns, columnChecks, data, loading, getData, getDataByPage, mobilePagi
key: 'name',
title: $t('page.sys.core.dictionary.fields.name'),
align: 'center',
minWidth: 120
resizable: true
},
{
key: 'code',
title: $t('page.sys.core.dictionary.fields.code'),
align: 'center',
minWidth: 120
resizable: true
},
{
key: 'type',
title: $t('page.sys.core.dictionary.fields.type'),
width: 100,
width: 80,
resizable: true,
render: row => {
if (row.type === null) {
return null;
@ -68,19 +68,18 @@ const { columns, columnChecks, data, loading, getData, getDataByPage, mobilePagi
key: 'createTime',
title: $t('page.sys.core.dictionary.fields.createTime'),
align: 'center',
width: 120
resizable: true
},
{
key: 'updateTime',
title: $t('page.sys.core.dictionary.fields.updateTime'),
align: 'center',
minWidth: 120
resizable: true
},
{
key: 'operate',
title: $t('common.operate'),
align: 'center',
minWidth: 130,
render: row => (
<div class="flex-center gap-8px">
<NButton type="primary" ghost size="small" onClick={() => edit(row.id)}>
@ -148,6 +147,7 @@ function edit(id: string) {
size="small"
:flex-height="!appStore.isMobile"
:scroll-x="702"
:bordered="true"
:loading="loading"
remote
:row-key="row => row.id"