Bladeren bron

新需求

魏超 5 jaren geleden
bovenliggende
commit
5c3cf3c1ca

+ 1
- 0
config/routes.js Bestand weergeven

@@ -553,6 +553,7 @@ export default [
553 553
               {
554 554
                 path: '/statistical/activity/detail',
555 555
                 name: '查看详情',
556
+                hideInMenu: true,
556 557
                 component: './statistical/activity/detail'
557 558
               },
558 559
               {

+ 9
- 1
src/pages/statistical/activity/addRegistNum.jsx Bestand weergeven

@@ -91,7 +91,8 @@ class SharePersonNum extends React.Component {
91 91
         startDate: startDate,
92 92
         endDate: endDate,
93 93
         activityId: props.location.query.activityId,
94
-        activityType:props.location.query.activityType  
94
+        activityType:props.location.query.activityType,
95
+        buildingId: props.location.query.buildingId,      
95 96
       },
96 97
       personData: [],  
97 98
       dataSoures: [],
@@ -132,6 +133,10 @@ class SharePersonNum extends React.Component {
132 133
     this.props.form.resetFields()
133 134
   }
134 135
 
136
+  goback = () => {
137
+    router.go(-1);
138
+  }
139
+  
135 140
   exportActivityStats = () => {
136 141
     const { formData } = this.state
137 142
     request({ ...apis.activityDataStatis.activityAddRegistNumExport, params: formData }).then(data => {
@@ -185,6 +190,9 @@ class SharePersonNum extends React.Component {
185 190
           </Form.Item>
186 191
           </Form>     
187 192
         <div>
193
+            <Button type="primary" style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }} onClick={this.goback}>
194
+                返回
195
+            </Button>
188 196
         <AuthButton name="admin.statistical.activity.export" noRight={null}>
189 197
             <Button type="primary" style={{ float: 'right', margin: '20px 0', zIndex: 1 }} onClick={this.exportActivityStats}>
190 198
                 导出

+ 7
- 5
src/pages/statistical/activity/compenents/OverView.jsx Bestand weergeven

@@ -33,7 +33,7 @@ const toSharePersonNum = rowData => () => {
33 33
     query: {
34 34
       queryDate: rowData.date,
35 35
       buildingId: buildingId, 
36
-      acticvityType: activityType
36
+      activityType: activityType
37 37
     },
38 38
   });
39 39
     return
@@ -48,7 +48,7 @@ const toShareNum = rowData => () => {
48 48
     query: {
49 49
       queryDate: rowData.date,
50 50
       buildingId: buildingId, 
51
-      acticvityType: activityType
51
+      activityType: activityType
52 52
     },
53 53
   });
54 54
     return
@@ -63,7 +63,7 @@ const toAddRegistNum = rowData => () => {
63 63
     query: {
64 64
       queryDate: rowData.date,
65 65
       buildingId: buildingId, 
66
-      acticvityType: activityType
66
+      activityType: activityType
67 67
     },
68 68
   });
69 69
     return
@@ -78,7 +78,7 @@ const toAddVisitNum = rowData => () => {
78 78
     query: {
79 79
       queryDate: rowData.date,
80 80
       buildingId: buildingId, 
81
-      acticvityType: activityType
81
+      activityType: activityType
82 82
     },
83 83
   });
84 84
     return
@@ -93,7 +93,7 @@ const toAddVisitPersonNum = rowData => () => {
93 93
     query: {
94 94
       queryDate: rowData.date,
95 95
       buildingId: buildingId, 
96
-      acticvityType: activityType
96
+      activityType: activityType
97 97
     },
98 98
   });
99 99
     return
@@ -197,6 +197,8 @@ class OverView extends React.Component {
197 197
   }
198 198
 
199 199
   componentDidMount() {
200
+    activityType = ''
201
+    buildingId = ''
200 202
     this.getList()
201 203
     this.getTableList()
202 204
   }

+ 9
- 1
src/pages/statistical/activity/shareNum.jsx Bestand weergeven

@@ -84,7 +84,8 @@ class SharePersonNum extends React.Component {
84 84
         endDate: endDate,
85 85
         activityId: props.location.query.activityId,
86 86
         activityType:props.location.query.activityType,
87
-        personId: props.location.query.personId   
87
+        personId: props.location.query.personId,
88
+        buildingId: props.location.query.buildingId   
88 89
       },
89 90
       personData: [],  
90 91
       dataSoures: [],
@@ -129,6 +130,10 @@ class SharePersonNum extends React.Component {
129 130
     this.props.form.resetFields()
130 131
   }
131 132
 
133
+  goback = () => {
134
+    router.go(-1);
135
+  }
136
+  
132 137
   exportActivityStats = () => {
133 138
     const { formData } = this.state
134 139
     request({ ...apis.activityDataStatis.activityShareNumExport, params: formData }).then(data => {
@@ -196,6 +201,9 @@ class SharePersonNum extends React.Component {
196 201
           </Form.Item>
197 202
           </Form>     
198 203
         <div>
204
+            <Button type="primary" style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }} onClick={this.goback}>
205
+                返回
206
+            </Button>
199 207
         <AuthButton name="admin.statistical.activity.export" noRight={null}>
200 208
             <Button type="primary" style={{ float: 'right', margin: '20px 0', zIndex: 1 }} onClick={this.exportActivityStats}>
201 209
                 导出

+ 7
- 0
src/pages/statistical/activity/sharePersonNum.jsx Bestand weergeven

@@ -201,6 +201,10 @@ class SharePersonNum extends React.Component {
201 201
     this.props.form.resetFields()
202 202
   }
203 203
 
204
+  goback = () => {
205
+    router.go(-1);
206
+  }
207
+
204 208
   exportActivityStats = () => {
205 209
     const { formData } = this.state
206 210
     request({ ...apis.activityDataStatis.activitySharePersonNumExport, params: formData }).then(data => {
@@ -268,6 +272,9 @@ class SharePersonNum extends React.Component {
268 272
           </Form.Item>
269 273
           </Form>     
270 274
         <div>
275
+            <Button type="primary" style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }} onClick={this.goback}>
276
+                返回
277
+            </Button>
271 278
         <AuthButton name="admin.statistical.activity.export" noRight={null}>
272 279
             <Button type="primary" style={{ float: 'right', margin: '20px 0', zIndex: 1 }} onClick={this.exportActivityStats}>
273 280
                 导出

+ 9
- 1
src/pages/statistical/activity/visitNum.jsx Bestand weergeven

@@ -103,8 +103,9 @@ class SharePersonNum extends React.Component {
103 103
         realtyConsultant:'',
104 104
         realtyConsultantPhone:'',
105 105
         activityId: props.location.query.activityId,
106
-        activityType: props.location.query.activityType,
106
+        activityType:props.location.query.activityType,
107 107
         personId: props.location.query.personId,
108
+        buildingId: props.location.query.buildingId
108 109
       },
109 110
       personData: [],  
110 111
       dataSoures: [],
@@ -152,6 +153,10 @@ class SharePersonNum extends React.Component {
152 153
     this.props.form.resetFields()
153 154
   }
154 155
 
156
+  goback = () => {
157
+    router.go(-1);
158
+  }
159
+  
155 160
   exportActivityStats = () => {
156 161
     const { formData } = this.state
157 162
     request({ ...apis.activityDataStatis.activityVisitNumExport, params: formData }).then(data => {
@@ -214,6 +219,9 @@ class SharePersonNum extends React.Component {
214 219
           </Form.Item>
215 220
           </Form>     
216 221
         <div>
222
+            <Button type="primary" style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }} onClick={this.goback}>
223
+                返回
224
+            </Button>
217 225
         <AuthButton name="admin.statistical.activity.export" noRight={null}>
218 226
             <Button type="primary" style={{ float: 'right', margin: '20px 0', zIndex: 1 }} onClick={this.exportActivityStats}>
219 227
                 导出

+ 9
- 1
src/pages/statistical/activity/visitPersonNum.jsx Bestand weergeven

@@ -104,7 +104,8 @@ class SharePersonNum extends React.Component {
104 104
         realtyConsultantPhone:'',
105 105
         activityId: props.location.query.activityId,
106 106
         activityType:props.location.query.activityType ,
107
-        personId:  props.location.query.personId
107
+        personId:  props.location.query.personId,
108
+        buildingId: props.location.query.buildingId
108 109
       },
109 110
       personData: [],  
110 111
       dataSoures: [],
@@ -152,6 +153,10 @@ class SharePersonNum extends React.Component {
152 153
     this.props.form.resetFields()
153 154
   }
154 155
 
156
+  goback = () => {
157
+    router.go(-1);
158
+  }
159
+  
155 160
   exportActivityStats = () => {
156 161
     const { formData } = this.state
157 162
     request({ ...apis.activityDataStatis.activityVisitPersonNumExport, params: formData }).then(data => {
@@ -214,6 +219,9 @@ class SharePersonNum extends React.Component {
214 219
           </Form.Item>
215 220
           </Form>     
216 221
         <div>
222
+            <Button type="primary" style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }} onClick={this.goback}>
223
+                返回
224
+            </Button>
217 225
         <AuthButton name="admin.statistical.activity.export" noRight={null}>
218 226
             <Button type="primary" style={{ float: 'right', margin: '20px 0', zIndex: 1 }} onClick={this.exportActivityStats}>
219 227
                 导出