(function () { Vue.component('resultlist', { template: '
\
\
\
\
就诊日期{{forMatterDate(item.event_date)}}
\
就诊类型{{(item.event_type==0 && \'门诊\') || (item.event_type==1 && \'住院\')}}
\
性别{{(item.patient_sex==1 && \'男\') || (item.patient_sex==2 && \'女\') || "" }}
\
出生日期{{forMatterDate(item.patient_birthday)}}
\
姓名{{item.patient_name}}
\
医生{{item.doctor}}
\
就诊医院{{item.org_name}}
\
就诊科室{{item.dept_name}}
\
\
\
\
\ \ \
\
\ \
', props: ['keyword','filters'], data: function () { return { currentPage:1, pageSizeArr:[15,30,50,100], pageSize:15, total:0, data:[], searchKey:'' } }, mounted: function () { }, methods: { forMatterDate:function(date){ return new Date(date).format('yyyy-MM-dd') }, handleCurrentChange:function(val){ //page this.currentPage = val; this.getList() }, handleSizeChange:function(val){// size this.pageSize=val; this.initData() }, getList:function(){ var vm=this; var params={ page:this.currentPage, size:this.pageSize, keyword:this.keyword, filters:this.filters } GlobalEventBus.$emit('setLoading',{ loading:true }); bigDataOutApi.text_search(params).then(function(res){ GlobalEventBus.$emit('setLoading'); vm.data=res.detailModelList; vm.total=res.totalCount; if(vm.currentPage = 1){ GlobalEventBus.$emit('getSearchData',{data:vm.data}) } }).catch(function(err){ GlobalEventBus.$emit('setLoading'); }) }, initData:function(){ //初始化数据 this.currentPage = 1; this.getList() }, go:function(item){ var date = this.forMatterDate(item.event_date), orgName = item.org_name, profileId=item.rowkey, eventType=item.event_type, searchWord=this.keyword var url = httpRequest.server+'/profile/app/templateDetails/html/hospitalIndex.html?'+ 'date='+date+'&orgName='+orgName+'&profileId='+profileId+'&eventType='+eventType+ '&searchWord='+searchWord window.open(url) } }, watch: { resultList(val){ } } }) })()