张延森 3 years ago
parent
commit
6ff74a303c
3 changed files with 28 additions and 14 deletions
  1. 1
    1
      config/defaultSettings.js
  2. 7
    9
      src/pages/document.ejs
  3. 20
    4
      src/pages/resumework/form/index.jsx

+ 1
- 1
config/defaultSettings.js View File

7
   fixedHeader: false,
7
   fixedHeader: false,
8
   fixSiderbar: true,
8
   fixSiderbar: true,
9
   colorWeak: false,
9
   colorWeak: false,
10
-  title: 'Ant Design Pro',
10
+  title: 'UBPA-DBM',
11
   pwa: false,
11
   pwa: false,
12
   menu: {
12
   menu: {
13
     locale: false,
13
     locale: false,

+ 7
- 9
src/pages/document.ejs View File

6
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
7
     <meta
7
     <meta
8
       name="keywords"
8
       name="keywords"
9
-      content="antd,umi,umijs,ant design,Scaffolding, layout, Ant Design, project, Pro, admin, console, homepage, out-of-the-box, middle and back office, solution, component library"
9
+      content="UBPA,复工复产,申报系统,云致科技"
10
     />
10
     />
11
     <meta
11
     <meta
12
       name="description"
12
       name="description"
13
-      content="
14
-    An out-of-box UI solution for enterprise applications as a React boilerplate."
13
+      content="UBPA-DBM复工复产申报系统"
15
     />
14
     />
16
     <meta
15
     <meta
17
       name="description"
16
       name="description"
18
-      content="
19
-      Out-of-the-box mid-stage front-end/design solution."
17
+      content="技术支持南京云致科技"
20
     />
18
     />
21
     <meta
19
     <meta
22
       name="viewport"
20
       name="viewport"
23
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
21
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
24
     />
22
     />
25
-    <title>Ant Design Pro</title>
26
-    <link rel="icon" href="<%= context.config.publicPath +'favicon.ico'%>" type="image/x-icon" />
23
+    <title>UBPA-DBM复工复产申报系统</title>
24
+    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
27
     <script src="./js/particles.min.js"></script>
25
     <script src="./js/particles.min.js"></script>
28
   </head>
26
   </head>
29
   <body>
27
   <body>
214
           min-height: 420px;
212
           min-height: 420px;
215
         "
213
         "
216
       >
214
       >
217
-        <img src="<%= context.config.publicPath +'pro_icon.svg'%>" alt="logo" width="256" />
215
+        <img src="https://yz-h5.oss-cn-shanghai.aliyuncs.com/images/cloud-logo.png" alt="logo" width="256" />
218
         <div class="page-loading-warp">
216
         <div class="page-loading-warp">
219
           <div class="ant-spin ant-spin-lg ant-spin-spinning">
217
           <div class="ant-spin ant-spin-lg ant-spin-spinning">
220
             <span class="ant-spin-dot ant-spin-dot-spin"
218
             <span class="ant-spin-dot ant-spin-dot-spin"
225
         </div>
223
         </div>
226
         <div style="display: flex; align-items: center; justify-content: center">
224
         <div style="display: flex; align-items: center; justify-content: center">
227
           <img
225
           <img
228
-            src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
226
+            src="https://yz-h5.oss-cn-shanghai.aliyuncs.com/images/cloud-logo.png"
229
             width="32"
227
             width="32"
230
             style="margin-right: 8px"
228
             style="margin-right: 8px"
231
           />
229
           />

+ 20
- 4
src/pages/resumework/form/index.jsx View File

17
 
17
 
18
 export default (props) => {
18
 export default (props) => {
19
   const actionRef = useRef();
19
   const actionRef = useRef();
20
-  const [start, setStartDate] = useState()
21
-  const [end, setEndDate] = useState()
20
+  const [start, setStartDate] = useState(moment().format('YYYY-MM-DD'))
21
+  const [end, setEndDate] = useState(moment().format('YYYY-MM-DD'))
22
   const [orgId, setOrgId] = useState()
22
   const [orgId, setOrgId] = useState()
23
   const { orgList } = useOrgList()
23
   const { orgList } = useOrgList()
24
 
24
 
48
             </Option>
48
             </Option>
49
           ))}
49
           ))}
50
         </Select>
50
         </Select>
51
-      )
51
+      ),
52
+      formItemProps: {
53
+        rules: [
54
+          {
55
+            required: true,
56
+            message: '请选择企业',
57
+          },
58
+        ],
59
+      },
52
     },
60
     },
53
     {
61
     {
54
       title: '申请人',
62
       title: '申请人',
97
       dataIndex: 'createDate',
105
       dataIndex: 'createDate',
98
       key: 'createDate',
106
       key: 'createDate',
99
       render: (t) => formatterTime(t),
107
       render: (t) => formatterTime(t),
100
-      renderFormItem: (_, record) => <RangePicker placeholder={['开始日期', '结束日期']} format='YYYY-MM-DD' onChange={handelDateChange} />
108
+      renderFormItem: (_, record) => <RangePicker defaultValue={[moment(start), moment(end)]} placeholder={['开始日期', '结束日期']} format='YYYY-MM-DD' onChange={handelDateChange} />
101
     },
109
     },
102
   ]
110
   ]
103
 
111
 
112
         options={false}
120
         options={false}
113
         params={{ start, end }}
121
         params={{ start, end }}
114
         onReset={handleReset}
122
         onReset={handleReset}
123
+        form={{
124
+          ignoreRules: false,
125
+          // initialValues: {
126
+          //   createDate: [moment(), moment()],
127
+          // }
128
+        }}
129
+        manualRequest={true}
130
+        revalidateOnFocus={false}
115
         rowKey="formId"
131
         rowKey="formId"
116
       />
132
       />
117
     </PageHeaderWrapper>
133
     </PageHeaderWrapper>