优化导出跳转到登陆页面bug

Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
java110 2025-04-28 03:35:23 +00:00 committed by Gitee
parent 27139ae93f
commit c267cba2a2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 38 additions and 7 deletions

View File

@ -14,7 +14,7 @@
moreCondition: false,
title: '',
feeTypeCds: [],
communitys:[],
communitys: [],
totalPreferentialAmount: 0.0,
allOweAmount: 0.0,
conditions: {
@ -26,15 +26,15 @@
startTime: '',
endTime: '',
communityId: '',
ownerNameLike:'',
ownerNameLike: '',
}
}
},
_initMethod: function () {
vc.initDate('startTime',function(_value){
vc.initDate('startTime', function (_value) {
$that.reportOweFeeDetailInfo.conditions.startTime = _value;
});
vc.initDate('endTime',function(_value){
vc.initDate('endTime', function (_value) {
$that.reportOweFeeDetailInfo.conditions.endTime = _value;
});
vc.getDict('pay_fee_config', "fee_type_cd", function (_data) {
@ -147,7 +147,22 @@
}
},
_exportExcel: function () {
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportOweFeeDetail&' + vc.objToGetParam($that.reportOweFeeDetailInfo.conditions));
$that.reportOweFeeDetailInfo.conditions.pagePath = 'reportOweFeeDetail';
let _param = {
params: $that.reportOweFeeDetailInfo.conditions
}
vc.http.apiGet('/export.exportData',
_param,
function (json, res) {
let _json = JSON.parse(json);
vc.toast(_json.msg);
if (_json.code == 0) {
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
}
},
function (errInfo, error) {
console.log('请求失败处理');
});
},
_loadStaffCommunitys: function () {
let param = {
@ -169,7 +184,7 @@
}
);
},
_changCommunity:function(){
_changCommunity: function () {
$that.reportOweFeeDetailInfo.conditions.floorId = "";
$that._listFloors();
$that._listFees(DEFAULT_PAGE, DEFAULT_ROWS);

View File

@ -226,7 +226,23 @@
}
},
_exportFee: function () {
vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportRepairDetail&' + vc.objToGetParam($that.reportRepairInfo.conditions));
// vc.jumpToPage('/callComponent/exportReportFee/exportData?pagePath=reportRepairDetail&' + vc.objToGetParam($that.reportRepairInfo.conditions));
$that.reportRepairInfo.conditions.pagePath = 'reportRepairDetail';
let _param = {
params: $that.reportRepairInfo.conditions
}
vc.http.apiGet('/export.exportData',
_param,
function (json, res) {
let _json = JSON.parse(json);
vc.toast(_json.msg);
if (_json.code == 0) {
vc.jumpToPage('/#/pages/property/downloadTempFile?tab=下载中心')
}
},
function (errInfo, error) {
console.log('请求失败处理');
});
},
_loadStaffCommunitys: function () {
let param = {