李志伟 3 years ago
parent
commit
bb8ed0a5b7

+ 1
- 17
src/pages/SystemManagement/Administrator/index.jsx View File

@@ -13,7 +13,6 @@ import {
13 13
   Col,
14 14
   Card,
15 15
   Tree,
16
-  Typography,
17 16
   Checkbox,
18 17
 } from 'antd';
19 18
 import { PlusOutlined } from '@ant-design/icons';
@@ -67,7 +66,6 @@ export default (props) => {
67 66
         style={{
68 67
           justifyContent: 'space-between',
69 68
           display: 'flex',
70
-          // width: '100%',
71 69
           padding: '8px 0',
72 70
         }}
73 71
       >
@@ -368,7 +366,7 @@ export default (props) => {
368 366
             <Input placeholder="请输入" />
369 367
           </FormItem>
370 368
           <FormItem label="性别" name="sex">
371
-            <Radio.Group name="sex" defaultValue={1}>
369
+            <Radio.Group>
372 370
               <Radio value={1}>男</Radio>
373 371
               <Radio value={0}>女</Radio>
374 372
             </Radio.Group>
@@ -452,20 +450,6 @@ export default (props) => {
452 450
             )}
453 451
           />
454 452
         </Checkbox.Group>
455
-        {/* <Checkbox.Group
456
-          style={{ width: '100%' }}
457
-          value={currentCheckbox}
458
-          onChange={handleCheckboxChange}
459
-        >
460
-          {roleList.map((item) => {
461
-            return (
462
-              <div key={item.roleId}>
463
-                <Checkbox value={item.roleId}>{item.name}</Checkbox>
464
-                <br />
465
-              </div>
466
-            );
467
-          })}
468
-        </Checkbox.Group> */}
469 453
       </Modal>
470 454
     </PageHeaderWrapper>
471 455
   );

+ 1
- 41
src/pages/SystemManagement/BasicParameters/index.jsx View File

@@ -1,33 +1,18 @@
1
-import { Input, Card, InputNumber, Button, message } from 'antd';
1
+import { Card, message } from 'antd';
2 2
 import { useEffect, useState } from 'react';
3
-import { Form } from 'antd';
4
-import { history } from 'umi';
5 3
 import ProCard from '@ant-design/pro-card';
6 4
 import { getSetting, updateSetting } from '@/services/setting';
7 5
 import SettingRow from '@/components/SettingRow';
8 6
 
9
-const FormItem = Form.Item;
10 7
 export default (props) => {
11
-  const [form] = Form.useForm();
12
-  const [loading, setLoading] = useState(false);
13 8
   const [data, setData] = useState([]);
14 9
 
15
-  const formItemLayout = {
16
-    //布局
17
-    labelCol: { span: 6 },
18
-    wrapperCol: { span: 14 },
19
-  };
20
-
21
-  const Submit = (values) => {
22
-    console.log('🚀 ~ file: index.jsx ~ line 21 ~ values', values);
23
-  };
24 10
   const handleChange = (item, val) => {
25 11
     updateSetting(item.settingId, { ...item, settingValue: val })
26 12
       .then(() => {
27 13
         message.success('修改' + item.settingDesc + '成功');
28 14
       })
29 15
       .catch((err) => {
30
-        setLoading(false);
31 16
         message.error(err.message || err);
32 17
       });
33 18
   };
@@ -43,31 +28,6 @@ export default (props) => {
43 28
           {data.map((item) => {
44 29
             return <SettingRow key={item.settingId} value={item} onChange={handleChange} />;
45 30
           })}
46
-          {/* <Form {...formItemLayout} onFinish={Submit} form={form}>
47
-            <FormItem
48
-              label="平台联系电话"
49
-              name="shopName"
50
-              rules={[{ required: true, message: '请输入' }]}
51
-            >
52
-              <Input
53
-                placeholder="请输入"
54
-                type={'number'}
55
-                maxLength={11}
56
-                style={{ width: '350px' }}
57
-              />
58
-            </FormItem>
59
-
60
-            <FormItem label=" " colon={false}>
61
-              <Button
62
-                type="primary"
63
-                loading={loading}
64
-                htmlType="Submit"
65
-                style={{ marginLeft: '4em' }}
66
-              >
67
-                保存
68
-              </Button>
69
-            </FormItem>
70
-          </Form> */}
71 31
         </ProCard.TabPane>
72 32
       </ProCard>
73 33
     </Card>