3 lines
21 KiB
JavaScript
3 lines
21 KiB
JavaScript
import{i as p,L as g}from"./index-c2d8894b.js";import{r as d,d as c,D as m,e as u,f as h}from"./index-c3050129.js";import"./dialogMap-26e2e8bc.js";const _=""+new URL("ylimg11-1b98cc15.png",import.meta.url).href,v=""+new URL("ylimg5-84417f68.png",import.meta.url).href,C=""+new URL("yljg-ced52d0e.gif",import.meta.url).href,F=""+new URL("ylimg12-d12267e5.png",import.meta.url).href,A=""+new URL("ylimg10-59cd24b0.png",import.meta.url).href,k=""+new URL("ylimg8-88ebcbd5.png",import.meta.url).href,M=""+new URL("turn-54c18049.gif",import.meta.url).href,O=""+new URL("ylimg1-733ae764.png",import.meta.url).href,T=""+new URL("ylimg7-cd88384a.png",import.meta.url).href,W={__name:"eP2",props:{list1:{type:Array,default:()=>[]},list2:{type:Array,default:()=>[]},year:{type:Array,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list1:[],list2:[],year:[],option:{},bg:[]}),a=()=>{t.option={tooltip:{trigger:"axis",padding:[20,10,20,10],formatter:"{b0}<br />{a1}:{c1} <br />{a2}:{c2}"},legend:{data:["90-98补贴人次","99以上补贴人次"],top:"5%",right:"25%",textStyle:{fontSize:16,color:"#ffffff"}},grid:{top:"25%",left:"1%",right:"10%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:t.year,axisLabel:{textStyle:{color:"#ffffff",fontSize:16}}},yAxis:[{type:"value",name:"90-98补贴人次",splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*1.2)/50)*50},nameTextStyle:{fontSize:14},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{type:"value",name:"99以上补贴人次",splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*1.6)/50)*50},nameTextStyle:{fontSize:14},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}}],series:[{name:"背景",type:"bar",data:t.bg,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{yAxisIndex:0,name:"90-98补贴人次",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#E8FF00",borderWidth:1,color:"#E8FF00"},label:{show:!0,color:"#ffffff",formatter:function(e){return e.value}},data:t.list1},{yAxisIndex:1,name:"99以上补贴人次",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#2468FF",borderWidth:1,color:"#2468FF"},label:{show:!0,color:"#ffffff",formatter:function(e){return e.value}},data:t.list2}]}},l=()=>{var e=p(r.value);e.setOption(t.option)};return m(()=>{setTimeout(()=>{t.list1=o.list1,t.list2=o.list2,t.year=o.year,t.year.forEach(()=>{t.bg.push(0)}),a(),l()},600)}),(e,f)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"100%",height:"260px"}},null,512))}},I={__name:"eP2_2",props:{list1:{type:Array,default:()=>[]},list2:{type:Array,default:()=>[]},year:{type:Array,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list1:[],list2:[],year:[],option:{},bg:[]}),a=()=>{t.option={tooltip:{trigger:"axis",padding:[20,10,20,10],formatter:"{b0}<br />{a1}:{c1} <br />{a2}:{c2}"},legend:{data:["90-98补贴金额","99以上补贴金额"],top:"3%",right:"25%",textStyle:{fontSize:16,color:"#ffffff"}},grid:{top:"25%",left:"1%",right:"10%",bottom:"0%",containLabel:!0},xAxis:{type:"category",data:t.year,axisLabel:{textStyle:{color:"#ffffff",fontSize:16}}},yAxis:[{name:"90-98补贴金额",type:"value",nameTextStyle:{fontSize:14},splitLine:{show:!0,lineStyle:{color:"rgba(226, 226, 226, 0.3)",width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{name:"99以上补贴金额",type:"value",min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*1.5)/50)*50},nameTextStyle:{fontSize:14},splitLine:{show:!1,lineStyle:{color:"rgba(226, 226, 226, 0.3)",width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}}],series:[{name:"背景",type:"bar",data:t.bg,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",fontSize:16}},{yAxisIndex:0,name:"90-98补贴金额",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#E8FF00",borderWidth:1,color:"#E8FF00"},label:{show:!0,color:"#ffffff",position:"top",formatter:function(e){return e.value}},data:t.list1},{yAxisIndex:1,name:"99以上补贴金额",type:"line",stack:"Total",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#2468FF",borderWidth:1,color:"#2468FF"},label:{show:!0,color:"#ffffff",position:"bottom",formatter:function(e){return e.value}},data:t.list2}]}},l=()=>{r.value&&p(r.value).setOption(t.option)};return m(()=>{setTimeout(()=>{t.list1=o.list1,t.list2=o.list2,t.year=o.year,t.year.forEach(()=>{t.bg.push(0)}),a(),l()},600)}),(e,f)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"100%",height:"260px"}},null,512))}},E={__name:"eP3",props:{list1:{type:Array,default:()=>[]},list2:{type:Array,default:()=>[]},year:{type:Array,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list1:[],list2:[],year:[],option:{},bg:[]}),a=()=>{t.option={tooltip:{trigger:"axis",padding:[20,10,20,10],formatter:"{b0}<br />{a1}:{c1} <br />{a2}:{c2} "},legend:{data:["特困发放人次","低保发放人次"],top:"5%",right:"28%",textStyle:{fontSize:16,color:"#ffffff"}},grid:{top:"25%",left:"1%",right:"10%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:t.year,axisLabel:{textStyle:{color:"#ffffff",fontSize:16}}},yAxis:[{name:"特困发放人次",type:"value",min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*2)/50)*50},nameTextStyle:{fontSize:14},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{name:"低保发放人次",type:"value",min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*1.3)/50)*50},nameTextStyle:{fontSize:14},splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}}],series:[{name:"背景",type:"bar",data:t.bg,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{yAxisIndex:0,name:"特困发放人次",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#00FCFF",borderWidth:1,color:"#00FCFF"},label:{show:!0,color:"#ffffff",formatter:function(e){return e.value}},data:t.list1},{yAxisIndex:1,name:"低保发放人次",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#2468FF",borderWidth:1,color:"#2468FF"},label:{show:!0,color:"#ffffff",formatter:function(e){return e.value}},data:t.list2}]}},l=()=>{var e=p(r.value);e.setOption(t.option)};return m(()=>{setTimeout(()=>{t.list1=o.list1,t.list2=o.list2,t.year=o.year,t.year.forEach(()=>{t.bg.push(0)}),a(),l()},600)}),(e,f)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"100%",height:"285px"}},null,512))}},B={__name:"eP3_2",props:{list1:{type:Array,default:()=>[]},list2:{type:Array,default:()=>[]},year:{type:Array,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list1:[],list2:[],year:[],option:{},bg:[]}),a=()=>{t.option={tooltip:{trigger:"axis",padding:[20,10,20,10],formatter:"{b0}<br />{a1}:{c1} <br />{a2}:{c2} "},legend:{data:["特困补助金额","低保补助金额"],top:"5%",right:"28%",textStyle:{fontSize:16,color:"#ffffff"}},grid:{top:"25%",left:"1%",right:"10%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:t.year,axisLabel:{textStyle:{color:"#ffffff",fontSize:16}}},yAxis:[{name:"特困补助金额",type:"value",min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*2)/50)*50},nameTextStyle:{fontSize:14},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{name:"低保补助金额",type:"value",min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*1.3)/50)*50},nameTextStyle:{fontSize:14},splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}}],series:[{name:"背景",type:"bar",data:t.bg,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{yAxisIndex:0,name:"特困补助金额",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#00FCFF",borderWidth:1,color:"#00FCFF"},label:{show:!0,color:"#ffffff",position:"bottom",formatter:function(e){return e.value}},data:t.list1},{yAxisIndex:1,name:"低保补助金额",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#2468FF",borderWidth:1,color:"#2468FF"},label:{show:!0,color:"#ffffff",formatter:function(e){return e.value}},data:t.list2}]}},l=()=>{r.value&&p(r.value).setOption(t.option)};return m(()=>{setTimeout(()=>{t.list1=o.list1,t.list2=o.list2,t.year=o.year,t.year.forEach(()=>{t.bg.push(0)}),a(),l()},600)}),(e,f)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"100%",height:"285px"}},null,512))}},$={__name:"pie2",props:{list1:{type:Array,default:()=>[]},list2:{type:Array,default:()=>[]},year:{type:Array,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list1:[],list2:[],year:[],option:{},bg:[]}),a=()=>{t.option={tooltip:{trigger:"axis",padding:[20,10,20,10],formatter:"{b0}<br />{a1}:{c1} <br />{a2}:{c2} "},legend:{data:["职工养老保险金额","城乡养老保险金额"],top:"3%",right:"25%",textStyle:{fontSize:16,color:"#ffffff"}},grid:{top:"25%",left:"1%",right:"10%",bottom:"0%",containLabel:!0},xAxis:{type:"category",data:t.year,axisLabel:{textStyle:{color:"#ffffff",fontSize:16}}},yAxis:[{name:"职工养老保险金额",type:"value",nameTextStyle:{fontSize:14},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{name:"城乡养老保险金额",type:"value",min:0,max:function(e){return Math.ceil(Math.max(e.max,e.max*1.4)/50)*50},nameTextStyle:{fontSize:14},splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}}],series:[{name:"背景",type:"bar",data:t.bg,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{yAxisIndex:0,name:"职工养老保险金额",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#00FCFF",borderWidth:1,color:"#00FCFF"},label:{show:!0,color:"#ffffff",position:"bottom",formatter:function(e){return e.value}},data:t.list1},{yAxisIndex:1,name:"城乡养老保险金额",type:"line",symbol:"emptyCircle",symbolSize:10,itemStyle:{borderColor:"#2468FF",borderWidth:1,color:"#2468FF"},label:{show:!0,color:"#ffffff",position:"bottom",formatter:function(e){return e.value}},data:t.list2}]}},l=()=>{r.value&&p(r.value).setOption(t.option)};return m(()=>{setTimeout(()=>{t.list1=o.list1,t.list2=o.list2,t.year=o.year,t.year.forEach(()=>{t.bg.push(0)}),a(),l()},600)}),(e,f)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"100%",height:"260px"}},null,512))}},P={__name:"pie3d",props:{list:{type:Object,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list:[],legendData:[],pieData:[{name:"61-70岁",value:""},{name:"71-80岁",value:""},{name:"81-90岁",value:""},{name:"91-100岁",value:""},{name:"100岁以上",value:""}],option:{}}),a=["#FFE35F","#0081FF","#8ABEDB","#25B9C8","#30EB92","rgba(69, 244, 245)","rgba(7, 166, 255)","rgba(255, 208, 118)","rgba(109, 168, 198)","rgba(255, 255, 255)"],l=c([{name:"60-69岁",value:0},{name:"70-79岁",value:0},{name:"80-89岁",value:0},{name:"90-99岁",value:0},{name:"100岁以上",value:0}]),e=()=>{t.option={color:a,tooltip:{show:!0,trigger:"item",textStyle:{color:"#fff"},backgroundColor:"rgba(16, 32, 40, 0.88)",borderRadius:4,borderColor:"#20749e",formatter:n=>`${n.name}:${n.percent}%`},toolbox:{show:!1},series:[{name:"",type:"pie",radius:["50%","65%"],center:["50%","50%"],emphasis:{scale:!0},label:{show:!1,formatter:n=>{if(n.name!=="")return[`{c|${n.percent}%}`,`{b|${n.name}}`].join(`
|
|
`)}},data:f}]}};let f=[];const i=()=>{l.forEach(y=>{y.value=Number(y.value)});const S=l.reduce((y,x)=>y+x.value,0)*.02;t.legendData=l.map(y=>y.name),l.forEach((y,x)=>{f.push({value:y.value,name:y.name,itemStyle:{borderWidth:1,shadowBlur:2,borderColor:a[x],shadowColor:a[x]}},{silent:!0,name:"gap",value:S,itemStyle:{label:{show:!1},labelLine:{show:!1},color:"transparent"}})})},b=()=>{var n=p(r.value);n.setOption(t.option),window.addEventListener("resize",()=>{n.resize()})};return m(()=>{setTimeout(()=>{t.list=o.list,l[0].value=t.list.nl6069,l[1].value=t.list.nl7079,l[2].value=t.list.nl8089,l[3].value=t.list.nl9099,l[4].value=t.list.nl100,i(),e(),b()},600)}),(n,S)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"40%",height:"200px"}},null,512))}},R={__name:"ylJHSY",props:{list1:{type:Array,default:()=>[]},list2:{type:Array,default:()=>[]},year:{type:Array,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list1:[],list2:[],year:[],option:{}}),a=[{type:"linear",x:0,x2:0,y:0,y2:1,colorStops:[{offset:0,color:"rgba(142, 187, 255, 1)"},{offset:.5,color:"rgba(142, 187, 255, 0.5)"},{offset:1,color:"rgba(142, 187, 255, 0.20)"}]}],l=()=>{t.option={color:a,calculable:!0,tooltip:{trigger:"axis",formatter:"{b0}<br/> {a0}:{c0}<br/>{a1}:{c1}",axisPointer:{}},legend:{data:["计划生育补贴人数","计划生育补贴金额"],top:"3%",textStyle:{fontSize:16,color:"#ffffff"}},grid:{left:"6%",right:"9%",bottom:"2%",containLabel:!0,color:"#ffffff"},xAxis:[{type:"category",axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisTick:{show:!1},data:t.year},{type:"category",show:!1,data:t.year}],yAxis:[{type:"value",scale:!0,name:"计划生育补贴人数",splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.3)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{type:"value",scale:!0,min:0,name:"计划生育补贴金额/万元",splitLine:{show:!1,lineStyle:{color:"rgba(226, 226, 226, 0.3)",width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{type:"value",max:100,splitLine:{show:!1,lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},axisLine:{show:!1,lineStyle:{type:"dotted"}},axisLabel:{show:!1,fontSize:16,color:"#ffffff",lineHeight:19,fontFamily:"MicrosoftYaHei"}}],series:[{z:1,yAxisIndex:0,name:"计划生育补贴人数",data:t.list1,barWidth:20,type:"bar",itemStyle:{color:{type:"linear",x:0,x2:1,y:0,y2:0,colorStops:[{offset:0,color:"rgba(142, 187, 255, .7)"},{offset:.5,color:"rgba(142, 187, 255, .7)"},{offset:.5,color:"rgba(142, 187, 255, .3)"},{offset:1,color:"rgba(142, 187, 255, .5)"}]}},label:{show:!0,position:"inside",color:"#ffffff",formatter:function(f){return f.value}}},{yAxisIndex:1,name:"计划生育补贴金额",data:t.list2,type:"line",label:{show:!0,position:"top",color:"#ffffff",formatter:function(f){return f.value}},itemStyle:{borderColor:"#00FCFF",borderWidth:1,color:"#00FCFF"}},{xAxisIndex:1,yAxisIndex:2,itemStyle:{color:"rgba(180, 180, 180, 0.2)"},data:t.list2.map(()=>100),barWidth:40,emphasis:{itemStyle:{color:{type:"linear",x:0,x2:0,y:0,y2:1,colorStops:[{offset:0,color:"rgba(64, 247, 176, 0.25)"},{offset:1,color:"rgba(17, 34, 64, 0.25)"}]}}},type:"bar"},{z:1,name:"上部1",type:"pictorialBar",symbolPosition:"end",data:t.list1,symbol:"diamond",symbolOffset:["0%","-50%"],symbolSize:[22,15],itemStyle:{borderColor:"#2fffa4",color:"rgba(142, 187, 255, 1)"}}]}},e=()=>{var f=p(r.value);f.setOption(t.option)};return m(()=>{setTimeout(()=>{t.list1=o.list1,t.list2=o.list2,t.year=o.year,l(),e()},600)}),(f,i)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"100%",height:"430px"}},null,512))}},D={__name:"ylSMFW",props:{list:{type:Object,default:()=>[]}},setup(s){const o=s,r=d(),t=c({list:[],list1:[],list2:[],day:[],option:{},initialLegendData:["上门服务时长","上门服务次数"]}),a=[{type:"linear",x:0,x2:0,y:0,y2:1,colorStops:[{offset:0,color:"rgba(142, 187, 255, 1)"},{offset:.5,color:"rgba(142, 187, 255, 0.5)"},{offset:1,color:"rgba(142, 187, 255, 0.20)"}]}],l=()=>{t.option={color:a,tooltip:{trigger:"axis",formatter:"{b0}<br/> {a0}:{c0}<br/>{a1}:{c1}",axisPointer:{}},legend:{data:t.initialLegendData,textStyle:{fontSize:16,color:"#ffffff"}},grid:{top:"18%",left:"3%",right:"6%",bottom:"5%",containLabel:!0,color:"#ffffff",fontSize:16},calculable:!0,xAxis:[{type:"category",axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisTick:{show:!1},data:t.day},{type:"category",show:!1,data:t.day}],yAxis:[{type:"value",scale:!0,name:"时长/小时",splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.3)",fontSize:16,width:1}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{type:"value",scale:!0,name:"次数/次",min:0,splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,fontSize:16}},axisLabel:{textStyle:{color:"#ffffff",fontSize:16}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:16,width:1,type:"solid"}}},{type:"value",max:100,splitLine:{show:!1,lineStyle:{type:"solid",color:"rgba(255, 255, 255, 0.3)"}},axisLine:{show:!1,lineStyle:{type:"dotted"}},axisLabel:{show:!1,fontSize:16,color:"#ffffff",lineHeight:19,fontFamily:"MicrosoftYaHei"}}],series:[{z:1,yAxisIndex:0,name:"上门服务时长",data:t.list1,barWidth:20,type:"bar",itemStyle:{color:{type:"linear",x:0,x2:1,y:0,y2:0,colorStops:[{offset:0,color:"rgba(142, 187, 255, .7)"},{offset:.5,color:"rgba(142, 187, 255, .7)"},{offset:.5,color:"rgba(142, 187, 255, .3)"},{offset:1,color:"rgba(142, 187, 255, .5)"}]}},label:{show:!0,color:"#ffffff",formatter:function(i){return i.value}}},{yAxisIndex:1,name:"上门服务次数",data:t.list2,type:"line",label:{show:!0,position:"top",color:"#ffffff",formatter:function(i){return i.value}},itemStyle:{borderColor:"#00FCFF",borderWidth:1,color:"#00FCFF"}},{xAxisIndex:1,yAxisIndex:2,itemStyle:{color:"rgba(180, 180, 180, 0.2)"},data:t.list1.map(()=>100),barWidth:40,emphasis:{itemStyle:{color:{type:"linear",x:0,x2:0,y:0,y2:1,colorStops:[{offset:0,color:"rgba(64, 247, 176, 0.25)"},{offset:1,color:"rgba(17, 34, 64, 0.25)"}]}}},type:"bar"},{z:1,name:"上部1",type:"pictorialBar",symbolPosition:"end",data:t.list1,symbol:"diamond",symbolOffset:["0%","-50%"],symbolSize:[22,15],itemStyle:{borderColor:"#2fffa4",color:"rgba(142, 187, 255, 1)"}}]}},e=()=>{var i=p(r.value);i.setOption(t.option)},f=()=>{t.list1=[],t.list2=[],t.list.length!==0&&t.list.data.forEach(i=>{t.list1.push(i.sc),t.list2.push(i.fwcs)})};return m(()=>{setTimeout(()=>{t.list=o.list,t.day=o.list.day,f(),l(),e()},600)}),(i,b)=>(u(),h("div",{ref_key:"chart",ref:r,style:{width:"340px",height:"240px"}},null,512))}},U={__name:"ylXZZC",props:{list1:{type:Array,default:()=>[]},list2:{type:Array,default:()=>[]}},emits:["village"],setup(s,{emit:o}){const r=s,t=d(null),a=c({list1:[],list2:[],option:{}});let l=!0;const e=()=>{a.option={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{top:"0%",left:"3%",right:"8%",bottom:"3%",containLabel:!0,color:"#ffffff",fontSize:14},dataZoom:[{show:l,type:"inside",startValue:0,endValue:10,minValueSpan:2,maxValueSpan:10,yAxisIndex:[0],zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0},{show:l,type:"slider",realtime:!0,startValue:0,endValue:2,width:"8",height:"90%",yAxisIndex:[0],fillerColor:"rgba(154, 181, 215, 1)",borderColor:"rgba(17, 100, 210, 0.12)",backgroundColor:"#cfcfcf",handleSize:0,showDataShadow:!1,showDetail:!1,top:"1%",right:"8"}],calculable:!0,xAxis:{type:"value",data:a.list2,axisLabel:{textStyle:{color:"#ffffff",fontSize:14},formatter:function(i,b){return b===a.list2.length-1?i+"/次":i}},splitLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:14,width:1}},axisPointer:{label:{autoSplitNumber:5}}},yAxis:{type:"category",data:a.list1,axisLabel:{inside:!1,textStyle:{color:"#ffffff",fontSize:14}},axisLine:{show:!1,lineStyle:{color:"#ffffff",fontSize:14,width:1,type:"solid"}},axisTick:{show:!1},splitLine:{show:!1,lineStyle:{color:"rgba(255, 255, 255, 0.2)",fontSize:14,width:1}}},series:[{type:"bar",data:a.list2,barWidth:15,barGap:.3,barMaxWidth:20,barMinWidth:5,itemStyle:{normal:{borderWidth:1,borderColor:"rgba(0, 183, 255, 1)",borderRadius:[0,0,50,0],color:new g(0,0,1,0,[{offset:0,color:"rgba(26, 255, 217, 0)"},{offset:1,color:"rgba(0, 183, 255, 1)"}])}},label:{show:!0,position:"right",color:"#ffffff",formatter:function(i){return i.value}}}]}},f=()=>{var i=p(t.value);i.setOption(a.option),i.on("click",function(b){o("village",b.name)})};return m(()=>{setTimeout(()=>{a.list1=r.list1,a.list2=r.list2,a.year=r.year,e(),f()},600)}),(i,b)=>(u(),h("div",{ref_key:"chart",ref:t,style:{width:"100%",height:"260px"}},null,512))}};export{$ as _,W as a,I as b,E as c,B as d,P as e,R as f,D as g,U as h,_ as i,v as j,C as k,F as l,A as m,k as n,M as o,O as p,T as q};
|