multiStoreAdmin/build/store/assets/index.e7dc3207.js

2 lines
3.3 KiB
JavaScript
Raw Normal View History

2024-06-19 18:46:09 +08:00
import{Y as x,$ as B,D as E,F as M,I as k}from"./element-plus.9175fe58.js";import{B as A}from"./vue-echarts.60e3d927.js";import{_ as Y}from"./sendData.vue_vue_type_script_setup_true_name_manageProjectLists_lang.24ef8590.js";import{b as C}from"./statistics.656d173b.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.1f51da93.js";import"./axios.13991fdc.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.0fb3ad1e.js";import"./usePaging.d25ebf19.js";import"./index.669f9987.js";import"./lodash.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.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};