zlisen 3 lat temu
rodzic
commit
31d29c1f6f

+ 12
- 12
config/routes.js Wyświetl plik

@@ -613,83 +613,83 @@ export default [
613 613
                 path: '/statistics/dataReport',
614 614
                 name: '数据报表',
615 615
                 component: './statistics/dataReport',
616
-                menuCode: '/building/list',
616
+                menuCode: '/statistics/dataRepor',
617 617
               },
618 618
               {
619 619
                 path: '/statistics/dataReport/newAdd',
620 620
                 name: '新增用户',
621 621
                 hideInMenu: true,
622 622
                 component: './statistics/dataReport/newAdd',
623
-                menuCode: '/building/list',
623
+                menuCode: '/statistics/dataRepor',
624 624
               },
625 625
               {
626 626
                 path: '/statistics/activity',
627 627
                 name: '活动统计',
628 628
                 component: './statistics/activity',
629
-                menuCode: '/building/list',
629
+                menuCode: '/statistics/activity',
630 630
               },
631 631
               {
632 632
                 path: '/statistics/activity/sharePersonNum',
633 633
                 name: '分享人数',
634 634
                 hideInMenu: true,
635 635
                 component: './statistics/activity/sharePersonNum',
636
-                menuCode: '/building/list',
636
+                menuCode: '/statistics/activity',
637 637
               },
638 638
               {
639 639
                 path: '/statistics/activity/shareNum',
640 640
                 name: '分享次数',
641 641
                 hideInMenu: true,
642 642
                 component: './statistics/activity/shareNum',
643
-                menuCode: '/building/list',
643
+                menuCode: '/statistics/activity',
644 644
               },
645 645
               {
646 646
                 path: '/statistics/activity/visitPersonNum',
647 647
                 name: '访问人数',
648 648
                 hideInMenu: true,
649 649
                 component: './statistics/activity/visitPersonNum',
650
-                menuCode: '/building/list',
650
+                menuCode: '/statistics/activity',
651 651
               },
652 652
               {
653 653
                 path: '/statistics/activity/visitNum',
654 654
                 name: '访问次数',
655 655
                 hideInMenu: true,
656 656
                 component: './statistics/activity/visitNum',
657
-                menuCode: '/building/list',
657
+                menuCode: '/statistics/activity',
658 658
               },
659 659
               {
660 660
                 path: '/statistics/activity/addRegistNum',
661 661
                 name: '新增注册用户',
662 662
                 hideInMenu: true,
663 663
                 component: './statistics/activity/addRegistNum',
664
-                menuCode: '/building/list',
664
+                menuCode: '/statistics/activity',
665 665
               },
666 666
               {
667 667
                 path: '/statistics/activity/detail',
668 668
                 name: '查看',
669 669
                 hideInMenu: true,
670 670
                 component: './statistics/activity/detail',
671
-                menuCode: '/building/list',
671
+                menuCode: '/statistics/activity',
672 672
               },
673 673
               
674 674
               {
675 675
                 path: '/statistics/building',
676 676
                 name: '项目统计',
677 677
                 component: './statistics/building',
678
-                menuCode: '/building/list',
678
+                menuCode: '/statistics/building',
679 679
               },
680 680
               {
681 681
                 path: '/statistics/building/detail',
682 682
                 name: '项目统计',
683 683
                 hideInMenu: true,
684 684
                 component: './statistics/building/detail',
685
-                menuCode: '/building/list',
685
+                menuCode: '/statistics/building',
686 686
               },
687 687
 
688 688
               {
689 689
                 path: '/statistics/consultant',
690 690
                 name: 'KPI',
691 691
                 component: './statistics/consultant',
692
-                menuCode: '/building/list',
692
+                menuCode: '/statistics/consultant',
693 693
               },
694 694
             ],
695 695
           },

+ 3
- 6
src/pages/statistics/activity/compents/ContentTable.jsx Wyświetl plik

@@ -235,16 +235,13 @@ const ContentTable = props => {
235 235
 
236 236
   //排序
237 237
   const handleTableChange = (pagination, filters, sorter) => {
238
-    console.log(pagination, filters, sorter);
239
-    // Desc  和asc
240
-    const sortType =
241
-      sorter.order == 'ascend' ? 'asc' : sorter.order == 'descend' ? 'Desc' : undefined;
238
+
242 239
     getTableList({
243 240
       ...params,
244 241
       pageNum: pagination.current,
245 242
       pageSize: pagination.pageSize,
246
-      sortType: sortType,
247
-      sortField: sorter.columnKey,
243
+      sort: sorter.order,
244
+      colKey: sorter.columnKey
248 245
     });
249 246
   };
250 247
 

+ 2
- 2
src/pages/statistics/activity/compents/OverviewDeatil.jsx Wyświetl plik

@@ -182,11 +182,11 @@ const NewUsers = props => {
182 182
 
183 183
   return (
184 184
     <Card title="详细数据" headStyle={{ textAlign: 'left' }}>
185
-      <div style={{ textAlign: 'right' }}>
185
+      {/* <div style={{ textAlign: 'right' }}>
186 186
         <Button type="primary" onClick={exportActivityStats}>
187 187
           导出
188 188
         </Button>
189
-      </div>
189
+      </div> */}
190 190
 
191 191
       <Table
192 192
         key="date"

+ 2
- 2
src/pages/statistics/activity/shareNum.jsx Wyświetl plik

@@ -331,7 +331,7 @@ class SharePersonNum extends React.Component {
331 331
               重置
332 332
             </Button>
333 333
           </Form.Item>
334
-          <AuthButton name="admin.statistical.activity.export" noRight={null}>
334
+          {/* <AuthButton name="admin.statistical.activity.export" noRight={null}>
335 335
             <Button
336 336
               type="primary"
337 337
               style={{ position: 'absolute', right: '27px', zIndex: 1 }}
@@ -339,7 +339,7 @@ class SharePersonNum extends React.Component {
339 339
             >
340 340
               导出
341 341
             </Button>
342
-          </AuthButton>
342
+          </AuthButton> */}
343 343
         </Form>
344 344
         <div>
345 345
           <Table

+ 2
- 2
src/pages/statistics/activity/sharePersonNum.jsx Wyświetl plik

@@ -325,11 +325,11 @@ class SharePersonNum extends React.Component {
325 325
             </Button>
326 326
             <Button onClick={e => this.handleReset()} style={{ marginLeft: '30px' }}>重置</Button>
327 327
           </Form.Item>
328
-          <AuthButton name="admin.statistics.activity.export" noRight={null}>
328
+          {/* <AuthButton name="admin.statistics.activity.export" noRight={null}>
329 329
             <Button type="primary" style={{ float: 'right', zIndex: 1, marginTop: '24px' }} onClick={this.exportActivityStats}>
330 330
               导出
331 331
             </Button>
332
-          </AuthButton>
332
+          </AuthButton> */}
333 333
         </Form>
334 334
         <div>
335 335
 

+ 2
- 2
src/pages/statistics/activity/visitNum.jsx Wyświetl plik

@@ -335,7 +335,7 @@ class SharePersonNum extends React.Component {
335 335
               重置
336 336
             </Button>
337 337
           </Form.Item>
338
-          <AuthButton name="admin.statistics.activity.export" noRight={null}>
338
+          {/* <AuthButton name="admin.statistics.activity.export" noRight={null}>
339 339
             <Button
340 340
               type="primary"
341 341
               style={{ float: 'right', margin: '20px 0', zIndex: 1 }}
@@ -343,7 +343,7 @@ class SharePersonNum extends React.Component {
343 343
             >
344 344
               导出
345 345
             </Button>
346
-          </AuthButton>
346
+          </AuthButton> */}
347 347
         </Form>
348 348
         <div>
349 349
           <Table

+ 2
- 2
src/pages/statistics/activity/visitPersonNum.jsx Wyświetl plik

@@ -245,11 +245,11 @@ class SharePersonNum extends React.Component {
245 245
             </Button>
246 246
             <Button onClick={e => this.handleReset()} style={{ marginLeft: '30px' }}>重置</Button>
247 247
           </Form.Item>
248
-          <AuthButton name="admin.statistics.activity.export" noRight={null}>
248
+          {/* <AuthButton name="admin.statistics.activity.export" noRight={null}>
249 249
             <Button type="primary" style={{ float: 'right', margin: '20px 0', zIndex: 1 }} onClick={this.exportActivityStats}>
250 250
               导出
251 251
             </Button>
252
-          </AuthButton>
252
+          </AuthButton> */}
253 253
         </Form>
254 254
         <div>
255 255
 

+ 2
- 2
src/pages/statistics/building/detail/tableDetail.jsx Wyświetl plik

@@ -91,13 +91,13 @@ const detailData = props => {
91 91
       headStyle={{ textAlign: 'left' }}
92 92
 
93 93
     >
94
-      <div style={{ marginBottom: '20px', textAlign: 'right' }}>
94
+      {/* <div style={{ marginBottom: '20px', textAlign: 'right' }}>
95 95
         <AuthButton name="admin.statistical.building.export" noRight={null}>
96 96
           <Button type="primary" onClick={exportBuildingStats}>
97 97
             导出
98 98
           </Button>
99 99
         </AuthButton>
100
-      </div>
100
+      </div> */}
101 101
       <Table
102 102
         dataSource={data?.records || []}
103 103
         columns={columns}

+ 10
- 6
src/pages/statistics/consultant/index.jsx Wyświetl plik

@@ -201,16 +201,20 @@ const consultant = props => {
201 201
   const handleChange = (pagination, filters, sorter) => {
202 202
     console.log(pagination, filters, sorter);
203 203
     // Desc  和asc
204
-    const sortType =
205
-      sorter.order == 'ascend' ? 'asc' : sorter.order == 'descend' ? 'Desc' : undefined;
206
-    getTableList({
204
+    let sort = {};
205
+    if (sorter.order == 'ascend') {
206
+      sort.asc = sorter.columnKey;
207
+    } else if (sorter.order == 'descend') {
208
+      sort.desc = sorter.columnKey;
209
+    }
210
+
211
+    getList({
207 212
       buildingId: buildingValue,
208 213
       startDate: moment(time[0]).format('YYYY-MM-DDT00:00:00.000') + 'Z',
209 214
       endDate: moment(time[1]).format('YYYY-MM-DDT23:59:59.999') + 'Z',
210 215
       pageNum: pagination.current,
211 216
       pageSize: pagination.pageSize,
212
-      sortType: sortType,
213
-      sortField: sorter.columnKey,
217
+      ...sort,
214 218
     });
215 219
   };
216 220
 
@@ -288,7 +292,7 @@ const consultant = props => {
288 292
         </AuthButton>
289 293
       </div> */}
290 294
       <Table
291
-        rowKey={record => data.current * data.size + row++}
295
+        // rowKey={record => data?.current * data?.size + row++}
292 296
         style={{ marginTop: '30px' }}
293 297
         dataSource={_list}
294 298
         // dataSource={data.records}

+ 2
- 2
src/pages/statistics/dataReport/components/IntentionalCustomers.jsx Wyświetl plik

@@ -122,9 +122,9 @@ const UserBehavior = props => {
122 122
             ></BuildingSelect>
123 123
           </Col>
124 124
           <Col span={2} style={{ textAlign: 'right' }}>
125
-            <Button type="primary" onClick={exportIntentionUsers}>
125
+            {/* <Button type="primary" onClick={exportIntentionUsers}>
126 126
               导出
127
-            </Button>
127
+            </Button> */}
128 128
           </Col>
129 129
         </Row>
130 130
         <Table