MicroCommunityWeb/public/components/dev/viewServiceInfo/viewServiceInfo.js
2021-04-23 10:14:20 +08:00

56 lines
1.5 KiB
JavaScript
Executable File

/**
权限组
**/
(function(vc){
vc.extends({
propTypes: {
callBackListener:vc.propTypes.string, //父组件名称
callBackFunction:vc.propTypes.string //父组件监听方法
},
data:{
viewServiceInfo:{
index:0,
serviceId:"",
flowComponent:'Service',
name:"",
serviceCode:"",
messageQueueName:"",
isInstance:"",
url:"",
method:"",
timeout:"",
retryCount:""
}
},
_initMethod:function(){
//根据请求参数查询 查询 业主信息
vc.component._loadServiceInfoData();
},
_initEvent:function(){
vc.on('viewServiceInfo','chooseService',function(_service){
vc.copyObject(_service, vc.component.viewServiceInfo);
vc.emit($props.callBackListener,$props.callBackFunction,vc.component.viewServiceInfo);
});
vc.on('viewServiceInfo', 'onIndex', function(_index){
vc.component.viewServiceInfo.index = _index;
});
},
methods:{
_openSelectServiceInfoModel(){
vc.emit('chooseService','openChooseServiceModel',{});
},
_openAddServiceInfoModel(){
vc.emit('addService','openAddServiceModal',{});
},
_loadServiceInfoData:function(){
}
}
});
})(window.vc);