| | |
| | | <!-- 选择 应用信息 --> |
| | | <div v-if="serviceBindingInfo.index == 0"> |
| | | <vc:create name="viewAppInfo" |
| | | callBackListener="serviceBinding" |
| | | callBackFunction="notify" |
| | | ></vc:create> |
| | | </div> |
| | | |
| | |
| | | vc.extends({ |
| | | data:{ |
| | | serviceBindingInfo:{ |
| | | $step:'', |
| | | $step:{}, |
| | | index:0, |
| | | infos:[] |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | vc.component._initStep(); |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on("serviceBinding", "notify", function(_info){ |
| | | vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index] = _info; |
| | | }); |
| | | |
| | | }, |
| | | methods:{ |
| | |
| | | vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex(); |
| | | }, |
| | | _nextStep:function(){ |
| | | var _currentData = vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index]; |
| | | if( _currentData == null || _currentData == undefined){ |
| | | vc.message("请选择相关信息"); |
| | | return ; |
| | | } |
| | | vc.component.serviceBindingInfo.$step.nextStep(); |
| | | vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex(); |
| | | } |
| | |
| | | (function(vc){ |
| | | |
| | | vc.extends({ |
| | | |
| | | propTypes: { |
| | | callBackListener:vc.propTypes.string, //父组件名称 |
| | | callBackFunction:vc.propTypes.string //父组件监听方法 |
| | | }, |
| | | data:{ |
| | | viewAppInfo:{ |
| | | appId:"", |
| | |
| | | _initEvent:function(){ |
| | | vc.on('viewAppInfo','chooseApp',function(_app){ |
| | | vc.component.viewAppInfo = _app; |
| | | //vc.emit($props.callBackComponent,'notify',_owner); |
| | | vc.emit($props.callBackListener,$props.callBackFunction,_app); |
| | | }); |
| | | |
| | | }, |