zlisen 3 年前
父节点
当前提交
de4dd80760

+ 2
- 2
src/pages/statistics/building/detailData/index.jsx 查看文件

@@ -141,13 +141,13 @@ const detailData = props => {
141 141
       headStyle={{ textAlign: 'left' }}
142 142
       extra={<TimeSelect onChange={onTimeChange}></TimeSelect>}
143 143
     >
144
-      <div style={{marginBottom:'20px',textAlign:'right'}}>
144
+      {/* <div style={{marginBottom:'20px',textAlign:'right'}}>
145 145
         <AuthButton name="admin.statistical.building.export" noRight={null}>
146 146
           <Button type="primary" onClick={exportBuildingStats}>
147 147
             导出
148 148
           </Button>
149 149
         </AuthButton>
150
-      </div>
150
+      </div> */}
151 151
       <Table
152 152
         dataSource={data?.records || []}
153 153
         columns={columns}

+ 64
- 65
src/pages/statistics/consultant/index.jsx 查看文件

@@ -92,8 +92,8 @@ const consultant = props => {
92 92
       align: 'center',
93 93
       sorter: true,
94 94
 
95
-      render: (txt, record, index) =>
96
-        index ? clickCon(txt, record, 'totalPersons') : <strong>{txt}</strong>,
95
+      // render: (txt, record, index) =>
96
+      //   index ? clickCon(txt, record, 'totalPersons') : <strong>{txt}</strong>,
97 97
     },
98 98
     {
99 99
       title: '新增客户',
@@ -102,8 +102,8 @@ const consultant = props => {
102 102
       align: 'center',
103 103
       sorter: true,
104 104
 
105
-      render: (txt, record, index) =>
106
-        index ? clickCon(txt, record, 'newPersons') : <strong>{txt}</strong>,
105
+      // render: (txt, record, index) =>
106
+      //   index ? clickCon(txt, record, 'newPersons') : <strong>{txt}</strong>,
107 107
     },
108 108
     {
109 109
       title: '分享次数',
@@ -112,8 +112,8 @@ const consultant = props => {
112 112
       align: 'center',
113 113
       sorter: true,
114 114
 
115
-      render: (txt, record, index) =>
116
-        index ? clickCon(txt, record, 'shareNum') : <strong>{txt}</strong>,
115
+      // render: (txt, record, index) =>
116
+      //   index ? clickCon(txt, record, 'shareNum') : <strong>{txt}</strong>,
117 117
     },
118 118
     {
119 119
       title: '分享访问人数',
@@ -122,70 +122,70 @@ const consultant = props => {
122 122
       align: 'center',
123 123
       sorter: true,
124 124
 
125
-      render: (txt, record, index) =>
126
-        index ? clickCon(txt, record, 'visitPersons') : <strong>{txt}</strong>,
125
+      // render: (txt, record, index) =>
126
+      //   index ? clickCon(txt, record, 'visitPersons') : <strong>{txt}</strong>,
127 127
     },
128
-    {
129
-      title: '分享访问次数',
130
-      dataIndex: 'visitNum',
131
-      key: 'visitNum',
132
-      align: 'center',
133
-      sorter: true,
128
+    // {
129
+    //   title: '分享访问次数',
130
+    //   dataIndex: 'visitNum',
131
+    //   key: 'visitNum',
132
+    //   align: 'center',
133
+    //   sorter: true,
134 134
 
135
-      render: (txt, record, index) =>
136
-        index ? clickCon(txt, record, 'visitNum') : <strong>{txt}</strong>,
137
-    },
135
+    //   render: (txt, record, index) =>
136
+    //     index ? clickCon(txt, record, 'visitNum') : <strong>{txt}</strong>,
137
+    // },
138 138
 
139
-    {
140
-      title: '分享拓客',
141
-      dataIndex: 'sharePersons',
142
-      key: 'sharePersons',
143
-      align: 'center',
144
-      sorter: true,
139
+    // {
140
+    //   title: '分享拓客',
141
+    //   dataIndex: 'sharePersons',
142
+    //   key: 'sharePersons',
143
+    //   align: 'center',
144
+    //   sorter: true,
145 145
 
146
-      render: (txt, record, index) =>
147
-        index ? clickCon(txt, record, 'sharePersons') : <strong>{txt}</strong>,
148
-    },
149
-    {
150
-      title: '主页访问人数',
151
-      dataIndex: 'homePagePersons',
152
-      key: 'homePagePersons',
153
-      align: 'center',
154
-      sorter: true,
146
+    //   render: (txt, record, index) =>
147
+    //     index ? clickCon(txt, record, 'sharePersons') : <strong>{txt}</strong>,
148
+    // },
149
+    // {
150
+    //   title: '主页访问人数',
151
+    //   dataIndex: 'homePagePersons',
152
+    //   key: 'homePagePersons',
153
+    //   align: 'center',
154
+    //   sorter: true,
155 155
 
156
-      render: (txt, record, index) =>
157
-        index ? clickCon(txt, record, 'homePagePersons') : <strong>{txt}</strong>,
158
-    },
159
-    {
160
-      title: '主页访问次数',
161
-      dataIndex: 'homePageNums',
162
-      key: 'homePageNums',
163
-      align: 'center',
164
-      sorter: true,
156
+    //   render: (txt, record, index) =>
157
+    //     index ? clickCon(txt, record, 'homePagePersons') : <strong>{txt}</strong>,
158
+    // },
159
+    // {
160
+    //   title: '主页访问次数',
161
+    //   dataIndex: 'homePageNums',
162
+    //   key: 'homePageNums',
163
+    //   align: 'center',
164
+    //   sorter: true,
165 165
 
166
-      render: (txt, record, index) =>
167
-        index ? clickCon(txt, record, 'homePageNums') : <strong>{txt}</strong>,
168
-    },
169
-    {
170
-      title: '咨询数',
171
-      dataIndex: 'chatPersons',
172
-      key: 'chatPersons',
173
-      align: 'center',
174
-      sorter: true,
166
+    //   render: (txt, record, index) =>
167
+    //     index ? clickCon(txt, record, 'homePageNums') : <strong>{txt}</strong>,
168
+    // },
169
+    // {
170
+    //   title: '咨询数',
171
+    //   dataIndex: 'chatPersons',
172
+    //   key: 'chatPersons',
173
+    //   align: 'center',
174
+    //   sorter: true,
175 175
 
176
-      render: (txt, record, index) =>
177
-        index ? clickCon(txt, record, 'chatPersons') : <strong>{txt}</strong>,
178
-    },
179
-    {
180
-      title: '点赞数',
181
-      dataIndex: 'favorNum',
182
-      key: 'favorNum',
183
-      align: 'center',
184
-      sorter: true,
176
+    //   render: (txt, record, index) =>
177
+    //     index ? clickCon(txt, record, 'chatPersons') : <strong>{txt}</strong>,
178
+    // },
179
+    // {
180
+    //   title: '点赞数',
181
+    //   dataIndex: 'favorNum',
182
+    //   key: 'favorNum',
183
+    //   align: 'center',
184
+    //   sorter: true,
185 185
 
186
-      render: (txt, record, index) =>
187
-        index ? clickCon(txt, record, 'favorNum') : <strong>{txt}</strong>,
188
-    },
186
+    //   render: (txt, record, index) =>
187
+    //     index ? clickCon(txt, record, 'favorNum') : <strong>{txt}</strong>,
188
+    // },
189 189
   ];
190 190
 
191 191
   const toAddVisitNum = record => {
@@ -276,18 +276,17 @@ const consultant = props => {
276 276
       headStyle={{ textAlign: 'left' }}
277 277
       extra={<TimeSelect onChange={onTimeChange}></TimeSelect>}
278 278
     >
279
-      <div>
279
+      {/* <div>
280 280
         <AuthButton name="admin.statistical.consultant.export" noRight={null}>
281 281
           <Button
282 282
             type="primary"
283 283
             onClick={exportRecord}
284
-            // loading={btnloading}
285 284
             style={{ float: 'right', margin: '20px 23px 20px 0', zIndex: 1 }}
286 285
           >
287 286
             导出
288 287
           </Button>
289 288
         </AuthButton>
290
-      </div>
289
+      </div> */}
291 290
       <Table
292 291
         rowKey={record => data.current * data.size + row++}
293 292
         style={{ marginTop: '30px' }}

+ 12
- 13
src/pages/statistics/dataReport/components/Count.jsx 查看文件

@@ -9,12 +9,10 @@ import apis from '@/services/apis';
9 9
 const Count = props => {
10 10
   const [data, setData] = useState([]);
11 11
 
12
-
13 12
   const [checkData, setCheckData] = useState([]);
14 13
 
15 14
   useEffect(() => {
16 15
     getIndexEcharts();
17
-
18 16
   }, []);
19 17
 
20 18
   function getIndexEcharts(params) {
@@ -27,19 +25,19 @@ const Count = props => {
27 25
     });
28 26
   }
29 27
 
30
-//   function getBuildingReports() {
31
-//     request({ ...apis.system.taBuildingReports }).then(data => {
32
-//       console.log(
33
-//         (data.records || []).map(x => x.reportCode),
34
-//         '22222222222222222',
35
-//       );
36
-//       setCheckData((data.records || []).map(x => x.reportCode));
37
-//     });
38
-//   }
28
+  //   function getBuildingReports() {
29
+  //     request({ ...apis.system.taBuildingReports }).then(data => {
30
+  //       console.log(
31
+  //         (data.records || []).map(x => x.reportCode),
32
+  //         '22222222222222222',
33
+  //       );
34
+  //       setCheckData((data.records || []).map(x => x.reportCode));
35
+  //     });
36
+  //   }
39 37
 
40 38
   return (
41 39
     <>
42
-      <Row gutter={16} style={{textAlign:'center'}}>
40
+      <Row gutter={16} style={{ textAlign: 'center' }}>
43 41
         <Col span={4}>
44 42
           <Card>
45 43
             <Statistic
@@ -68,7 +66,8 @@ const Count = props => {
68 66
           </Card>
69 67
         </Col>
70 68
         <Col span={4}>
71
-          <Card onClick={()=>router.push('/statistics/dataReport/newAdd')} style={{cursor:'pointer'}}>
69
+          <Card>
70
+            {/* onClick={()=>router.push('/statistics/dataReport/newAdd')} style={{cursor:'pointer'}} */}
72 71
             <Statistic
73 72
               title={<u>今日新增用户</u>}
74 73
               value={data.todayAddPersonNum || 0}