mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 22:27:55 +08:00
58 lines
1.7 KiB
JavaScript
58 lines
1.7 KiB
JavaScript
/**
|
|
权限组
|
|
**/
|
|
(function(vc){
|
|
|
|
vc.extends({
|
|
data:{
|
|
feeConfigInfo:{
|
|
configId:"",
|
|
squarePrice:"",
|
|
additionalAmount:""
|
|
}
|
|
},
|
|
_initMethod:function(){
|
|
vc.component.loadPropertyConfigFee();
|
|
},
|
|
_initEvent:function(){
|
|
vc.on('viewPropertyFeeConfig','loadPropertyConfigFee',function(){
|
|
vc.component.loadPropertyConfigFee();
|
|
});
|
|
|
|
},
|
|
methods:{
|
|
|
|
openConfigPropertyFeeModel:function(){
|
|
vc.emit('configPropertyFee','openConfigPropertyFeeModel',vc.component.feeConfigInfo);
|
|
},
|
|
loadPropertyConfigFee:function(){
|
|
var param = {
|
|
params:{
|
|
communityId:vc.getCurrentCommunity().communityId,
|
|
configId:vc.component.feeConfigInfo.configId
|
|
}
|
|
};
|
|
vc.http.get(
|
|
'viewPropertyFeeConfig',
|
|
'loadData',
|
|
param,
|
|
function(json,res){
|
|
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
|
if(res.status == 200){
|
|
//关闭model
|
|
vc.copyObject(JSON.parse(json), vc.component.feeConfigInfo);
|
|
return ;
|
|
}
|
|
vc.message(json);
|
|
},
|
|
function(errInfo,error){
|
|
console.log('请求失败处理');
|
|
|
|
vc.message(errInfo);
|
|
});
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
})(window.vc); |