Bladeren bron

Merge branch 'master' of http://git.ycjcjy.com/pet_identity/pc-admin

张延森 2 jaren geleden
bovenliggende
commit
e802d9d381

+ 1
- 2
src/components/SettingRow/index.jsx Bestand weergeven

@@ -26,8 +26,7 @@ const SettingRow = (props) => {
26 26
   };
27 27
   return (
28 28
     <div style={{ marginBottom:'16px' }}>
29
-      <span style={{width:'120px', display:'inline-block', textAlign:'right'}}>{value.title}</span>:
30
-      <Input style={{ width: '200px',marginRight:value.desc?'16px':'0' }} value={val} onChange={handleChange} onInput={handleInput} />
29
+      <Input style={{ width: '360px',marginRight:value.desc?'16px':'0' }} value={val} onChange={handleChange} onInput={handleInput} />
31 30
       {value.desc?'('+value.desc+')':''}
32 31
       <Button
33 32
         type="text"

+ 10
- 4
src/pages/BasicParameters/index.jsx Bestand weergeven

@@ -1,9 +1,11 @@
1
-import { Card, message } from 'antd';
1
+import { Card, message, Form } from 'antd';
2 2
 import { useEffect, useState } from 'react';
3 3
 import { PageHeaderWrapper } from '@ant-design/pro-layout';
4 4
 import { getSetting, updateSetting } from '@/services/setting';
5 5
 import SettingRow from '@/components/SettingRow';
6 6
 
7
+const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 } };
8
+const FormItem = Form.Item;
7 9
 export default (props) => {
8 10
   const [data, setData] = useState([]);
9 11
 
@@ -26,9 +28,13 @@ export default (props) => {
26 28
   return (
27 29
     <PageHeaderWrapper>
28 30
       <Card>
29
-        {data.map((item) => {
30
-          return <SettingRow key={item.settingId} value={item} onChange={handleChange} />;
31
-        })}
31
+        <Form {...formItemLayout}>
32
+          {data.map((item) => {
33
+            return <FormItem key={item.settingId} label={item.title}>
34
+              <SettingRow value={item} onChange={handleChange} />
35
+            </FormItem>
36
+          })}
37
+        </Form>
32 38
       </Card>
33 39
     </PageHeaderWrapper>
34 40
   );

+ 1
- 1
src/pages/applicationList/detail.jsx Bestand weergeven

@@ -138,7 +138,7 @@ export default (props) => {
138 138
             orderStatus == 3 &&
139 139
             <FormItem label="驳回原因">
140 140
               <TextArea placeholder='请输入驳回原因' rows='3'
141
-                style={{ width: '350px' }}
141
+                style={{ width: '360px' }}
142 142
                 value={application.rejectReason}
143 143
                 readOnly
144 144
               />

+ 1
- 1
src/pages/banner/edit.jsx Bestand weergeven

@@ -62,7 +62,7 @@ export default (props) => {
62 62
               <UploadImage value={image} onChange={setImage} />
63 63
             </FormItem>
64 64
             <FormItem label="排序" name="sortNo" rules={[{ required: true, message: '请输入' }]}>
65
-              <InputNumber min={0} placeholder="请输入排序" style={{ width: '350px' }} />
65
+              <InputNumber min={0} placeholder="请输入排序" style={{ width: '360px' }} />
66 66
             </FormItem>
67 67
             <FormItem label=" " colon={false}>
68 68
               <Button type="default" onClick={() => goBack()}>

+ 3
- 3
src/pages/certificateIssuance/issuance.jsx Bestand weergeven

@@ -122,7 +122,7 @@ export default (props) => {
122 122
           </FormItem>
123 123
           <FormItem label="证件号" name='originCardNo' rules={[{ required: true, message: '请输入证件号' }]}>
124 124
             <Input
125
-              style={{ width: '350px' }}
125
+              style={{ width: '360px' }}
126 126
               readOnly={application?.makeStatus != 0}
127 127
               placeholder='请输入证件号(必填)'
128 128
             />
@@ -131,14 +131,14 @@ export default (props) => {
131 131
             application.applyMethod == 2 && <>
132 132
               <FormItem label="快递公司" name='trackingType' rules={[{ required: true, message: '请输入快递公司' }]}>
133 133
                 <Input
134
-                  style={{ width: '350px' }}
134
+                  style={{ width: '360px' }}
135 135
                   placeholder='请输入快递公司(必填)'
136 136
                   readOnly={application?.makeStatus != 0}
137 137
                  />
138 138
               </FormItem>
139 139
               <FormItem label="快递单号" name='trackingNo' rules={[{ required: true, message: '请输入快递公司' }]}>
140 140
                 <Input
141
-                  style={{ width: '350px' }}
141
+                  style={{ width: '360px' }}
142 142
                   placeholder='请输入快递单号(必填)'
143 143
                   readOnly={application?.makeStatus != 0}
144 144
                 />

+ 2
- 2
src/pages/examine/detail.jsx Bestand weergeven

@@ -144,10 +144,10 @@ export default (props) => {
144 144
             </Radio.Group>
145 145
           </FormItem>
146 146
           {
147
-            application.verifyStatus != 1 && 
147
+            application.verifyStatus != 1 && examineType == 2 &&
148 148
             <FormItem label="驳回原因">
149 149
               <TextArea placeholder='请输入驳回原因' rows='3'
150
-                style={{ width: '350px' }}
150
+                style={{ width: '360px' }}
151 151
                 value={rejectReason}
152 152
                 readOnly={application.verifyStatus == 2}
153 153
                 onChange={(e) => setRejectReason(e.target.value)}

+ 4
- 4
src/pages/notice/edit.jsx Bestand weergeven

@@ -45,7 +45,7 @@ export default (props) => {
45 45
         .then((res) => {
46 46
           setLoading(false);
47 47
           message.success('数据保存成功');
48
-          history.replace(`./edit.jsx?id=${res.noticeId}`);
48
+          goBack();
49 49
         })
50 50
         .catch((err) => {
51 51
           setLoading(false);
@@ -71,16 +71,16 @@ export default (props) => {
71 71
         <ProCard.TabPane key={1} tab="通知编辑">
72 72
           <Form {...formItemLayout} onFinish={Submit} form={form}>
73 73
             <FormItem label="标题" name="title" rules={[{ required: true, message: '请输入' }]}>
74
-              <Input placeholder="请输入" style={{ width: '350px' }} />
74
+              <Input placeholder="请输入" style={{ width: '360px' }} />
75 75
             </FormItem>
76 76
             <FormItem label="正文" name='content' rules={[{ required: true, message: '请输入' }]}>
77 77
               <RichEditor ref={editorRef} />
78 78
             </FormItem>
79 79
             <FormItem label="权重" name="weight" rules={[{ required: true, message: '请输入' }]}>
80
-              <InputNumber min={0} placeholder="请输入权重" style={{ width: '350px' }} />
80
+              <InputNumber min={0} placeholder="请输入权重" style={{ width: '360px' }} />
81 81
             </FormItem>
82 82
             <FormItem label="状态" name="status" rules={[{ required: true, message: '请选择' }]}>
83
-              <Select placeholder="请选择是否发布" style={{ width: '350px' }}>
83
+              <Select placeholder="请选择是否发布" style={{ width: '360px' }}>
84 84
                 <Option value={1}>发布</Option>
85 85
                 <Option value={0}>未发布</Option>
86 86
               </Select>