(function(){
Vue.component('hospital-filter',{
template:'
',
props:['chopitalList','hopitalList'],
data: function(){
return {
activeName:0,
hospitalCode:"",
hospitalItem:{},
}
},
mounted: function(){
},
methods: {
resetClick:function(){
this.$emit('vuedals:close', {});
},
confirmClick:function(){
var vm = this;
if(vm.hospitalCode){
//触发刷新
this.$emit('vuedals:close', {
hospitalItem: vm.hospitalItem,
hospitalCode: vm.hospitalCode,
activeName:vm.activeName,
});
}else{
vm.$message.error("请选择医院")
}
},
selHospitalItem:function(item){
var vm = this;
vm.hospitalItem = item
vm.hospitalCode = item.code
}
}
});
})()