mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
49 lines
1.6 KiB
JavaScript
49 lines
1.6 KiB
JavaScript
/**
|
|
权限组
|
|
**/
|
|
(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); |