2 lines
2.9 KiB
JavaScript
2 lines
2.9 KiB
JavaScript
import{J as x,C as g}from"./element-plus.65d4f479.js";import{i as C}from"./echarts.b30ab882.js";import{e as w}from"./statistics.72c8100f.js";import{_ as k}from"./index.98acb17a.js";import{r as d,a0 as b,o as n,L as P,M as _,n as V,a,V as B,c as m,a8 as I,W as S,S as Y,U as h,b7 as D,b6 as E}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.7b7df559.js";import"./axios.d220de03.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./lodash.e6e08e6d.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.768d86ee.js";import"./color.7d9a7b23.js";import"./clone.e8568f48.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.289cebbb.js";import"./ms.a9ae1d6d.js";import"./nprogress.4217d235.js";import"./vue-clipboard3.1cf59ba2.js";import"./clipboard.c2aa2b65.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const L=i=>(D("data-v-1fc05514"),i=i(),E(),i),N=L(()=>a("div",{class:"card-header"},[a("span",null,"\u91C7\u8D2D\u5408\u540C")],-1)),O={style:{height:"40px"}},A={style:{display:"flex","justify-content":"space-around"}},F={key:0,id:"PurchaseContracts",class:"chart"},T={__name:"PurchaseContracts",setup(i){const l=d(new Date().getFullYear()),c=d(!0),o=b([{name:"\u5408\u540C\u603B\u6570",value:3},{name:"\u603B\u91D1\u989D",value:3},{name:"\u5E74\u5EA6\u5408\u540C\u6570",value:3},{name:"\u5E74\u5EA6\u5408\u540C\u91D1\u989D",value:3}]),v={show:!0,rich:{name:{}}},y=(t,e)=>{var r=document.getElementById(t),p=C(r);p.setOption(e)},f=(t,e,r)=>({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:t,toolbox:{show:!0,orient:"vertical",left:"right",top:"center"},xAxis:[{type:"category",axisTick:{show:!1},data:e}],yAxis:[{type:"value"}],series:r}),u=async()=>{c.value=!1;let t=await w();c.value=!0,await V(),y("PurchaseContracts",f({data:[t.series.name]},t.column,[{name:t.series.name,type:"bar",barGap:0,label:v,emphasis:{focus:"series"},data:t.series.data}])),o[0].value=t.total_num,o[1].value=t.total_amount,o[2].value=t.year_total_num,o[3].value=t.year_total_amount};return u(),(t,e)=>{const r=x,p=g;return n(),P(p,{style:{width:"49.9%"}},{header:_(()=>[N]),default:_(()=>[a("div",O,[B(r,{modelValue:l.value,"onUpdate:modelValue":e[0]||(e[0]=s=>l.value=s),onChange:u,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:l.value},null,8,["modelValue","placeholder"])]),a("div",A,[(n(!0),m(S,null,I(o,s=>(n(),m("div",{key:s,style:{"text-align":"center"}},[a("div",null,h(s.value),1),a("div",null,h(s.name),1)]))),128))]),c.value?(n(),m("div",F)):Y("",!0)]),_:1})}}},xt=k(T,[["__scopeId","data-v-1fc05514"]]);export{xt as default};
|