engineering/public/admin/assets/Project.4c16ad6f.js
2024-01-31 14:03:51 +08:00

2 lines
2.6 KiB
JavaScript

import{C as _}from"./element-plus.83b6d1e4.js";import{i as u}from"./echarts.b30ab882.js";import{b as v}from"./statistics.40cc9298.js";import{_ as h}from"./index.9310b86c.js";import{a0 as f,o as p,L as y,M as m,a as o,c as l,a8 as g,W as x,U as c,b7 as j,b6 as w}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.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 n=r=>(j("data-v-cc0a38e2"),r=r(),w(),r),B=n(()=>o("div",{class:"card-header"},[o("span",null," \u9879\u76EE\u7ACB\u9879")],-1)),C={style:{display:"flex","justify-content":"space-around"}},I=n(()=>o("div",{id:"projectApproved",class:"chart"},null,-1)),b={__name:"Project",setup(r){const e=f([{name:"\u9879\u76EE\u603B\u6570",value:3},{name:"\u9879\u76EE\u8DDF\u8FDB",value:3},{name:"\u5BA2\u6237\u9700\u6C42",value:3},{name:"\u89E3\u51B3\u65B9\u7537",value:3},{name:"\u9879\u76EE\u6982\u7B97",value:3},{name:"\u7ADE\u4E89\u5BF9\u624B",value:3}]),d=(t,i)=>{var s=document.getElementById(t),a=u(s);a.setOption(i)};return(async()=>{let t=await v();e[0].value=t.project_total,e[1].value=t.follow_total,e[2].value=t.demand_total,e[3].value=t.solution_total,e[4].value=t.estimate_total,e[5].value=t.competitor_total;let i={title:{text:"",subtext:"",left:"center"},tooltip:{trigger:"item"},series:[{name:"\u6211\u7684\u7ACB\u9879",type:"pie",radius:"50%",data:t.data,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};d("projectApproved",i)})(),(t,i)=>{const s=_;return p(),y(s,{style:{width:"49.9%"}},{header:m(()=>[B]),default:m(()=>[o("div",C,[(p(!0),l(x,null,g(e,a=>(p(),l("div",{key:a,style:{"text-align":"center"}},[o("div",null,c(a.value),1),o("div",null,c(a.name),1)]))),128))]),I]),_:1})}}},mt=h(b,[["__scopeId","data-v-cc0a38e2"]]);export{mt as default};