feat: 添加字典详情
Some checks failed
coverage CI / build (push) Has been cancelled

This commit is contained in:
2025-09-24 15:28:36 +08:00
parent 9363dc0d6e
commit 34cd919441
7 changed files with 364 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
import { PlusOutlined } from '@ant-design/icons';
import type { ActionType, ProColumns } from '@ant-design/pro-components';
import { history } from '@umijs/max';
import { Popconfirm } from 'antd';
import React, { useCallback, useRef, useState } from 'react';
import ConfigurableDrawerForm, {
@@ -24,6 +25,8 @@ const SyStemDict = () => {
const [type, setType] = useState<'create' | 'update'>('create');
const [id, setId] = useState<number>(0);
//获取路由数据
const handleEdit = (record: DictTypeVO) => {
setType('update');
setId(record.id);
@@ -102,6 +105,16 @@ const SyStemDict = () => {
>
<a></a>
</Popconfirm>,
<a
key="data"
onClick={() =>
history.push({
pathname: '/system/dict/data/' + record.type,
})
}
>
</a>,
],
};