Files
xzlz_jbWeb/jb/static/js/chunk-43a21062.8a261a73.js

1 line
3.8 KiB
JavaScript
Raw Normal View History

2025-07-21 21:18:57 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43a21062"],{"09b2":function(e,t,a){},"2e9d":function(e,t,a){"use strict";var o=a("7a23");const c={class:"title"},l={class:"font"},n={class:"cnetr"},r={class:"right"};var i={__name:"PageTitle",props:{title:{type:String,default:""},marginBottom:{type:Number,default:0},backgroundColor:{type:String,default:"rgb(255, 255, 255, 0)"}},setup(e){return(t,a)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"pageTitle",style:Object(o["normalizeStyle"])(`margin-bottom: ${e.marginBottom}px;background-color: ${e.backgroundColor}`)},[Object(o["createElementVNode"])("div",c,[Object(o["createElementVNode"])("div",l,Object(o["toDisplayString"])(e.title),1)]),Object(o["createElementVNode"])("div",n,[Object(o["renderSlot"])(t.$slots,"center")]),Object(o["createElementVNode"])("div",r,[Object(o["renderSlot"])(t.$slots,"default")])],4))}},s=(a("d634"),a("d959")),d=a.n(s);const b=d()(i,[["__scopeId","data-v-2e06abc9"]]);t["a"]=b},"8dce":function(e,t,a){"use strict";a.r(t);var o=a("7a23"),c=a("c5cb"),l=a("313e");const n=["id"];var r={__name:"moreLineEcharts",props:{echartsId:{type:String,default:"morelineId"},smooth:{type:Boolean,default:!1},data:{type:Object,default:{color:[],list:[],xData:[]}}},setup(e){const t=e;function a(e){let a=e.color,o=e.list,n=o.map((e,o)=>({type:"line",name:e.label,data:e.val,itemStyle:{normal:{color:a[o]}},smooth:t.smooth,showSymbol:!1,areaStyle:{normal:{color:new l["a"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(199, 237, 250,0.5)"},{offset:1,color:"rgba(199, 237, 250,0.2)"}],!1)}}}));c(n)}function c(e){var a=l["b"](document.getElementById(t.echartsId)),o={grid:{top:"20%",right:"6%",left:"2%",bottom:"3%",containLabel:!0},legend:{data:t.data.list.map(e=>e.label),textStyle:{color:"#333"},icon:"diamond",itemWidth:16,itemHeight:8,itemGap:5},tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#ddd"}},backgroundColor:"rgba(255,255,255,1)",padding:[5,10],textStyle:{color:"#7588E4"},extraCssText:"box-shadow: 0 0 5px rgba(0,0,0,0.3)"},xAxis:{type:"category",data:t.data.xData,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"},axisLabel:{show:!0,color:"#333",interval:0}},yAxis:{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(14,95,255,0.5)"}},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#333"}},series:e};o&&a.setOption(o),window.addEventListener("resize",(function(){a.resize()}))}return Object(o["watch"])(()=>t.data,e=>{Object(o["nextTick"])(()=>{a(e)})},{immediate:!0,deep:!0}),(t,a)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{style:{height:"100%",width:"100%"},id:e.echartsId},null,8,n))}};const i=r;var s=i,d=a("2e9d");const b={class:"bonx"},m={class:"titleBox"},u={class:"lineEchartsBox"};var p={__name:"index",setup(e){const t=Object(o["reactive"])({color:["#EB00FF","#F57100"],list:[],xData:[]});Object(o["onMounted"])(()=>{a()});const a=()=>{Object(c["a"])({},"/mosty-jbld/jblddk/queryDktj").then(e=>{var a,o;e&&e.length>0&&(t.list=null===(a=e[0])||void 0===a?void 0:a.list.map(e=>({label:e.bxxmc,val:[],hatColor:"#087df9",color:["rgba(0,244,255,1)","rgba(0,77,167,1)"]})),null===(o=t.list)||void 0===o||o.forEach(t=>{e.forEach(e=>{e.list.forEach(e=>{t.label==e.bxxmc&&t.val.push(e.num)})})}),t.xData=e.map(e=>e.ssbm))})};return(e,a)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",b,[Object(o["createElementVNode"])("div",m,[Object(o["createVNode"])(d["a"],{title:"勤务打卡统计"})]),Object(o["createElementVNode"])("div",u,[Object(o["createVNode"])(s,{echartsId:"qwdkLine",data:t},null,8,["data"])])]))}},h=(a("b22c"),a("d959")),g=a.n(h);const x=g()(p,[["__scopeId","data-v-138441e0"]]);t["default"]=x},b22c:function(e,t,a){"use strict";a("09b2")},d634:function(e,t,a){"use strict";a("e65b")},e65b:function(e,t,a){}}]);