Parcourir la source

Merge branch 'master' of http://192.168.1.220:10080/EHR/app-big-data

zhanghaoyu il y a 6 ans
Parent
commit
8b60b0fc09

+ 2 - 2
component/common/nodata.js

@ -1,9 +1,9 @@
(function() {
	
	Vue.component('nodata', {
        template: '	<div class="nodata flex_coloumn f_xy_c" style="margin-top:150px">\
        template: '	<div class="nodata flex_coloumn f_xy_c" style="margin-top:100px">\
                            <img style="width:50%;max-width:200px" src="../../../page/bigDataOut/images/nodeData.png">\
                            <div class="mt10" style="font-size:16px;color:#909090">暂无数据</div>\
                            <div style="font-size:16px;color:#909090;margin-top:10px">暂无数据</div>\
                    </div>',
		props: ["arr",'needShow'], //可以传数组 可以传显隐
		data: function() {

+ 2 - 4
page/bigDataOut/component/resultList.js

@ -69,16 +69,14 @@
                GlobalEventBus.$emit('setLoading',{
                    loading:true
                });
        
                bigDataOutApi.text_search(params).then(function(res){
                    GlobalEventBus.$emit('setLoading');
                    vm.data=res.detailModelList;
                    vm.total=res.totalCount;
                }).catch(function(err){
                    
                    console.erroe(err)
                    
                    GlobalEventBus.$emit('setLoading');
                })
            },

+ 7 - 2
page/bigDataOut/js/index.js

@ -5,7 +5,7 @@ new Vue({
			// iframeSrc: "../../new-quailty-manager/html/new-quailty-manager.html", 
			loading: false,
			historyArr:[{url:'../html/home.html',text:'全文病历检索'},],  //历史记录
			historyArr:[{url:'../html/home.html',text:'全文病历检索'}],  //历史记录
			activeIndex:'0' , //当前历史记录选中的下标
			leftTabActive:'2-0',//左边菜单中当前高亮下标
			isCollapse: false, //导航栏是否隐藏
@ -22,6 +22,10 @@ new Vue({
	},
	mounted:function() {
		if(sessionStorage.lastRouter){
			this.setHistory(JSON.parse(sessionStorage.lastRouter))
		}
		this.resize()
		this.bidnEvent()
@ -117,7 +121,7 @@ new Vue({
			// 		})
			// 	})
			// }	
			
			vm.historyArr=	vm.historyArr.map(function(v,i){   //检测要跳转的url是否在历史记录中
				if(obj.url.indexOf(v.url.split('?')[0]) != -1 ){  
					switch (obj.url){                                   //已经存在并且在左边的菜单的话则需要高亮左边菜单
@ -132,6 +136,7 @@ new Vue({
				}
				return v
			})
			sessionStorage.lastRouter = JSON.stringify(obj)
			if(!exist){  					  //不存在则添加进历史记录  
				vm.historyArr.push(obj);
				this.activeIndex =vm.historyArr.length-1