16 lines
5.9 KiB
JavaScript
16 lines
5.9 KiB
JavaScript
import{d as k,a as v,o as L,b as z,c as A,w as t,e as a,A as w,f,a4 as B,$ as D,a2 as E,_ as F}from"./index-7b3f5fdc.js";import{c as V}from"./index-a832a56d.js";import{V as R}from"./index-a513db85.js";import{y as T,f as I}from"./index-4ab1e1d9.js";/* empty css */import{i as C,L as m}from"./index-a4d79c5e.js";import{j as O}from"./index-d0b57c12.js";const N=k({__name:"day",setup(G){const h=v(),g=v(),d=v(""),S=()=>{console.log("查询日期:",d.value),y(),x()},$=()=>{d.value="",y(),x()},y=()=>{const c=h.value,l=C(c),e=["#6236FF","#02C2E4","#FFB100","#1CC6A1","#7B61FF","#00B4D8"],s=[{name:"内科",value1:88,value2:85},{name:"外科",value1:87,value2:84},{name:"儿科",value1:89,value2:86},{name:"妇产科",value1:86,value2:83},{name:"急诊科",value1:85,value2:82},{name:"骨科",value1:87,value2:85},{name:"眼科",value1:88,value2:84},{name:"口腔科",value1:86,value2:83}],n=s.map(o=>o.name),p=s.map(o=>o.value1),u=s.map(o=>o.value2),r=(o,_)=>{let b="";return/^#[\da-f]{6}$/i.test(o)&&(b=`rgba(${parseInt("0x"+o.slice(1,3))},${parseInt("0x"+o.slice(3,5))},${parseInt("0x"+o.slice(5,7))},${_})`),b},i={color:e,legend:{right:10,top:10,data:["合计自评平均分","合计科室平均分"]},tooltip:{trigger:"axis",formatter:function(o){return`<div style="font-weight: 600;font-size: 14px;color: #333;margin-bottom: 8px">
|
|
${o[0].name}
|
|
</div>
|
|
<div style="color: #666;font-size: 13px;line-height: 24px">
|
|
<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${e[0]};"></span>
|
|
合计自评平均分:
|
|
<span style="color:${e[0]};font-weight:700;font-size: 14px">${o[0].value}</span>
|
|
分
|
|
</div>
|
|
<div style="color: #666;font-size: 13px;line-height: 24px">
|
|
<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${e[1]};"></span>
|
|
合计科室平均分:
|
|
<span style="color:${e[1]};font-weight:700;font-size: 14px">${o[1].value}</span>
|
|
分
|
|
</div>`},extraCssText:"background: #fff; border-radius: 4px; padding: 8px 12px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);color: #333;",axisPointer:{type:"line",lineStyle:{color:"#ccc",width:1,type:"dashed"}}},grid:{x:"50px",y:"50px",x2:"50px",y2:"50px"},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{formatter:"{value}",textStyle:{color:"#333"}},axisLine:{lineStyle:{color:"#D9D9D9"}},data:n}],yAxis:[{type:"value",min:70,max:90,axisLabel:{textStyle:{color:"#666"}},nameTextStyle:{color:"#666",fontSize:12,lineHeight:40},splitLine:{lineStyle:{type:"dashed",color:"#E9E9E9"}},axisLine:{show:!1},axisTick:{show:!1}}],series:[{name:"合计自评平均分",type:"line",smooth:!0,symbolSize:8,zlevel:3,lineStyle:{normal:{color:e[0],shadowBlur:3,shadowColor:r(e[0],.5),shadowOffsetY:8}},areaStyle:{normal:{color:new m(0,0,0,1,[{offset:0,color:r(e[0],.3)},{offset:1,color:r(e[0],.1)}],!1),shadowColor:r(e[0],.1),shadowBlur:10}},data:p},{name:"合计科室平均分",type:"line",smooth:!0,symbolSize:8,zlevel:3,lineStyle:{normal:{color:e[1],shadowBlur:3,shadowColor:r(e[1],.5),shadowOffsetY:8}},areaStyle:{normal:{color:new m(0,0,0,1,[{offset:0,color:r(e[1],.3)},{offset:1,color:r(e[1],.1)}],!1),shadowColor:r(e[1],.1),shadowBlur:10}},data:u}]};i&&l.setOption(i)},x=()=>{const c=g.value,l=C(c),e=[{name:"内科",value:25},{name:"外科",value:22},{name:"儿科",value:18},{name:"妇产科",value:20},{name:"急诊科",value:15},{name:"骨科",value:12},{name:"眼科",value:10},{name:"口腔科",value:13}],s={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(n){return`${n[0].name}<br/>已参评人数:${n[0].value}人`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:e.map(n=>n.name),axisTick:{alignWithLabel:!0},axisLabel:{color:"#333"}}],yAxis:[{type:"value",name:"人数",axisLabel:{color:"#333"},splitLine:{lineStyle:{type:"dashed",color:"#E9E9E9"}}}],series:[{name:"已参评人数",type:"bar",barWidth:"60%",data:e.map(n=>n.value),itemStyle:{color:new m(0,0,0,1,[{offset:0,color:"#6236FF"},{offset:.5,color:"#02C2E4"},{offset:1,color:"#1CC6A1"}])},emphasis:{itemStyle:{color:new m(0,0,0,1,[{offset:0,color:"#5020E0"},{offset:.7,color:"#00A3C4"},{offset:1,color:"#15A589"}])}}}]};s&&l.setOption(s)};return L(()=>{y(),x()}),(c,l)=>{const e=B,s=D,n=T,p=E,u=I,r=O,i=R,o=V;return z(),A(o,{fluid:!0,style:{padding:"20px"}},{default:t(()=>[a(u,{space:10},{default:t(()=>[a(n,{md:24},{default:t(()=>[a(i,null,{default:t(()=>[a(r,{style:{"margin-top":"20px"}},{default:t(()=>[a(u,null,{default:t(()=>[a(n,{md:5},{default:t(()=>[a(s,{label:"日期:","label-width":"80"},{default:t(()=>[a(e,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=_=>d.value=_),placeholder:"选择日期"},null,8,["modelValue"])]),_:1})]),_:1}),a(n,{md:4},{default:t(()=>[a(s,{"label-width":"0"},{default:t(()=>[a(p,{type:"primary",onClick:S},{default:t(()=>l[1]||(l[1]=[w("查询")])),_:1}),a(p,{onClick:$,style:{"margin-left":"10px"}},{default:t(()=>l[2]||(l[2]=[w("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),a(n,{md:24},{default:t(()=>[a(i,null,{title:t(()=>l[3]||(l[3]=[f("div",{style:{"font-size":"20px","font-weight":"600",color:"#333"}},"日常考评填报 - 分数统计",-1)])),default:t(()=>[f("div",{id:"main",ref_key:"mainRef",ref:h},null,512)]),_:1})]),_:1}),a(n,{md:24},{default:t(()=>[a(i,null,{title:t(()=>l[4]||(l[4]=[f("div",{style:{"font-size":"20px","font-weight":"600",color:"#333"}},"日常考评报表 - 已参评人数统计",-1)])),default:t(()=>[f("div",{id:"barChart",ref_key:"barChartRef",ref:g},null,512)]),_:1})]),_:1})]),_:1})]),_:1})}}});const J=F(N,[["__scopeId","data-v-43e1d1ee"]]);export{J as default};
|