multiStoreAdmin/dist/store/assets/index.96e41642.js

2 lines
3.3 KiB
JavaScript
Raw Normal View History

2024-06-14 10:09:41 +08:00
import{Y as x,$ as B,D as E,F as M,I as k}from"./element-plus.a40e8d80.js";import{B as A}from"./vue-echarts.60e3d927.js";import{_ as Y}from"./sendData.vue_vue_type_script_setup_true_name_manageProjectLists_lang.1ca8e64a.js";import{b as C}from"./statistics.3346dee3.js";import{d as S,r as V,a0 as y,i as b,o as l,c as w,W as o,O as a,M as d,T as D,u as T,V as $}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./resize-detector.4e96b72b.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./index.vue_vue_type_script_setup_true_lang.4ac5ccb7.js";import"./usePaging.d25ebf19.js";import"./index.9d786a17.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const ht=S({__name:"index",setup(q){const e=V([]),i=y({start_time:"",end_time:""}),c=()=>{i.start_time=e.value[0],i.end_time=e.value[1],v()};function _(){var t=new Date,r=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(t.getFullYear(),t.getMonth()+1,0),m=f(r),u=f(n);return{firstDay:m,lastDay:u}}function f(t){var r=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),m=t.getDate().toString().padStart(2,"0");return`${r}-${n}-${m}`}e.value[0]=_().firstDay,e.value[1]=_().lastDay;const s=y({tooltip:{trigger:"axis"},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0},{data:[820,932,901,934,1290,1330,1320],type:"line",smooth:!0}]}),g=()=>{C(i).then(t=>{console.log(t),s.xAxis.data=t.statistics.range,s.series[0].data=t.statistics.data.order_amount,s.series[1].data=t.statistics.data.user_number})},v=()=>{g()};return b(()=>{c()}),(t,r)=>{const n=x,m=E,u=B,F=M,p=k;return l(),w($,null,[o(p,null,{default:a(()=>[o(F,{class:"mb-[-16px]",model:i,"label-width":"80px"},{default:a(()=>[o(u,{span:6},{default:a(()=>[o(m,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:a(()=>[o(n,{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=h=>e.value=h),type:"daterange","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",onChange:c},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),(l(),d(p,{key:e.value},{header:a(()=>[D(" \u914D\u9001\u8BA2\u5355\u7EDF\u8BA1 ")]),default:a(()=>[o(T(A),{style:{height:"350px"},option:s,autoresize:!0},null,8,["option"])]),_:1})),(l(),d(p,{key:e.value},{header:a(()=>[D(" \u914D\u9001\u8BA2\u5355\u7EDF\u8BA1 ")]),default:a(()=>[(l(),d(Y,{"query-params":i,key:e.value},null,8,["query-params"]))]),_:1}))],64)}}});export{ht as default};