This commit is contained in:
@@ -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>,
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user