multiStoreAdmin/dist/store/assets/index.23766e7c.js

2 lines
3.3 KiB
JavaScript

import{Z as D,J as h}from"./element-plus.ab0703f2.js";import{B as F}from"./vue-echarts.eaf50cf8.js";import{_ as x}from"./sendData.vue_vue_type_script_setup_true_name_manageProjectLists_lang.7cfd5b2f.js";import{b as B}from"./statistics.b2d4a72f.js";import{d as A,r as M,$ as _,i as b,o as u,c as k,W as p,Q as y,a as s,u as w,P as f,F as Y}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.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.5fc87b57.js";import"./usePaging.fff444fa.js";import"./index.ae42b2c0.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const C={class:"flex justify-between items-center"},E=s("span",{class:"text-2xl"},"\u914D\u9001\u8BA2\u5355\u7EDF\u8BA1",-1),S={class:"flex items-center text-sm"},V=s("span",{class:"mr-4"},"\u65F6\u95F4\u7B5B\u9009: ",-1),$=s("div",{class:"text-2xl mb-4"},"\u8BA2\u5355\u7EDF\u8BA1",-1),Ft=A({__name:"index",setup(P){const e=M([]),i=_({start_time:"",end_time:""}),l=()=>{i.start_time=e.value[0],i.end_time=e.value[1],g()};function d(){var t=new Date,a=new Date(t.getFullYear(),t.getMonth(),1),o=new Date(t.getFullYear(),t.getMonth()+1,0),r=c(a),m=c(o);return{firstDay:r,lastDay:m}}function c(t){var a=t.getFullYear(),o=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0");return`${a}-${o}-${r}`}e.value[0]=d().firstDay,e.value[1]=d().lastDay;const n=_({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}]}),v=()=>{B(i).then(t=>{console.log(t),n.xAxis.data=t.statistics.range,n.series[0].data=t.statistics.data.order_amount,n.series[1].data=t.statistics.data.user_number})},g=()=>{v()};return b(()=>{l()}),(t,a)=>{const o=D,r=h;return u(),k(Y,null,[p(r,{shadow:"never",class:"!border-none mb-5"},{default:y(()=>[s("div",C,[E,s("div",S,[V,p(o,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=m=>e.value=m),type:"daterange","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",onChange:l},null,8,["modelValue"])])]),p(w(F),{style:{height:"350px"},option:n,autoresize:!0},null,8,["option"])]),_:1}),(u(),f(r,{key:e.value,shadow:"never",class:"mb-4"},{default:y(()=>[$,(u(),f(x,{"query-params":i,key:e.value},null,8,["query-params"]))]),_:1}))],64)}}});export{Ft as default};