This commit is contained in:
PC-202306242200\Administrator
2024-09-12 15:07:49 +08:00
parent 4d069cc2a9
commit 8467bc3554
17 changed files with 23 additions and 15 deletions

2
dist/index.html vendored
View File

@@ -8,6 +8,6 @@
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.61cd44ec.js"></script> <script src="/umi.2c941af4.js"></script>
</body></html> </body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -111,7 +111,7 @@ const MenuTableList: React.FC = () => {
valueType: 'text', valueType: 'text',
search: false, search: false,
render: (_, record) => { render: (_, record) => {
return <Image src={record.imageUrl} width={60}></Image> return <Image src={record.imageUrl} width={60} height={60}></Image>
} }
}, },
{ {

View File

@@ -64,7 +64,7 @@ const LogTableList: React.FC = () => {
return record.ordersGoodsList ? record.ordersGoodsList.map((i) => { return record.ordersGoodsList ? record.ordersGoodsList.map((i) => {
let _Img = i?.goodsSnapshot?.picture ? JSON.parse(i?.goodsSnapshot?.picture)[0] : '' let _Img = i?.goodsSnapshot?.picture ? JSON.parse(i?.goodsSnapshot?.picture)[0] : ''
return <div className={'flex'} key={i.id}> return <div className={'flex'} key={i.id}>
<Image width={60} src={_Img}></Image> <Image width={60} src={_Img} height={60}></Image>
<div> <div>
<div> <div>
{i.goodsSnapshot?.goodsName} {i.goodsSnapshot?.goodsName}

View File

@@ -30,6 +30,7 @@ const RoleForm: React.FC = (props: any) => {
props.onCancel(); props.onCancel();
}; };
const handleFinish = async (values: any) => { const handleFinish = async (values: any) => {
values.roleSort = values.roleSort ? values.roleSort : 0
props.onSubmit(values); props.onSubmit(values);
}; };
@@ -81,6 +82,16 @@ const RoleForm: React.FC = (props: any) => {
}, },
]} ]}
/> />
<ProFormText
name="roleSort"
label={'排序'}
colProps={{ md: 24, xl: 24 }}
placeholder="请输入排序字符"
fieldProps={{
defaultValue: 0
}}
/>
</ProForm.Group> </ProForm.Group>
<ProForm.Group> <ProForm.Group>
<ProForm.Item label="菜单权限" name="menuIds"> <ProForm.Item label="菜单权限" name="menuIds">

View File

@@ -21,7 +21,6 @@ const handleAdd = async (fields: API.System.Menu) => {
return true; return true;
} catch (error) { } catch (error) {
hide(); hide();
message.error('添加失败请重试!');
return false; return false;
} }
}; };
@@ -40,7 +39,6 @@ const handleUpdate = async (fields: API.System.Menu) => {
return true; return true;
} catch (error) { } catch (error) {
hide(); hide();
message.error('修改失败请重试!');
return false; return false;
} }
}; };
@@ -56,7 +54,6 @@ const handleRemoveOne = async (selectedRow: API.System.Menu) => {
return true; return true;
} catch (error) { } catch (error) {
hide(); hide();
message.error('删除失败,请重试');
return false; return false;
} }
}; };

View File

@@ -102,7 +102,7 @@ const UserTableList: React.FC = () => {
search: false, search: false,
render: (_: any, record: any) => { render: (_: any, record: any) => {
return <div className='flex'> return <div className='flex'>
<Image src={record.avatar} width={45}></Image> <Image src={record.avatar} width={45} height={45}></Image>
<div> <div>
<div> <div>
{record.nickName} {record.nickName}

View File

@@ -195,7 +195,7 @@ const LogTableList: React.FC = () => {
valueType: 'text', valueType: 'text',
search: false, search: false,
render: (_, record) => { render: (_, record) => {
return record.qrCode ? <Image src={record.qrCode} width={60}></Image> : '-' return record.qrCode ? <Image src={record.qrCode} width={60} height={60}></Image> : '-'
} }
}, },
{ {