engineering/public/admin/assets/Custom.7210dc5c.js
shengchanzhe a2653dcd36 提交pc
2024-01-27 11:43:47 +08:00

2 lines
2.8 KiB
JavaScript

import{J as x,C as g}from"./element-plus.4ff6f47d.js";import{i as C}from"./echarts.b30ab882.js";import{a as w}from"./statistics.4188fd1d.js";import{_ as k}from"./index.aaca920c.js";import{r as d,a0 as b,o as l,L as V,M as _,n as B,a,V as I,c,a8 as N,W as S,S as Y,U as v,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.fc5568d8.js";import"./axios.5b893b79.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.8ea2174a.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.4cbccc26.js";import"./color.033abf8c.js";import"./clone.a6258514.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7eedf28f.js";import"./ms.a9ae1d6d.js";import"./nprogress.93182424.js";import"./vue-clipboard3.6a55d49e.js";import"./clipboard.2986c82d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const L=i=>(D("data-v-f3e69c96"),i=i(),E(),i),O=L(()=>a("div",{class:"card-header"},[a("span",null,"\u5BA2\u6237\u7EDF\u8BA1")],-1)),A={style:{height:"40px"}},F={style:{display:"flex","justify-content":"space-around"}},P={key:0,id:"customNum",class:"chart"},T={__name:"Custom",setup(i){const o=d(""),m=d(!0);o.value=new Date().getFullYear();const p=b([{name:"\u5BA2\u6237\u603B\u6570",value:3},{name:"\u4ECA\u5E74\u589E\u52A0",value:3}]),h={show:!0,rich:{name:{}}},y=(t,e)=>{var r=document.getElementById(t),n=C(r);n.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()=>{m.value=!1;let t=await w({year:o.value});m.value=!0,await B(),y("customNum",f({data:[t.series.name]},t.column,[{name:t.series.name,type:"bar",barGap:0,label:h,emphasis:{focus:"series"},data:t.series.data}])),p[0].value=t.custom_total,p[1].value=t.this_year_add};return u(),(t,e)=>{const r=x,n=g;return l(),V(n,{style:{width:"49.9%"}},{header:_(()=>[O]),default:_(()=>[a("div",A,[I(r,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=s=>o.value=s),onChange:u,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:o.value},null,8,["modelValue","placeholder"])]),a("div",F,[(l(!0),c(S,null,N(p,s=>(l(),c("div",{key:s,style:{"text-align":"center"}},[a("div",null,v(s.value),1),a("div",null,v(s.name),1)]))),128))]),m.value?(l(),c("div",P)):Y("",!0)]),_:1})}}},xt=k(T,[["__scopeId","data-v-f3e69c96"]]);export{xt as default};