xujing 5 年之前
父節點
當前提交
4771484f85
共有 2 個檔案被更改,包括 8 行新增6 行删除
  1. 4
    3
      src/pages/statistical/activity/detail.jsx
  2. 4
    3
      src/pages/statistical/consultant/index.jsx

+ 4
- 3
src/pages/statistical/activity/detail.jsx 查看文件

17
 const { Text } = Typography;
17
 const { Text } = Typography;
18
 
18
 
19
 function record(props) {
19
 function record(props) {
20
-    const [radioVal, updateRadioVal] = useState(7)
20
+    const [radioVal, updateRadioVal] = useState(6)
21
     const [formData, updateFormData] = useState({
21
     const [formData, updateFormData] = useState({
22
         pageNum: 1,
22
         pageNum: 1,
23
         pageSize: 10,
23
         pageSize: 10,
332
             <Form layout="inline">
332
             <Form layout="inline">
333
                 <div style={{ display: 'flex', alignItems: 'center' }}>
333
                 <div style={{ display: 'flex', alignItems: 'center' }}>
334
                     <Radio.Group buttonStyle="solid" value={radioVal} onChange={setFormData} style={{ marginRight: '16px', }}>
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
                     </Radio.Group>
338
                     </Radio.Group>
338
                     <Form.Item>
339
                     <Form.Item>
339
                         <RangePicker value={dateRange} onChange={handleDateChange} placeholder={['开始日期', '结束日期']} />
340
                         <RangePicker value={dateRange} onChange={handleDateChange} placeholder={['开始日期', '结束日期']} />

+ 4
- 3
src/pages/statistical/consultant/index.jsx 查看文件

15
 const { Text } = Typography;
15
 const { Text } = Typography;
16
 
16
 
17
 function record(props) {
17
 function record(props) {
18
-    const [radioVal, updateRadioVal] = useState(7)
18
+    const [radioVal, updateRadioVal] = useState(6)
19
     const [formData, updateFormData] = useState({
19
     const [formData, updateFormData] = useState({
20
         pageNum: 1,
20
         pageNum: 1,
21
         pageSize: 10,
21
         pageSize: 10,
362
             <Form layout="inline">
362
             <Form layout="inline">
363
                 <div style={{ display: 'flex', alignItems: 'center' }}>
363
                 <div style={{ display: 'flex', alignItems: 'center' }}>
364
                     <Radio.Group buttonStyle="solid" value={radioVal} onChange={setFormData} style={{ marginRight: '16px', }}>
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
                     </Radio.Group>
368
                     </Radio.Group>
368
                     <Form.Item>
369
                     <Form.Item>
369
                         <RangePicker value={dateRange} onChange={handleDateChange} placeholder={['开始日期', '结束日期']} />
370
                         <RangePicker value={dateRange} onChange={handleDateChange} placeholder={['开始日期', '结束日期']} />