1 line
6.6 KiB
JavaScript
1 line
6.6 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[3813],{3813:function(t,e,r){r.r(e),r.d(e,{default:function(){return y}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"particleLine-chart"},[e("div",{staticStyle:{"margin-bottom":"30px"}},[e("search-bar",{attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}})],1),e("div",{staticStyle:{width:"100%"},style:{height:t.chartHeight+"px"},attrs:{id:"particleLineChart"}})])},a=[],o=r(7171),i=r(475),s=r(5468),u=r(2334),l=r(381),c=r.n(l),p={name:"particleLineChart",mixins:[s.Z],data(){return{formConfig:[{type:"datePicker",label:"检验时间",dateType:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-ddTHH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",param:"timeVal",defaultSelect:[],width:350},{type:"input",label:"合格上线",placeholder:"合格上线",param:"maxLine"},{type:"button",btnName:"确认",name:"search",color:"primary"}],chartDom:"",chart:"",chartHeight:(0,i.NC)(320),listQuery:{startTime:"",endTime:""},checkOutTime:"",maxLine:""}},mounted(){this.chartDom=document.getElementById("particleLineChart"),this.chart=o.S1(this.chartDom),window.addEventListener("resize",(()=>{this.chartHeight=(0,i.NC)(320)})),this.formConfig[0].defaultSelect=[c()().format("yyyy-MM-DD")+"T00:00:00",c()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=c()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=c()().format("yyyy-MM-DD")+"T23:59:59",this.getMsg()},methods:{buttonClick(t){console.log(t),"search"===t.btnName&&(this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.maxLine=t.maxLine,this.getMsg())},getMsg(){let t=[],e=[],r=[],n=[],a=[],o=[],i={};(0,u.vD)({...this.listQuery}).then((s=>{console.log(s),0===s.code&&s.data.length>0&&(s.data.map((i=>{console.log(i),t.push(c()(i.hour).format("YY-MM-DD HH:mm:ss")),e.push(i.s),r.push(i.m),n.push(i.l),a.push(i.xl),o.push(i.sum)})),i.time=t,i.sList=e,i.mList=r,i.lList=n,i.xlList=a,i.sumList=o,this.getChart(i))}))},getChart1(t){var e={color:["#5AD8A6","#5B8FF9","#5D7092","#F6BD16","#E8684A"],title:{text:"时间段玻璃颗粒数"},tooltip:{trigger:"axis"},legend:{data:["Total","M","L","S","XL"],right:"4%"},grid:{left:"3%",right:"4%",bottom:"3%"},xAxis:{type:"category",boundaryGap:!1,data:t.time},yAxis:{type:"value"},series:[{name:"Total",type:"line",data:t.sumList,markLine:{show:!1,Symbol:"none",label:{position:"end",formatter:"合格线\n"+this.maxLine},data:[{silent:!1,lineStyle:{type:"dashed",color:"#0B58FF"},yAxis:this.maxLine}]}},{name:"M",type:"line",data:t.mList},{name:"L",type:"line",data:t.lList},{name:"S",type:"line",data:t.sList},{name:"XL",type:"line",data:t.xlList}]};e&&this.chart.setOption(e)},getChart(t){console.log(t);var e={color:["#5AD8A6","#5B8FF9","#5D7092","#F6BD16","#E8684A"],title:{text:"时间段玻璃颗粒数",left:"1%"},tooltip:{trigger:"axis"},legend:{data:["Total","M","L","S","XL"],right:"4%"},grid:{left:"4%",right:"4%",bottom:"10%"},xAxis:{type:"category",boundaryGap:!1,data:t.time},yAxis:{type:"value"},dataZoom:[{startValue:"2023-02-014"},{type:"inside"}],series:[{name:"Total",type:"line",data:t.sumList,markLine:{show:!1,Symbol:"none",label:{position:"end",formatter:"合格线\n"+this.maxLine},data:[{silent:!1,lineStyle:{type:"dashed",color:"#0B58FF"},yAxis:this.maxLine}]}},{name:"M",type:"line",data:t.mList},{name:"L",type:"line",data:t.lList},{name:"S",type:"line",data:t.sList},{name:"XL",type:"line",data:t.xlList}]};e&&this.chart.setOption(e)}}},d=p,m=r(1001),h=(0,m.Z)(d,n,a,!1,null,"ecee4654",null),y=h.exports},2334:function(t,e,r){r.d(e,{AT:function(){return C},Af:function(){return s},F0:function(){return h},ON:function(){return l},QI:function(){return i},Qd:function(){return y},YU:function(){return m},an:function(){return q},bu:function(){return Z},dy:function(){return L},eT:function(){return p},fL:function(){return M},gP:function(){return S},iF:function(){return c},jA:function(){return o},kT:function(){return F},oR:function(){return b},pS:function(){return u},pw:function(){return d},r5:function(){return f},uW:function(){return D},uX:function(){return x},uj:function(){return T},v:function(){return a},vD:function(){return g}});var n=r(8859);function a(t){return(0,n.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function o(t){return(0,n.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function i(t){return(0,n.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function s(t){return(0,n.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function u(t){return(0,n.Z)({url:"/quality/processDetect/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function l(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/page",method:"post",data:t})}function c(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/getDetails",method:"post",data:t})}function p(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/listType",method:"post",data:t})}function d(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/export2",method:"post",responseType:"blob",data:t})}function m(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function h(t){return(0,n.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function y(t){return(0,n.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function f(t){return(0,n.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function g(t){return(0,n.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function L(t){return(0,n.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function x(t){return(0,n.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function D(t){return(0,n.Z)({url:"/report/GlassReport/listGlass",method:"post",data:t})}function T(t){return(0,n.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:t})}function b(t){return(0,n.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:t})}function Z(t){return(0,n.Z)({url:"/report/GlassReport/thickReport",method:"post",data:t})}function q(t){return(0,n.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:t})}function C(t){return(0,n.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:t})}function M(t){return(0,n.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:t})}function F(t){return(0,n.Z)({url:"/quality/productTrace/page",method:"post",data:t})}function S(t){return(0,n.Z)({url:"/quality/productTrace/pageProcess",method:"post",data:t})}}}]); |