You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
3.2 KiB
2 lines
3.2 KiB
|
4 months ago
|
import{d as A,r as n,ax as x,G as k,aC as w,aB as S,c as _,b as l,aH as z,aA as E,a as c,q as m,e as v,H as B,f as O,g as D,F as I,h as L,I as V,aF as N,ap as T,aq as R,_ as q}from"./index-e450010e.js";const H={class:"orgAllMothsTitle"},M=A({__name:"orgeducation",props:{educationOrgId:{type:Number,default:309},orgListCont:{type:Object,default(){return{}}}},setup(g){const i=g,u=n(!1),t=n(309),h=new Array,r=new Array,s=n(),d=n(null),F=x(["#0093FA","#4771FE","#0042FA","#A5F0FC","#FC90FD","#DEFB54","#F7AD00","#FA5078","#4BF9C1","#46CCA0"]);function f(){z({id:t.value}).then(({data:e})=>{r.splice(0,r.length),e&&e.length>0&&e.forEach((a,p)=>{h.push(a.education),r.push({name:a.education,value:a.percentage})})}).finally(()=>{s.value.clear(),s.value.setOption(b),u.value=!1,window.addEventListener("resize",()=>{s.value.resize()})})}const b={tooltip:{trigger:"item"},toolbox:{x:"right",y:-5,feature:{saveAsImage:{}}},color:F,series:[{type:"pie",data:r,roseType:"radius",center:["50%","50%"],radius:"60%",itemStyle:{borderRadius:5},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},label:{normal:{show:!0,rich:{data:{fontSize:14,color:"#666666"},serie:{fontSize:15,color:"#000000",fontweight:600,padding:[0,0,0,3]},rect1:{color:"#0093FA",fontSize:25},rect2:{color:"#4771FE",fontSize:25},rect3:{color:"#0042FA",fontSize:25},rect4:{color:"#A5F0FC",fontSize:25},rect5:{color:"#FC90FD",fontSize:25},rect6:{color:"#DEFB54",fontSize:25},rect7:{color:"#F7AD00",fontSize:25},rect8:{color:"#FA5078",fontSize:25},rect9:{color:"#4BF9C1",fontSize:25},rect10:{color:"#46CCA0",fontSize:25}},formatter:function(e){let a="";switch(e.name){case"初中及以下":a=`{rect1|●} {data|${e.name}} {serie|${e.value}人}`;break;case"中专":a=`{rect2|●} {data|${e.name}} {serie|${e.value}人}`;break;case"高中":a=`{rect3|●} {data|${e.name}} {serie|${e.value}人}`;break;case"中技":a=`{rect4|●} {data|${e.name}} {serie|${e.value}人}`;break;case"高技":a=`{rect5|●} {data|${e.name}} {serie|${e.value}人}`;break;case"大学专科":a=`{rect6|●} {data|${e.name}} {serie|${e.value}人}`;break;case"函数本科":a=`{rect7|●} {data|${e.name}} {serie|${e.value}人}`;break;case"大学本科":a=`{rect8|●} {data|${e.name}} {serie|${e.value}人}`;break;case"硕士研究生":a=`{rect9|●} {data|${e.name}} {serie|${e.value}人}`;break;case"博士研究生":a=`{rect10|●} {data|${e.name}} {serie|${e.value}人}`;break}return a}}},labelLine:{show:!1,length:-5}}]};return k(()=>{u.value=!0,t.value=i.educationOrgId,s.value=w(S(d.value)),f()}),(e,a)=>{const p=N,C=R,$=T,y=E;return c(),_(y,{shadow:"always","body-style":{padding:"10px"},style:{"border-radius":"12px","margin-top":"10px",position:"relative",height:"100%"}},{default:l(()=>[m("div",H,[v(p,{class:"titleInfo"},{default:l(()=>[B("学历占比")]),_:1}),v($,{modelValue:L(t),"onUpdate:modelValue":a[0]||(a[0]=o=>V(t)?t.value=o:null),placeholder:"请选择公司",onChange:f,style:{width:"230px"}},{default:l(()=>[(c(!0),O(I,null,D(i.orgListCont,o=>(c(),_(C,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),m("div",{ref_key:"educationChart",ref:d,class:"allOrgAxisCares"},null,512)]),_:1})}}});const j=q(M,[["__scopeId","data-v-a6575102"]]);export{j as default};
|