|
@@ -1,4 +1,4 @@
|
|
|
-import {ActionType, PageContainer, ProForm, ProFormText,ProFormRadio, ProTable,} from '@ant-design/pro-components';
|
|
|
+import {ActionType, PageContainer, ProForm, ProFormText,ProFormRadio,ProFormDigit, ProTable,} from '@ant-design/pro-components';
|
|
|
import {Button, Card, Modal, TreeSelect} from 'antd';
|
|
|
import React, {useEffect, useRef, useState} from 'react';
|
|
|
import {AddOutline} from 'antd-mobile-icons';
|
|
@@ -65,6 +65,9 @@ const Edit: React.FC<{ bundle: EditBundle; treeData: any[]; onSuccess?: () => vo
|
|
|
setValue(newValue);
|
|
|
};
|
|
|
|
|
|
+ // @ts-ignore
|
|
|
+ // @ts-ignore
|
|
|
+ // @ts-ignore
|
|
|
return (
|
|
|
<Modal
|
|
|
confirmLoading={loading}
|
|
@@ -114,10 +117,10 @@ const Edit: React.FC<{ bundle: EditBundle; treeData: any[]; onSuccess?: () => vo
|
|
|
}}
|
|
|
>
|
|
|
|
|
|
- <ProFormRadio.Group name="type" label="类型" options={[{label: '目录', value: '1',}, {label: '菜单', value: '2'}, {label: '按钮', value: '3'}]}/>
|
|
|
- <ProFormRadio.Group name="status" label="状态" options={[{label: '正常', value: '1',}, {label: '隐藏', value: '2'}]}/>
|
|
|
- <ProFormRadio.Group name="target" label="目标" options={[{label: '页签', value: '1',}, {label: '新窗口', value: '2'}]}/>
|
|
|
- <ProFormRadio.Group name="hasRefresh" label="是否刷新" options={[{label: '不刷新', value: '0',}, {label: '刷新', value: '1'}]}/>
|
|
|
+ <ProFormRadio.Group name="type" label="类型" value='2' options={[{label: '目录', value: '1',}, {label: '菜单', value: '2'}, {label: '按钮', value: '3'}]}/>
|
|
|
+ <ProFormRadio.Group name="status" label="状态" value='1' options={[{label: '正常', value: '1',}, {label: '隐藏', value: '2'}]}/>
|
|
|
+ <ProFormRadio.Group name="target" label="目标" value='1' options={[{label: '页签', value: '1',}, {label: '新窗口', value: '2'}]}/>
|
|
|
+ <ProFormRadio.Group name="hasRefresh" label="是否刷新" value='1' options={[{label: '不刷新', value: '0',}, {label: '刷新', value: '1'}]}/>
|
|
|
<ProFormText name='name' label={'菜单名称'} placeholder={'请输入菜单名称'}
|
|
|
rules={[{required: true, message: '请输入菜单名称',}, {
|
|
|
min: 3,
|
|
@@ -139,7 +142,7 @@ const Edit: React.FC<{ bundle: EditBundle; treeData: any[]; onSuccess?: () => vo
|
|
|
</ProForm.Item>
|
|
|
<ProFormText name='icon' label={'图标'} placeholder={'请输入图标'}></ProFormText>
|
|
|
|
|
|
- <ProFormText name='sortNum' label={'显示顺序'} placeholder={'请输入显示顺序'}></ProFormText>
|
|
|
+ <ProFormDigit name='sortNum' label={'显示顺序'} placeholder={'请输入显示顺序'}></ProFormDigit>
|
|
|
<ProFormText name='url' label={'请求地址'} placeholder={'请输入请求地址'}></ProFormText>
|
|
|
<ProFormText name='perms' label={'权限标识'} placeholder={'请输入权限标识'}></ProFormText>
|
|
|
</ProForm>
|