mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 08:16:47 +08:00
62 lines
2.4 KiB
JavaScript
62 lines
2.4 KiB
JavaScript
/**
|
|
权限组
|
|
**/
|
|
(function(vc){
|
|
|
|
vc.extends({
|
|
propTypes: {
|
|
callBackComponent:vc.propTypes.string,
|
|
callBackFunction:vc.propTypes.string
|
|
},
|
|
data:{
|
|
parkingSpaceInfo:{
|
|
flowComponent:'viewSelectParkingSpace',
|
|
parkingSpaceFlag:'',
|
|
num:'',
|
|
area:'',
|
|
state:'',
|
|
stateName:'',
|
|
remark:'',
|
|
areaNum:'',
|
|
psId:''
|
|
}
|
|
},
|
|
_initMethod:function(){
|
|
//根据请求参数查询 查询 业主信息
|
|
vc.component.loadParkingSpaceData();
|
|
},
|
|
_initEvent:function(){
|
|
vc.on('viewSelectParkingSpace','chooseParkingSpace',function(_parkingSpace){
|
|
vc.copyObject(_parkingSpace, vc.component.parkingSpaceInfo);
|
|
vc.emit($props.callBackComponent,$props.callBackFunction,vc.component.parkingSpaceInfo);
|
|
vc.emit('hireParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo);
|
|
vc.emit('sellParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo);
|
|
});
|
|
|
|
},
|
|
methods:{
|
|
|
|
openSearchParkingSpaceModel(){
|
|
vc.emit('searchParkingSpace','openSearchParkingSpaceModel',{});
|
|
},
|
|
loadParkingSpaceData:function(){
|
|
|
|
vc.component.parkingSpaceInfo.psId = vc.getParam("psId");
|
|
vc.component.parkingSpaceInfo.num = vc.getParam("num");
|
|
vc.component.parkingSpaceInfo.area = vc.getParam("area");
|
|
vc.component.parkingSpaceInfo.state = vc.getParam("state");
|
|
vc.component.parkingSpaceInfo.areaNum = vc.getParam("areaNum");
|
|
vc.component.parkingSpaceInfo.typeCd = vc.getParam("typeCd");
|
|
if(vc.notNull(vc.getParam("psId"))){
|
|
vc.component.parkingSpaceInfo.parkingSpaceFlag='ParkingSpace';
|
|
vc.emit('hireParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo);
|
|
vc.emit('sellParkingSpaceFee', 'parkingSpaceInfo',vc.component.parkingSpaceInfo);
|
|
}
|
|
if(vc.component.parkingSpaceInfo.psId != ''){
|
|
vc.emit($props.callBackComponent,'notify',vc.component.parkingSpaceInfo);
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
})(window.vc); |