File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed
public/components/property/commonReportTable Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change 196
196
_condition . row = 10000 ;
197
197
_condition . componentId = item . componentId ;
198
198
_condition . communityId = _communityId
199
- let _result = [ ] ;
200
- for ( let key in _condition ) {
201
- let value = _condition [ key ] ;
202
- if ( ! value ) {
203
- continue ;
204
- }
205
- _result . push ( key + '=' + value ) ;
206
- }
207
- let urlParam = _result . join ( '&' ) ;
208
- vc . jumpToPage ( '/callComponent/importAndExportFee/exportCustomReportTableData?' + urlParam )
199
+ _condition . pagePath = 'exportCustomReportTableData' ;
200
+ //vc.jumpToPage('/callComponent/importAndExportFee/exportCustomReportTableData?' + urlParam)
201
+ let param = {
202
+ params : _condition
203
+ } ;
204
+ //发送get请求
205
+ vc . http . apiGet ( '/export.exportData' , param ,
206
+ function ( json , res ) {
207
+ let _json = JSON . parse ( json ) ;
208
+ vc . toast ( _json . msg ) ;
209
+ if ( _json . code == 0 ) {
210
+ vc . jumpToPage ( '/#/pages/property/downloadTempFile?tab=下载中心' )
211
+ }
212
+ } ,
213
+ function ( errInfo , error ) {
214
+ console . log ( '请求失败处理' ) ;
215
+ } ) ;
209
216
} ,
210
217
_printReportTableMethod : function ( _data ) {
211
218
vc . saveData ( 'printCommonReportTableData' , _data ) ;
You can’t perform that action at this time.
0 commit comments