2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
import{Y as D,I as h}from"./element-plus.61695454.js";import{B as x}from"./vue-echarts.60e3d927.js";import{_ as F}from"./sendData.vue_vue_type_script_setup_true_name_manageProjectLists_lang.88fd02f8.js";import{b as B}from"./statistics.1be4cf98.js";import{d as M,r as A,a0 as _,i as Y,o as u,c as b,W as p,O as y,a as s,u as k,M as f,V as w}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.33ea11c1.js";import"./usePaging.d25ebf19.js";import"./index.1dd80bf2.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 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),ht=M({__name:"index",setup(q){const e=A([]),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 Y(()=>{l()}),(t,a)=>{const o=D,r=h;return u(),b(w,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(k(x),{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(F,{"query-params":i,key:e.value},null,8,["query-params"]))]),_:1}))],64)}}});export{ht as default};
|