lcny-vue3-antd-admin/dist/assets/Fisheries.ec36a89d.js

2 lines
1.9 KiB
JavaScript

var u=(l,s,t)=>new Promise((r,i)=>{var c=e=>{try{n(t.next(e))}catch(a){i(a)}},o=e=>{try{n(t.throw(e))}catch(a){i(a)}},n=e=>e.done?r(e.value):Promise.resolve(e.value).then(c,o);n((t=t.apply(l,s)).next())});import y from"./Box.fcbd33fd.js";import{u as g}from"./useECharts.d100ee71.js";import{e as v}from"./other.ed2ccd93.js";import{c as p}from"./colors.d19e85ff.js";import{_ as C,d as b,q as _,r as x,aA as E,P as B,o as L,i as k,s as w,h as d}from"./index.7edff3d4.js";import"ant-design-vue";const D=b({components:{Box:y},setup(){const l=_([{key:"0",value:"\u5168\u90E8"},{key:"1",value:"\u9C7C"},{key:"2",value:"\u867E"}]),s=_({x_axis:[],series:[]}),t=x("0"),r=x(null),i=e=>{t.value!=e&&(t.value=e,o())},{setOptions:c}=g(r),o=()=>{const e={legendData:[],series:[]};s.series.forEach(({name:a,data:h},m)=>{const f=p[m%p.length];e.legendData.push(a+""),e.series.push({name:a,data:h,type:"line",symbol:"none",itemStyle:{color:f.itemColor},areaStyle:{color:f.areaColor}})}),c({grid:{left:"2%",right:"2%",top:"10%",bottom:"2%",containLabel:!0},legend:{data:e.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:s.x_axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series})};function n(){return u(this,null,function*(){const e=yield v();s.x_axis=e.x_axis,s.series=e.series,o()})}return E(()=>{n()}),{tabList:l,currentTab:t,chartRef:r,changeTab:i}}}),S={class:"h-full flex flex-col"},F={class:"flex-1",ref:"chartRef"};function $(l,s,t,r,i,c){const o=B("Box");return L(),k(o,{title:"\u7A3B\u867E\u4EF7\u683C"},{default:w(()=>[d("div",S,[d("div",F,null,512)])]),_:1})}var M=C(D,[["render",$],["__scopeId","data-v-645ad384"]]);export{M as default};