wuxw
2019-07-20 39ceed7f60905297629a45978cc29b6fe8bd05d8
WebService/src/main/resources/components/add-owner/addOwner.js
@@ -1,20 +1,27 @@
(function(vc){
    vc.extends({
        propTypes: {
               notifyLoadDataComponentName:vc.propTypes.string
        },
        data:{
            addOwnerInfo:{
                name:'',
                age:'',
                link:'',
                sex:'',
                remark:''
                remark:'',
                ownerId:''
            }
        },
         _initMethod:function(){
         },
         _initEvent:function(){
            vc.on('addOwner','openAddOwnerModal',function(){
            vc.on('addOwner','openAddOwnerModal',function(_ownerId){
                if(_ownerId != null || _ownerId != -1){
                    vc.component.addOwnerInfo.ownerId = _ownerId;
                }
                $('#addOwnerModel').modal('show');
            });
        },
@@ -98,7 +105,7 @@
                            //关闭model
                            $('#addOwnerModel').modal('hide');
                            vc.component.clearAddOwnerInfo();
                            vc.emit('listOwner','listOwnerData',{});
                            vc.emit($props.notifyLoadDataComponentName,'listOwnerData',{});
                            return ;
                        }