|
@ -8,7 +8,8 @@ new Vue({
|
|
type:'全部',
|
|
type:'全部',
|
|
allEventInit:false, //判断是否需要重新加载数据
|
|
allEventInit:false, //判断是否需要重新加载数据
|
|
outpatientInit:false,
|
|
outpatientInit:false,
|
|
hospitalizationInit:false
|
|
|
|
|
|
hospitalizationInit:false,
|
|
|
|
showBtn:true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@ -20,8 +21,16 @@ new Vue({
|
|
this.searchKey =(GetRequest().search && decodeURIComponent(GetRequest().search)) || ''
|
|
this.searchKey =(GetRequest().search && decodeURIComponent(GetRequest().search)) || ''
|
|
|
|
|
|
this.initData(this.searchKey);
|
|
this.initData(this.searchKey);
|
|
|
|
var vm=this;
|
|
|
|
|
|
|
|
|
|
|
|
GlobalEventBus.$on('getSearchData',function(val){
|
|
|
|
if(val.data && val.data.length>0){
|
|
|
|
vm.showBtn =true
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
vm.showBtn =false
|
|
|
|
}
|
|
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getHot:function(){
|
|
getHot:function(){
|
|
@ -63,6 +72,9 @@ new Vue({
|
|
this.searchKey=value
|
|
this.searchKey=value
|
|
this.initData(value);
|
|
this.initData(value);
|
|
|
|
|
|
|
|
},
|
|
|
|
reseviceData:function(val){
|
|
|
|
debugger
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|