Skip to content

Commit c267cba

Browse files
928255095gitee-org
authored andcommitted
优化导出跳转到登陆页面bug
Signed-off-by: java110 <[email protected]>
1 parent 27139ae commit c267cba

File tree

2 files changed

+38
-7
lines changed

2 files changed

+38
-7
lines changed

public/pages/property/reportOweFeeDetail/reportOweFeeDetail.js

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
moreCondition: false,
1515
title: '',
1616
feeTypeCds: [],
17-
communitys:[],
17+
communitys: [],
1818
totalPreferentialAmount: 0.0,
1919
allOweAmount: 0.0,
2020
conditions: {
@@ -26,15 +26,15 @@
2626
startTime: '',
2727
endTime: '',
2828
communityId: '',
29-
ownerNameLike:'',
29+
ownerNameLike: '',
3030
}
3131
}
3232
},
3333
_initMethod: function () {
34-
vc.initDate('startTime',function(_value){
34+
vc.initDate('startTime', function (_value) {
3535
$that.reportOweFeeDetailInfo.conditions.startTime = _value;
3636
});
37-
vc.initDate('endTime',function(_value){
37+
vc.initDate('endTime', function (_value) {
3838
$that.reportOweFeeDetailInfo.conditions.endTime = _value;
3939
});
4040
vc.getDict('pay_fee_config', "fee_type_cd", function (_data) {
@@ -147,7 +147,22 @@
147147
}
148148
},
149149
_exportExcel: function () {
150-
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportOweFeeDetail&' + vc.objToGetParam($that.reportOweFeeDetailInfo.conditions));
150+
$that.reportOweFeeDetailInfo.conditions.pagePath = 'reportOweFeeDetail';
151+
let _param = {
152+
params: $that.reportOweFeeDetailInfo.conditions
153+
}
154+
vc.http.apiGet('/export.exportData',
155+
_param,
156+
function (json, res) {
157+
let _json = JSON.parse(json);
158+
vc.toast(_json.msg);
159+
if (_json.code == 0) {
160+
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
161+
}
162+
},
163+
function (errInfo, error) {
164+
console.log('请求失败处理');
165+
});
151166
},
152167
_loadStaffCommunitys: function () {
153168
let param = {
@@ -169,7 +184,7 @@
169184
}
170185
);
171186
},
172-
_changCommunity:function(){
187+
_changCommunity: function () {
173188
$that.reportOweFeeDetailInfo.conditions.floorId = "";
174189
$that._listFloors();
175190
$that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);

public/pages/property/reportRepair/reportRepair.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,23 @@
226226
}
227227
},
228228
_exportFee: function () {
229-
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportRepairDetail&' + vc.objToGetParam($that.reportRepairInfo.conditions));
229+
// vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportRepairDetail&' + vc.objToGetParam($that.reportRepairInfo.conditions));
230+
$that.reportRepairInfo.conditions.pagePath = 'reportRepairDetail';
231+
let _param = {
232+
params: $that.reportRepairInfo.conditions
233+
}
234+
vc.http.apiGet('/export.exportData',
235+
_param,
236+
function (json, res) {
237+
let _json = JSON.parse(json);
238+
vc.toast(_json.msg);
239+
if (_json.code == 0) {
240+
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
241+
}
242+
},
243+
function (errInfo, error) {
244+
console.log('请求失败处理');
245+
});
230246
},
231247
_loadStaffCommunitys: function () {
232248
let param = {

0 commit comments

Comments
 (0)