2 lines
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
import{G as I,H as T,y as D,I as O,D as W,C as L}from"./element-plus.258bf9e7.js";import{i as M}from"./echarts.50cbfcc9.js";import{b as U}from"./statistics.e06923ca.js";import{d as b,r as n,a0 as j,j as q,o as s,c as h,V as a,M as o,W as E,a8 as z,a as g,$ as H,L as N}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.a255a587.js";import"./index.ec401e3b.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 G=g("div",{class:"tit"},"\u9879\u76EE\u90E8\u95E8\u5206\u5E03",-1),X=b({name:"true"}),Se=b({...X,setup($){var m,l,p;n(!0);const r=n(800),i=n(500),d=n(3),F=j([{name:"\u67F1\u72B6\u56FE",value:1},{name:"\u6298\u7EBF\u56FE",value:2},{name:"\u997C\u72B6\u56FE",value:3},{name:"\u6F0F\u6597\u56FE",value:4}]);let B={xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[120,200,150,80,70,110,130],type:"bar"}]},x={tooltip:{trigger:"item"},legend:{data:["Show","Click","Visit","Inquiry","Order"]},series:[{name:"Funnel",type:"funnel",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:20}},data:[{value:60,name:"Visit"},{value:40,name:"Inquiry"},{value:20,name:"Order"},{value:80,name:"Click"},{value:100,name:"Show"}]}]},C={xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[150,230,224,218,135,147,260],type:"line"}]},c={legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};l=c;const V=_=>{switch(_){case 1:l=B;break;case 2:l=C;break;case 3:l=c;break;case 4:l=x;break}v()},S=async()=>{await U(),v()},v=()=>{p=M(m),p.setOption(l)};return q(()=>{m=document.getElementById("main"),S()}),(_,e)=>{const w=I,k=T,u=D,y=O,A=W,f=L;return s(),h(E,null,[a(f,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[a(A,{class:"mb-[-16px]",inline:""},{default:o(()=>[a(u,{label:"\u56FE\u8868\u7C7B\u578B"},{default:o(()=>[a(k,{modelValue:d.value,"onUpdate:modelValue":e[0]||(e[0]=t=>d.value=t),placeholder:"\u8BF7\u9009\u62E9\u56FE\u8868\u7C7B\u578B",class:"flex-1",onChange:V},{default:o(()=>[(s(!0),h(E,null,z(F,t=>(s(),N(w,{key:t.value,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(u,{label:"\u56FE\u6807\u5BBD\u5EA6",prop:"num"},{default:o(()=>[a(y,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=t=>r.value=t),clearable:"",type:"number",onBlur:e[2]||(e[2]=()=>{})},null,8,["modelValue"])]),_:1}),a(u,{label:"\u56FE\u6807\u9AD8\u5EA6",prop:"project"},{default:o(()=>[a(y,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=t=>i.value=t),clearable:"",type:"number",onBlur:e[4]||(e[4]=()=>{})},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(f,{style:{"min-height":"75vh"}},{default:o(()=>[G,g("div",{id:"main",style:H([{margin:"0 auto"},{width:r.value+"px",height:i.value+"px"}])},null,4)]),_:1})],64)}}});export{Se as default};
|