张延森 3 lat temu
rodzic
commit
6ff74a303c

+ 1
- 1
config/defaultSettings.js Wyświetl plik

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

+ 7
- 9
src/pages/document.ejs Wyświetl plik

@@ -6,24 +6,22 @@
6 6
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
7 7
     <meta
8 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 11
     <meta
12 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 15
     <meta
17 16
       name="description"
18
-      content="
19
-      Out-of-the-box mid-stage front-end/design solution."
17
+      content="技术支持南京云致科技"
20 18
     />
21 19
     <meta
22 20
       name="viewport"
23 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 25
     <script src="./js/particles.min.js"></script>
28 26
   </head>
29 27
   <body>
@@ -214,7 +212,7 @@
214 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 216
         <div class="page-loading-warp">
219 217
           <div class="ant-spin ant-spin-lg ant-spin-spinning">
220 218
             <span class="ant-spin-dot ant-spin-dot-spin"
@@ -225,7 +223,7 @@
225 223
         </div>
226 224
         <div style="display: flex; align-items: center; justify-content: center">
227 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 227
             width="32"
230 228
             style="margin-right: 8px"
231 229
           />

+ 20
- 4
src/pages/resumework/form/index.jsx Wyświetl plik

@@ -17,8 +17,8 @@ const formatterTime = (val) => {
17 17
 
18 18
 export default (props) => {
19 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 22
   const [orgId, setOrgId] = useState()
23 23
   const { orgList } = useOrgList()
24 24
 
@@ -48,7 +48,15 @@ export default (props) => {
48 48
             </Option>
49 49
           ))}
50 50
         </Select>
51
-      )
51
+      ),
52
+      formItemProps: {
53
+        rules: [
54
+          {
55
+            required: true,
56
+            message: '请选择企业',
57
+          },
58
+        ],
59
+      },
52 60
     },
53 61
     {
54 62
       title: '申请人',
@@ -97,7 +105,7 @@ export default (props) => {
97 105
       dataIndex: 'createDate',
98 106
       key: 'createDate',
99 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,6 +120,14 @@ export default (props) => {
112 120
         options={false}
113 121
         params={{ start, end }}
114 122
         onReset={handleReset}
123
+        form={{
124
+          ignoreRules: false,
125
+          // initialValues: {
126
+          //   createDate: [moment(), moment()],
127
+          // }
128
+        }}
129
+        manualRequest={true}
130
+        revalidateOnFocus={false}
115 131
         rowKey="formId"
116 132
       />
117 133
     </PageHeaderWrapper>