chenyue пре 5 година
родитељ
комит
b62d774104

+ 5 - 5
app/statistics/html/smfw-comprehensive-analysis.html

@ -21,7 +21,7 @@
<style>
.mainBlocktop {
	width: 265px;
	width: 195px;
    height: 170px;
	background: -webkit-linear-gradient(left, #5a83ff , #3b6cfe); /* Safari 5.1 - 6.0 */
	background: -o-linear-gradient(right, #5a83ff, #3b6cfe); /* Opera 11.1 - 12.0 */
@ -33,7 +33,7 @@
}
.mainBlockbottom {
	width: 265px;
	width: 195px;
    height: 170px;
    font-size: 16px;
	background: -webkit-linear-gradient(left, #396cfe ,#1954fd); /* Safari 5.1 - 6.0 */
@ -65,7 +65,7 @@
		            	</div>
		        	</div>
	        	</div>
	        	<div class="f_s_0 mlr15" style="width:540px;">
	        	<div class="f_s_0 mlr15" style="width:400px;">
	        		<div class="mtb10">
	        			<span class="c-f16 c-333 pr10">时&emsp;&emsp;间</span>
	        			<el-date-picker  v-model="dateValue" type="month" value-format="yyyy-MM"  placeholder="选择月" :picker-options="pickerOptions" @change="changeDate"></el-date-picker>
@ -101,7 +101,7 @@
	        	</div>
	        	<div class="f_g_1">
			        <div  class="mtb10 c-border bgc-fff c-border-r-4">
		            	<div class="c-border-b plr10 ptb10 c-f16 c-333 c-position-r">服务项目和药品分析
		            	<div class="c-border-b plr10 ptb10 c-f16 c-333 c-position-r">已完成工单趋势分析
		            		<div class="c-position-a" style="right: 15px;top: 5px;">
		            			<el-radio-group v-model="ptab" size="small" @change="showTab">
								    <el-radio-button label="1">服务项目</el-radio-button>
@ -121,7 +121,7 @@
	        	</div>
	        </div>
	        <div  class="mtb10 c-border bgc-fff c-border-r-4">
            	<div class="c-border-b plr10 ptb10 c-f16 c-333 c-position-r">预约量分析</div>
            	<div class="c-border-b plr10 ptb10 c-f16 c-333 c-position-r">服务工单排行</div>
		    	<table-panel ref="tableRef0" :tabledata="tabledata0" @getnewdata="getnewdata"  :reqlength="reqListLength"  @backtobefore="backClick"></table-panel>
        	</div>
        </div>

+ 6 - 4
app/statistics/js/smfw-comprehensive-analysis.js

@ -167,20 +167,22 @@ new Vue({
			var vm=this
			vm.$refs.tableRef1.initTable({
				//表格表头
				headers:[{thead:"名称",param:"name",canclick:true},{thead:"工单量(个)",param:"orderCount"}],
				headers:[{thead:"疾病分析",param:"name",canclick:true},{thead:"工单量(个)",param:"orderCount"}],
			})
			vm.$refs.tableRef2.initTable({
				//表格表头
				headers:[{thead:"名称",param:"name",canclick:true},{thead:"使用人数(人)",param:"patientCount"},{thead:"工单量(个)",param:"orderCount"}],
				headers:[{thead:"服务项目",param:"name",canclick:true},{thead:"使用人数(人)",param:"patientCount"},{thead:"工单量(个)",param:"orderCount"}],
			})
			vm.$refs.tableRef3.initTable({
				//表格表头
				headers:[{thead:"名称",param:"name",canclick:true},{thead:"使用人数(人)",param:"patientCount"},{thead:"工单量(个)",param:"orderCount"}],
				headers:[{thead:"药品",param:"name",canclick:true},{thead:"使用人数(人)",param:"patientCount"},{thead:"工单量(个)",param:"orderCount"}],
			})
			vm.$refs.tableRef0.initTable({
    			tabList:[{name:"各区",level:"4",lowlevel:"3",isShow:true},{name:"社区",level:"3",lowlevel:"2",isShow:true},{name:"团队",level:"2",lowlevel:"1",isShow:true}],
				//表格表头
				headers:[{thead:"名称",param:"name",canclick:true},{thead:"合计工单(个)",param:"all"}],
				headers:[{thead:"名称",param:"name",canclick:true},{thead:"合计(个)",param:"all"},{thead:"待派单(个)",param:"waitinglist"},{thead:"待接单(个)",param:"waitingorder"},
//				{thead:"已接单(个)",param:"waitingservice"},
				{thead:"待服务(个)",param:"waitingpay"},{thead:"待评价(个)",param:"waitingcomment"},{thead:"已完成(个)",param:"completed"},{thead:"评价均分(分)",param:"evaluateSplit"}],
				tabnumber:vm.tabnumber
			})
		},

+ 13 - 5
component/statistics/table-panel.js

@ -10,7 +10,7 @@
    		<div class="ptb20 plr25">\
    			<table class="table-content table-bordered table-striped mb20" id="listTable">\
	                <thead><tr>\
	                	<th class="c-t-center">排名</th>\
	                	<th class="c-t-center" v-if="firstTh">{{firstTh}}</th>\
	                    <th v-for="(th,i) in headers" :key="i" :class="i>=2?\'c-t-right\':\'\'">{{th.thead}}\
	                    	<el-tooltip class="item" effect="dark" :content="th.tip" placement="top" v-if="th.tip">\
						      <img class="c-position-a tip" src="../../../images/icon_wenhao2.png" alt="" style="top: 13px;left:70px;">\
@ -19,13 +19,14 @@
	                </tr></thead>\
	                <tbody>\
	                    <tr v-if="tabledata.length>0" v-for="(row,index) in tabledata" :key="index" class="data-row">\
	                    	<td class="c-t-center">{{row.rank}}</td>\
	                    	<td class="c-t-center" v-if="firstTh">{{row.rank}}</td>\
	                        <td v-for="(th,i) in headers" :key="i"  :class="{\'c-t-right\':i>=1,\'tdPointor\':!cantclick}" @click="getLowLevelData(row,th)">\
		                        {{row[th.param]}}\
	                        </td>\
	                    </tr>\
	                    <tr v-if="tabledata.length==0">\
	                        <td :colspan="headers.length" class="c-t-center">无数据</td>\
	                        <td v-if="firstTh" :colspan="headers.length+1" class="c-t-center">无数据</td>\
	                        <td v-else :colspan="headers.length" class="c-t-center">无数据</td>\
	                    </tr>\
	                </tbody>\
	            </table>\
@ -37,12 +38,13 @@
            	tabList:[{name:"各区",level:"4",lowlevel:"",isShow:true},{name:"社区",level:"3",lowlevel:"2",isShow:true},{name:"团队",level:"2",lowlevel:"1",isShow:true}],
            	tabActive:0,
            	headers:[{thead:"排名",param:"name"},{thead:"名称",param:"name",tip:""},{thead:"",param:"address",tip:""}],
            	firstTh:"排名",
			}
        },
        mounted: function(){
        	var vm=this
            EventBus.$on("render-table-data", function(arg){
            	
            	vm.firstTh=arg.firstTh||"排名"
            })
        },
        methods: {
@ -62,7 +64,10 @@
    					item.isShow=true
    				}
    			})
				vm.tabActive=showIndex
				vm.tabActive=showIndex				
        		if(!vm.hastopbar){
        			vm.headers[0].thead=vm.tabList[vm.tabActive].name
        		}
        	},
        	tabClick:function(index){
            	var vm = this;
@ -126,6 +131,9 @@
    					item.isShow=true
    				}
    			})
        		if(!vm.hastopbar){
        			vm.headers[0].thead=vm.tabList[vm.tabActive].name
        		}
          },
          back:function(){
          		//触发组件监听事件,去父页面请求新的数据