2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
import{Y as T,_ as V,a6 as O,$,D as L,F as P,I as N}from"./element-plus.eb2e53ea.js";import{r as q}from"./index.33b7474b.js";import{B as E}from"./vue-echarts.60e3d927.js";import{_ as z}from"./tradData.vue_vue_type_script_setup_true_name_manageProjectLists_lang.98485b1e.js";import{d as A,r as I,a0 as c,i as W,o as l,c as y,W as t,O as e,M as d,V as B,a7 as j,a as Q,T as f,u as F}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"./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"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./resize-detector.4e96b72b.js";import"./index.vue_vue_type_script_setup_true_lang.f75f9565.js";import"./usePaging.d25ebf19.js";import"./goodsList.d2ab1b09.js";function R(_){return q.get({url:"/workbench/index",params:_})}const U=["src"],X=A({name:"manageProjectLists"}),Te=A({...X,setup(_){const u=I([]),m=c({start_time:"",end_time:""}),g=()=>{m.start_time=u.value[0],m.end_time=u.value[1],b()};function h(){var a=new Date,r=new Date(a.getFullYear(),a.getMonth(),1),o=new Date(a.getFullYear(),a.getMonth()+1,0),n=v(r),i=v(o);return{firstDay:n,lastDay:i}}function v(a){var r=a.getFullYear(),o=(a.getMonth()+1).toString().padStart(2,"0"),n=a.getDate().toString().padStart(2,"0");return`${r}-${o}-${n}`}u.value[0]=h().firstDay,u.value[1]=h().lastDay;const k=c([{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701552002039.png",title:"\u6838\u9500\u8BA2\u5355\u91D1\u989D",value:1e3},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170150a511510.png",title:"\u4F59\u989D\u6D88\u8D39\u91D1\u989D",value:1e3},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701594ff8897.png",title:"\u95E8\u5E97\u6536\u76CA\u91D1\u989D",value:1e3},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717018a22e1161.png",title:"\u7EBF\u4E0B\u6536\u94F6\u8BA2\u5355\u91D1\u989D",value:1e3},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/202406041717013a08c6793.png",title:"\u73B0\u91D1\u6536\u94F6\u8BA2\u5355\u91D1\u989D",value:1e3},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/2024060417170103b0a9686.png",title:"\u95E8\u5E97\u65B0\u589E\u7528\u6237\u6570",value:1e3},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701469b91377.png",title:"\u95E8\u5E97\u6210\u4EA4\u7528\u6237\u6570",value:1e3},{src:"https://ceshi-engineering.lihaink.cn/uploads/files/20240604/20240604171701fbb680115.png",title:"\u95E8\u5E97\u8425\u4E1A\u989D",value:1e3}]),x=c({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,name:"\u95E8\u5E97\u6536\u6B3E"},{data:[15,12,14,78,96,54,85],type:"line",smooth:!0,name:"\u65B0\u589E\u7528\u6237"}]}),w=c({title:{text:"\u4EA4\u6613\u7C7B\u578B",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{type:"pie",radius:"50%",data:[{value:1048,name:"\u7EBF\u4E0A\u6536\u94F6\u8BA2\u5355"},{value:735,name:"\u73B0\u91D1\u6536\u94F6\u8BA2\u5355"},{value:580,name:"\u6838\u9500\u8BA2\u5355"},{value:484,name:"\u5145\u503C\u8BA2\u5355"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),C=async()=>{let a=await R(m);console.log(a)},b=()=>{C()};return W(()=>{g()}),(a,r)=>{const o=T,n=L,i=V,M=P,s=N,S=O,D=$;return l(),y(B,null,[t(s,null,{default:e(()=>[t(M,{class:"mb-[-16px]",model:m,"label-width":"80px"},{default:e(()=>[t(i,{span:6},{default:e(()=>[t(n,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:e(()=>[t(o,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=p=>u.value=p),type:"daterange","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",onChange:g},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),(l(),d(s,{key:u.value},{default:e(()=>[t(D,null,{default:e(()=>[(l(!0),y(B,null,j(k,(p,Y)=>(l(),d(i,{span:6,class:"flex mb-7",key:Y},{default:e(()=>[Q("img",{class:"w-[50px] h-[50px] mr-2",src:p.src},null,8,U),t(S,{title:p.title,value:p.value},null,8,["title","value"])]),_:2},1024))),128))]),_:1})]),_:1})),(l(),d(s,{key:u.value},{header:e(()=>[f(" \u8425\u4E1A\u8D8B\u52BF ")]),default:e(()=>[t(F(E),{style:{height:"350px"},option:x,autoresize:!0},null,8,["option"])]),_:1})),(l(),d(D,{key:u.value},{default:e(()=>[t(i,{span:14},{default:e(()=>[t(s,{class:"h-[100%]"},{header:e(()=>[f(" \u4EA4\u6613\u6570\u636E ")]),default:e(()=>[t(z)]),_:1})]),_:1}),t(i,{span:10},{default:e(()=>[t(s,null,{header:e(()=>[f(" \u4EA4\u6613\u7C7B\u578B ")]),default:e(()=>[t(F(E),{style:{height:"350px"},option:w,autoresize:!0},null,8,["option"])]),_:1})]),_:1})]),_:1}))],64)}}});export{Te as default};
|