xujing 5 anni fa
parent
commit
4771484f85

+ 4
- 3
src/pages/statistical/activity/detail.jsx Vedi File

@@ -17,7 +17,7 @@ const { RangePicker } = DatePicker;
17 17
 const { Text } = Typography;
18 18
 
19 19
 function record(props) {
20
-    const [radioVal, updateRadioVal] = useState(7)
20
+    const [radioVal, updateRadioVal] = useState(6)
21 21
     const [formData, updateFormData] = useState({
22 22
         pageNum: 1,
23 23
         pageSize: 10,
@@ -332,8 +332,9 @@ function record(props) {
332 332
             <Form layout="inline">
333 333
                 <div style={{ display: 'flex', alignItems: 'center' }}>
334 334
                     <Radio.Group buttonStyle="solid" value={radioVal} onChange={setFormData} style={{ marginRight: '16px', }}>
335
-                        <Radio.Button value={7}>最近7天</Radio.Button>
336
-                        <Radio.Button value={30}>最近1月</Radio.Button>
335
+                        <Radio.Button value={0}>今日</Radio.Button>
336
+                        <Radio.Button value={6}>最近7天</Radio.Button>
337
+                        <Radio.Button value={29}>最近1月</Radio.Button>
337 338
                     </Radio.Group>
338 339
                     <Form.Item>
339 340
                         <RangePicker value={dateRange} onChange={handleDateChange} placeholder={['开始日期', '结束日期']} />

+ 4
- 3
src/pages/statistical/consultant/index.jsx Vedi File

@@ -15,7 +15,7 @@ const { RangePicker } = DatePicker;
15 15
 const { Text } = Typography;
16 16
 
17 17
 function record(props) {
18
-    const [radioVal, updateRadioVal] = useState(7)
18
+    const [radioVal, updateRadioVal] = useState(6)
19 19
     const [formData, updateFormData] = useState({
20 20
         pageNum: 1,
21 21
         pageSize: 10,
@@ -362,8 +362,9 @@ function record(props) {
362 362
             <Form layout="inline">
363 363
                 <div style={{ display: 'flex', alignItems: 'center' }}>
364 364
                     <Radio.Group buttonStyle="solid" value={radioVal} onChange={setFormData} style={{ marginRight: '16px', }}>
365
-                        <Radio.Button value={7}>最近7天</Radio.Button>
366
-                        <Radio.Button value={30}>最近1月</Radio.Button>
365
+                        <Radio.Button value={0}>今日</Radio.Button>
366
+                        <Radio.Button value={6}>最近7天</Radio.Button>
367
+                        <Radio.Button value={29}>最近1月</Radio.Button>
367 368
                     </Radio.Group>
368 369
                     <Form.Item>
369 370
                         <RangePicker value={dateRange} onChange={handleDateChange} placeholder={['开始日期', '结束日期']} />