feat: render util

This commit is contained in:
dap
2024-09-12 08:43:56 +08:00
parent 4d67c99f2b
commit 3987c9e876
2 changed files with 223 additions and 0 deletions

View File

@@ -7,10 +7,12 @@ import type { Config } from '#/api/system/config/model';
import { onMounted, ref } from 'vue';
import { Page, useVbenModal } from '@vben/common-ui';
import { DictEnum } from '@vben/constants';
import { Space, Table } from 'ant-design-vue';
import { configList } from '#/api/system/config';
import { renderDict } from '#/utils/render';
import configModal from './config-modal.vue';
@@ -52,6 +54,14 @@ const columns: ColumnsType = [
dataIndex: 'configValue',
title: '参数Value',
},
{
align: 'center',
customRender: ({ value }) => {
return renderDict(value, DictEnum.SYS_YES_NO);
},
dataIndex: 'configType',
title: '系统内置',
},
{
align: 'center',
dataIndex: 'remark',