2 lines
2.9 KiB
JavaScript
2 lines
2.9 KiB
JavaScript
import{G as g,C as k}from"./element-plus.76ad22d1.js";import{i as w}from"./echarts.50cbfcc9.js";import{a as b}from"./statistics.453a2c71.js";import{_ as V}from"./index.bcfab8cf.js";import{r as d,a0 as B,a5 as I,o as l,L as _,M as p,n as N,a,V as S,c as v,a8 as Y,W as D,S as E,U as h,b7 as q,b6 as L}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.9bff6341.js";import"./dayjs.4e54c873.js";import"./axios.c27a9cd7.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./lodash.12303e67.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ce2b95b7.js";import"./color.0b62cf11.js";import"./clone.b8d2a027.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.026d6bda.js";import"./vue-clipboard3.1a74f940.js";import"./clipboard.80ee0599.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";const O=i=>(q("data-v-efa05a32"),i=i(),L(),i),A=O(()=>a("div",{class:"card-header"},[a("span",null,"\u5BA2\u6237\u7EDF\u8BA1")],-1)),F={style:{height:"40px"}},G={style:{display:"flex","justify-content":"space-around"}},P={key:0,id:"customNum",class:"chart"},T={__name:"Custom",setup(i){const o=d(""),n=d(!0);o.value=new Date().getFullYear();const m=B([{name:"\u5BA2\u6237\u603B\u6570",value:3,url:"/construction/client/myClient/custom"},{name:"\u4ECA\u5E74\u589E\u52A0",value:3,url:"/construction/client/myClient/custom",query:!0}]),y={show:!0,rich:{name:{}}},f=(t,r)=>{var s=document.getElementById(t),c=w(s);c.setOption(r)},x=(t,r,s)=>({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:t,toolbox:{show:!0,orient:"vertical",left:"right",top:"center"},xAxis:[{type:"category",axisTick:{show:!1},data:r}],yAxis:[{type:"value"}],series:s}),u=async()=>{n.value=!1;let t=await b({year:o.value});n.value=!0,await N(),f("customNum",x({data:[t.series.name]},t.column,[{name:t.series.name,type:"bar",barGap:0,label:y,emphasis:{focus:"series"},data:t.series.data}])),m[0].value=t.custom_total,m[1].value=t.this_year_add};return u(),(t,r)=>{const s=g,c=I("router-link"),C=k;return l(),_(C,{style:{width:"49.9%"}},{header:p(()=>[A]),default:p(()=>[a("div",F,[S(s,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=e=>o.value=e),onChange:u,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:o.value},null,8,["modelValue","placeholder"])]),a("div",G,[(l(!0),v(D,null,Y(m,e=>(l(),_(c,{to:{path:e.url,query:e.query?{year:o.value}:null},key:e,class:"header-btn"},{default:p(()=>[a("div",null,[a("div",null,h(e.value),1),a("div",null,h(e.name),1)])]),_:2},1032,["to"]))),128))]),n.value?(l(),v("div",P)):E("",!0)]),_:1})}}},xt=V(T,[["__scopeId","data-v-efa05a32"]]);export{xt as default};
|