1import{a as Y,E as $}from"./ChEfpFOq.js";import{E as G,a as I}from"./Db4iJ10E.js";import{E as U}from"./BiAhcv33.js";import{E as P}from"./DQ5Qb-yt.js";import{E as W,a as M}from"./CWln1FLM.js";import{e as O,a4 as z,r as b,J as R,g as J,c as N,o as E,a as s,a0 as h,I as o,b as a,w as c,a1 as Q,a2 as q,Q as H,cV as K,d as j,t as X,U as Z}from"./GKt5HlR1.js";import"./CcHeFseF.js";import"./BETvPwuC.js";import"./BT5TdWUM.js";/* empty css *//* empty css */import"./DBQN2tT7.js";import"./l0sNRNKZ.js";import{u as C}from"./BXOFKR8V.js";import"./C34qLuNx.js";import{e as F,h as ee,i as A}from"./D76osoJ6.js";import{g as te,i as oe}from"./DOuRLccB.js";import{u as ae}from"./h4257qWA.js";import{_ as re}from"./DlAUqK2U.js";import"./By-ptc8i.js";import"./CyldZJmM.js";import"./JAUZZBS7.js";import"./DhzQam4H.js";import"./ChK-751r.js";import"./Df8q6p11.js";import"./DijwXHuY.js";import"./DAheOaXf.js";import"./BB_Ol6Sd.js";import"./Bh6H2ams.js";import"./BF4wDXF5.js";import"./CLqh14L_.js";import"./CSWfvKBj.js";import"./B98XR3wh.js";import"./CAeD7iaq.js";import"./CUdA5Dw-.js";import"./D6-XlEtG.js";import"./Dy2DvI76.js";import"./BjkZuVPy.js";import"./DaYl2lx0.js";import"./TUcORJUU.js";import"./l4JBcFbO.js";import"./DsA7fJ3m.js";import"./1YjYVPtt.js";import"./DgzkMVZg.js";const le={class:"flex-container mt-[10px] px-[15px] box pb-[50px] mx-[100px]"},se={class:"flex-item"},ne={class:"flex-item mt-[20px]"},ie={class:"overflow-hidden bg-[rgba(255,255,255,0.5)]"},pe=O({__name:"erji-nuclear",setup(ce){const{isFullscreen:n}=ae(),m=z({country:"",searchDate:""}),L=t=>{var p;const e=t.getFullYear();return!((p=B.value)!=null&&p.includes(e.toString()))},_=b([]),w=b(1),D=z({status:"1"}),g=b([]),B=b(""),k=()=>{w.value++,F(m).then(t=>{var e;_.value=(e=t.rows)!=null?e:[]}),A(D).then(t=>{var e;g.value=(e=t.data)!=null?e:[]})};R(()=>w.value,()=>{F({searchDate:m.searchDate}).then(t=>{var p;const e=(p=t.rows)!=null?p:[];V(e)})},{immediate:!0});const y=b(),S=async()=>{var t;try{const e=await F(m);_.value=(t=e.rows)!=null?t:[],V(_.value)}catch(e){console.error("è·åæ°æ®å¤±è´¥:",e)}},T=()=>{A(D).then(t=>{var e;g.value=(e=t.data)!=null?e:[]})};J(()=>{S(),T()});const V=t=>{if(!y.value)return;const e=t.reduce((r,u)=>r+u.suppliedTotalGwh,0),v=te(y.value)||oe(y.value),x={color:["#DE66AE","#EC8ACE","#E6BBF0","#9C95F4","#7F79E7","#95BEFF","#95BEFF","#38A1D8","#32C2E7","#64DEDF","#9EE4BE","#C4F76B","#EBF969","#FCD969","#FFA66E","#F6788B"],tooltip:{trigger:"item",textStyle:{fontSize:20},formatter:function(r){const u=r.value,d=r.name,l=r.percent,f=l!==null?l.toFixed(1)+"%":"N/A";return"".concat(d,"<br/>").concat(u,"MWe (").concat(f,")")}},legend:{show:!1},series:[{name:"容é",type:"pie",center:["50%","50%"],radius:["40%","70%"],data:t.map(r=>{const d=r.suppliedTotalGwh/e*100>=1;return{value:r.suppliedTotalGwh,name:C().getCountryChineseName(r.country),label:{show:d,formatter:function(l){var f;return"".concat(l.name).concat(((f=l.percent)!=null?f:0).toFixed(1),"%")},color:"#222",fontSize:14},labelLine:{show:d}}})}]};v.setOption(x)};return ee().then(t=>{var e;B.value=(e=t.msg)!=null?e:"2023,2024"}),k(),(t,e)=>{const p=$,v=Y,x=G,r=U,u=P,d=I,l=W,f=M;return E(),N("div",{class:Z([{"pl-[20px] pr-[17px] pb-[20px] pt-[10px]":!o(n)},"box"]),style:h({transform:(o(n),"scale(1)")})},[s("div",{class:"bodybg",style:h({height:o(n)?"910px":"720px"})},[s("div",{class:"topbg_industry mx-auto w-full flex justify-center relative",style:h({height:o(n)?"75px":"55px"})},[s("h1",{class:"ys_font mt-[2px] text-[30px] text-white tracking-[10px]",style:h({"margin-top":o(n)?"6px":"","font-size":o(n)?"35px":""})}," ä¸çæ ¸çµ ",4),s("div",{class:"backbg absolute right-[30px] top-[10px]",style:h({top:o(n)?"15px":""})},[s("a",{class:"text-[#fff] hover:color-[#318AD9]",onClick:e[0]||(e[0]=i=>t.$router.back())},"è¿å")],4)],4),s("div",le,[s("div",se,[e[4]||(e[4]=s("h1",{class:"ys_font mt-[10px] text-[22px] text-[#4F5D69] font-500 text-center"}," å彿 ¸è½åçµå å
¨çæ ¸è½åçµæ¯ä¾ ",-1)),a(d,{inline:!0,class:"flex justify-center demo-form-inline mt-[10px] border border-[#b6e3f9] bg-[rgba(217,242,255,0.4)] pt-[5px]"},{default:c(()=>[a(x,{label:"å½å®¶åå°åº"},{default:c(()=>[a(v,{modelValue:m.country,"onUpdate:modelValue":e[1]||(e[1]=i=>m.country=i),placeholder:"éæ©å½å®¶åå°åº",size:"small",filterable:"",clearable:""},{default:c(()=>[(E(!0),N(Q,null,q(o(g),i=>(E(),H(p,{label:("useCountry"in t?t.useCountry:o(C))().getCountryChineseName(i.value),value:i.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1}),a(x,{label:"年度"},{default:c(()=>[a(r,{modelValue:m.searchDate,"onUpdate:modelValue":e[2]||(e[2]=i=>m.searchDate=i),type:"year","value-format":"YYYY",placeholder:"éæ©å¹´åº¦",clearable:"",class:"custom-date-picker","disabled-date":L},null,8,["modelValue"])]),_:1}),a(x,null,{default:c(()=>[a(u,{type:"primary",icon:o(K),class:"custom-height-btn",onClick:k},{default:c(()=>e[3]||(e[3]=[j(" æ¥è¯¢ ")])),_:1,__:[3]},8,["icon"])]),_:1})]),_:1}),a(f,{data:o(_),stripe:"",height:"210",style:h({"font-size":o(n)?"15px":"16px",height:o(n)?"450px":"210px"})},{default:c(()=>[a(l,{type:"index",width:"70",label:"åºå·",align:"center"}),a(l,{prop:"country",label:"å½å®¶åå°åº","min-width":"80",sortable:""},{default:c(({row:i})=>[j(X(("useCountry"in t?t.useCountry:o(C))().getCountryChineseName(i.country)),1)]),_:1}),a(l,{prop:"reactors",label:"æºç»æ°é(å°)","min-width":"110",sortable:""}),a(l,{prop:"suppliedTotalGwh",label:"æ ¸è½åçµé(GW.h)","min-width":"150",sortable:""}),a(l,{prop:"gwhBl",label:"å æ¯(%)",sortable:""})]),_:1},8,["data","style"])]),s("div",ne,[s("div",ie,[s("div",{ref_key:"fdzb2Ref",ref:y,class:"flex justify-center p-[10px] pt-[20px]",style:{height:"280px"}},null,512)])])])],4)],6)}}}),tt=re(pe,[["__scopeId","data-v-79cf4fb4"]]);export{tt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.