zlisen 3 년 전
부모
커밋
de4dd80760
3개의 변경된 파일78개의 추가작업 그리고 80개의 파일을 삭제
  1. 2
    2
      src/pages/statistics/building/detailData/index.jsx
  2. 64
    65
      src/pages/statistics/consultant/index.jsx
  3. 12
    13
      src/pages/statistics/dataReport/components/Count.jsx

+ 2
- 2
src/pages/statistics/building/detailData/index.jsx 파일 보기

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

+ 64
- 65
src/pages/statistics/consultant/index.jsx 파일 보기

92
       align: 'center',
92
       align: 'center',
93
       sorter: true,
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
       title: '新增客户',
99
       title: '新增客户',
102
       align: 'center',
102
       align: 'center',
103
       sorter: true,
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
       title: '分享次数',
109
       title: '分享次数',
112
       align: 'center',
112
       align: 'center',
113
       sorter: true,
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
       title: '分享访问人数',
119
       title: '分享访问人数',
122
       align: 'center',
122
       align: 'center',
123
       sorter: true,
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
   const toAddVisitNum = record => {
191
   const toAddVisitNum = record => {
276
       headStyle={{ textAlign: 'left' }}
276
       headStyle={{ textAlign: 'left' }}
277
       extra={<TimeSelect onChange={onTimeChange}></TimeSelect>}
277
       extra={<TimeSelect onChange={onTimeChange}></TimeSelect>}
278
     >
278
     >
279
-      <div>
279
+      {/* <div>
280
         <AuthButton name="admin.statistical.consultant.export" noRight={null}>
280
         <AuthButton name="admin.statistical.consultant.export" noRight={null}>
281
           <Button
281
           <Button
282
             type="primary"
282
             type="primary"
283
             onClick={exportRecord}
283
             onClick={exportRecord}
284
-            // loading={btnloading}
285
             style={{ float: 'right', margin: '20px 23px 20px 0', zIndex: 1 }}
284
             style={{ float: 'right', margin: '20px 23px 20px 0', zIndex: 1 }}
286
           >
285
           >
287
             导出
286
             导出
288
           </Button>
287
           </Button>
289
         </AuthButton>
288
         </AuthButton>
290
-      </div>
289
+      </div> */}
291
       <Table
290
       <Table
292
         rowKey={record => data.current * data.size + row++}
291
         rowKey={record => data.current * data.size + row++}
293
         style={{ marginTop: '30px' }}
292
         style={{ marginTop: '30px' }}

+ 12
- 13
src/pages/statistics/dataReport/components/Count.jsx 파일 보기

9
 const Count = props => {
9
 const Count = props => {
10
   const [data, setData] = useState([]);
10
   const [data, setData] = useState([]);
11
 
11
 
12
-
13
   const [checkData, setCheckData] = useState([]);
12
   const [checkData, setCheckData] = useState([]);
14
 
13
 
15
   useEffect(() => {
14
   useEffect(() => {
16
     getIndexEcharts();
15
     getIndexEcharts();
17
-
18
   }, []);
16
   }, []);
19
 
17
 
20
   function getIndexEcharts(params) {
18
   function getIndexEcharts(params) {
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
   return (
38
   return (
41
     <>
39
     <>
42
-      <Row gutter={16} style={{textAlign:'center'}}>
40
+      <Row gutter={16} style={{ textAlign: 'center' }}>
43
         <Col span={4}>
41
         <Col span={4}>
44
           <Card>
42
           <Card>
45
             <Statistic
43
             <Statistic
68
           </Card>
66
           </Card>
69
         </Col>
67
         </Col>
70
         <Col span={4}>
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
             <Statistic
71
             <Statistic
73
               title={<u>今日新增用户</u>}
72
               title={<u>今日新增用户</u>}
74
               value={data.todayAddPersonNum || 0}
73
               value={data.todayAddPersonNum || 0}