2 lines
2.9 KiB
JavaScript
2 lines
2.9 KiB
JavaScript
import{C as d}from"./element-plus.517d4382.js";import{i as v}from"./echarts.b30ab882.js";import{b as f}from"./statistics.4549c6cf.js";import{_ as h}from"./index.8b1962e9.js";import{a0 as y,a5 as j,o as p,L as c,M as l,a as e,c as b,a8 as g,W as w,U as m,b7 as x,b6 as C}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 u=r=>(x("data-v-4c8aafe5"),r=r(),C(),r),k=u(()=>e("div",{class:"card-header"},[e("span",null," \u9879\u76EE\u7ACB\u9879")],-1)),B={style:{display:"flex","justify-content":"space-around"}},I=u(()=>e("div",{id:"projectApproved",class:"chart"},null,-1)),S={__name:"Project",setup(r){const o=y([{name:"\u9879\u76EE\u603B\u6570",value:3,url:"/construction/project/project_lists"},{name:"\u9879\u76EE\u8DDF\u8FDB",value:3,url:"/construction/business/project_follow_up"},{name:"\u5BA2\u6237\u9700\u6C42",value:3,url:"/construction/business/customer_demand"},{name:"\u89E3\u51B3\u65B9\u6848",value:3,url:"/construction/business/customer_demand_solution"},{name:"\u9879\u76EE\u6982\u7B97",value:3,url:"/construction/business/project_estimate"},{name:"\u7ADE\u4E89\u5BF9\u624B",value:3,url:"/construction/business/competitor"}]),_=(t,s)=>{var i=document.getElementById(t),n=v(i);n.setOption(s)};return(async()=>{let t=await f();o[0].value=t.project_total,o[1].value=t.follow_total,o[2].value=t.demand_total,o[3].value=t.solution_total,o[4].value=t.estimate_total,o[5].value=t.competitor_total;let s={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)"}}}]};_("projectApproved",s)})(),(t,s)=>{const i=j("router-link"),n=d;return p(),c(n,{style:{width:"49.9%"}},{header:l(()=>[k]),default:l(()=>[e("div",B,[(p(!0),b(w,null,g(o,a=>(p(),c(i,{to:{path:a.url,query:a.query?{...a.query}:null},key:a,class:"header-btn"},{default:l(()=>[e("div",null,[e("div",null,m(a.value),1),e("div",null,m(a.name),1)])]),_:2},1032,["to"]))),128))]),I]),_:1})}}},ct=h(S,[["__scopeId","data-v-4c8aafe5"]]);export{ct as default};
|