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.
1 lines
1.8 KiB
1 lines
1.8 KiB
import{d as C,r as t,G as b,aC as I,aB as L,c as _,b as i,aO as k,aA as E,a as d,q as f,e as v,H as V,t as B,h as g,f as S,g as z,F as N,I as R,Y as T,aF as D,ap as F,at as q,aq as M,_ as U}from"./index-e450010e.js";const j={class:"orgAllMothsTitle"},G=C({__name:"orguserage",props:{educationOrgId:{type:Number,default:309},orgListCont:{type:Object,default(){return{}}}},setup(m){const c=m,n=t(!1),e=t(309);let o=new Array;const h=t("年龄结构图"),s=t(),u=t(null),p=()=>{n.value=!0,k({id:e.value.toString()}).then(r=>{if(r.code==0&&(o.splice(0,o.length),r.data)){o=r.data;let l={tooltip:{trigger:"item"},toolbox:{x:"right",y:-5,feature:{saveAsImage:{}}},series:[{type:"pie",radius:["40%","60%"],center:["50%","58%"],data:o,label:{normal:{show:!0,formatter:"{data|{b}} {serie|{c}人}",padding:[0,15,0,0],rich:{data:{fontSize:14,color:"#666666"},serie:{fontSize:15,color:"#000000",fontweight:600,padding:[0,0,0,3]}}}}}]};s.value.clear(),s.value.setOption(l),n.value=!1}}).finally(()=>{})};return b(()=>{e.value=c.educationOrgId,s.value=I(L(u.value)),p(),window.addEventListener("resize",()=>{s.value.resize()})}),(r,l)=>{const x=D,y=M,A=F,w=E,O=q;return d(),_(w,{shadow:"always","body-style":{padding:"10px"},style:{"border-radius":"12px","margin-top":"10px",position:"relative",height:"100%"}},{default:i(()=>[f("div",j,[v(x,{class:"titleInfo"},{default:i(()=>[V(B(g(h)),1)]),_:1}),v(A,{modelValue:g(e),"onUpdate:modelValue":l[0]||(l[0]=a=>R(e)?e.value=a:null),placeholder:"请选择公司",onChange:p,style:{width:"240px"}},{default:i(()=>[(d(!0),S(N,null,z(c.orgListCont,a=>(d(),_(y,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),T(f("div",{ref_key:"darwOrgAgeChart",ref:u,"element-loading-text":"Loading...",class:"allOrgAxisCares"},null,512),[[O,g(n)]])]),_:1})}}});const Y=U(G,[["__scopeId","data-v-4d146794"]]);export{Y as default};
|
|
|