2 lines
3.4 KiB
JavaScript
2 lines
3.4 KiB
JavaScript
import{J as x,C as k}from"./element-plus.517d4382.js";import{i as w}from"./echarts.b30ab882.js";import{h as j}from"./statistics.4549c6cf.js";import{_ as b}from"./index.8b1962e9.js";import{r as d,a0 as P,a5 as V,o as i,L as _,M as u,n as B,a,V as I,c as v,a8 as S,W as Y,S as D,U as h,b7 as E,b6 as q}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.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.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const L=c=>(E("data-v-cc983dd6"),c=c(),q(),c),N=L(()=>a("div",{class:"card-header"},[a("span",null,"\u9879\u76EE\u5408\u540C")],-1)),O={style:{height:"40px"}},A={style:{display:"flex","justify-content":"space-around"}},F={key:0,id:"main3",class:"chart"},T={__name:"projectContracts",setup(c){const n=d(new Date().getFullYear()),l=d(!0),o=P([{name:"\u5408\u540C\u91D1\u989D",value:3,url:"/construction/contract/ProjectContracts/contract"},{name:"\u6D3D\u5546\u91D1\u989D",value:3,url:"/construction/contract/ProjectContracts/contract_negotiation"},{name:"\u5408\u540C\u603B\u6570",value:3,url:"/construction/contract/ProjectContracts/contract"},{name:"\u5E74\u5EA6\u5408\u540C\u91D1\u989D",value:3,url:"/construction/contract/ProjectContracts/contract"},{name:"\u5E74\u5EA6\u5408\u540C\u603B\u6570",value:3,url:"/construction/contract/ProjectContracts/contract",query:!0}]),y={show:!0,rich:{name:{}}},f=(t,r)=>{var s=document.getElementById(t),p=w(s);p.setOption(r)},C=(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}),m=async()=>{l.value=!1;let t=await j({year:n.value});l.value=!0,await B(),f("main3",C({data:[t.series.name]},t.column,[{name:t.series.name,type:"bar",barGap:0,label:y,emphasis:{focus:"series"},data:t.series.data}])),o[0].value=t.total_amount,o[1].value=t.total_negotiate_amount,o[2].value=t.total_num,o[3].value=t.year_total_amount,o[4].value=t.year_total_num};return m(),(t,r)=>{const s=x,p=V("router-link"),g=k;return i(),_(g,{style:{width:"49.9%"}},{header:u(()=>[N]),default:u(()=>[a("div",O,[I(s,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),onChange:m,"value-format":"YYYY",type:"year",style:{float:"right"},placeholder:n.value},null,8,["modelValue","placeholder"])]),a("div",A,[(i(!0),v(Y,null,S(o,e=>(i(),_(p,{to:{path:e.url,query:e.query?{year:n.value}:null},key:e,class:"header-btn"},{default:u(()=>[a("div",null,[a("div",null,h(e.value),1),a("div",null,h(e.name),1)])]),_:2},1032,["to"]))),128))]),l.value?(i(),v("div",F)):D("",!0)]),_:1})}}},xt=b(T,[["__scopeId","data-v-cc983dd6"]]);export{xt as default};
|