mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
52 lines
1.8 KiB
JavaScript
52 lines
1.8 KiB
JavaScript
(function(vc) {
|
|
vc.extends({
|
|
data: {
|
|
feeRemindInfo: {
|
|
_currentTab: 'reportPrePaymentFee',
|
|
feeConfigs: [],
|
|
conditions: {
|
|
objName: '',
|
|
configId: '',
|
|
ownerName: '',
|
|
link: '',
|
|
communityId: vc.getCurrentCommunity().communityId
|
|
}
|
|
}
|
|
},
|
|
_initMethod: function() {
|
|
$that._listFeeConfigs();
|
|
vc.component.changeTab($that.feeRemindInfo._currentTab);
|
|
},
|
|
_initEvent: function() {
|
|
vc.on("indexContext", "_queryIndexContextData", function(_param) {});
|
|
},
|
|
methods: {
|
|
changeTab: function(_tab) {
|
|
$that.feeRemindInfo._currentTab = _tab;
|
|
vc.emit(_tab, 'switch', $that.feeRemindInfo.conditions)
|
|
},
|
|
_queryMethod: function() {
|
|
vc.component.changeTab($that.feeRemindInfo._currentTab);
|
|
},
|
|
_listFeeConfigs: function() {
|
|
let param = {
|
|
params: {
|
|
page: 1,
|
|
row: 100,
|
|
communityId: vc.getCurrentCommunity().communityId,
|
|
isDefault: 'F'
|
|
}
|
|
};
|
|
//发送get请求
|
|
vc.http.apiGet('/feeConfig.listFeeConfigs', param,
|
|
function(json, res) {
|
|
let _feeConfigManageInfo = JSON.parse(json);
|
|
$that.feeRemindInfo.feeConfigs = _feeConfigManageInfo.feeConfigs;
|
|
},
|
|
function(errInfo, error) {
|
|
console.log('请求失败处理');
|
|
});
|
|
},
|
|
}
|
|
})
|
|
})(window.vc); |