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 as m,a4 as D,$ as B,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 u}from"./index-a4d79c5e.js";import{j as O}from"./index-d0b57c12.js";const N=k({__name:"month",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=["#0090FF","#36CE9E","#FFC005","#FF515A","#8B5CFF","#00CA69"],s=[{name:"内科",value1:94,value2:91},{name:"外科",value1:93,value2:90},{name:"儿科",value1:95,value2:92},{name:"妇产科",value1:92,value2:89},{name:"急诊科",value1:91,value2:88},{name:"骨科",value1:93,value2:91},{name:"眼科",value1:94,value2:90},{name:"口腔科",value1:92,value2:89}],n=s.map(o=>o.name),f=s.map(o=>o.value1),p=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:80,max:100,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 u(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:f},{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 u(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:p}]};i&&l.setOption(i)},x=()=>{const c=g.value,l=C(c),e=[{name:"内科",value:45},{name:"外科",value:38},{name:"儿科",value:25},{name:"妇产科",value:32},{name:"急诊科",value:28},{name:"骨科",value:22},{name:"眼科",value:18},{name:"口腔科",value:20}],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 u(0,0,0,1,[{offset:0,color:"#83bff6"},{offset:.5,color:"#188df0"},{offset:1,color:"#188df0"}])},emphasis:{itemStyle:{color:new u(0,0,0,1,[{offset:0,color:"#2378f7"},{offset:.7,color:"#2378f7"},{offset:1,color:"#83bff6"}])}}}]};s&&l.setOption(s)};return L(()=>{y(),x()}),(c,l)=>{const e=D,s=B,n=T,f=E,p=I,r=O,i=R,o=V;return z(),A(o,{fluid:!0,style:{padding:"20px"}},{default:t(()=>[a(p,{space:10},{default:t(()=>[a(n,{md:24},{default:t(()=>[a(i,null,{default:t(()=>[a(r,{style:{"margin-top":"20px"}},{default:t(()=>[a(p,null,{default:t(()=>[a(n,{md:5},{default:t(()=>[a(s,{label:"月度:","label-width":"80"},{default:t(()=>[a(e,{type:"yearmonth",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(f,{type:"primary",onClick:S},{default:t(()=>l[1]||(l[1]=[w("查询")])),_:1}),a(f,{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]=[m("div",{style:{"font-size":"20px","font-weight":"600",color:"#333"}},"月度考评填报 - 分数统计",-1)])),default:t(()=>[m("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]=[m("div",{style:{"font-size":"20px","font-weight":"600",color:"#333"}},"月度考评报表 - 已参评人数统计",-1)])),default:t(()=>[m("div",{id:"barChart",ref_key:"barChartRef",ref:g},null,512)]),_:1})]),_:1})]),_:1})]),_:1})}}});const J=F(N,[["__scopeId","data-v-e41c67e3"]]);export{J as default};
|