tft-fe/dist/js/3518.f5220cf2.js
2023-06-30 14:01:06 +08:00

1 line
21 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[3518],{3518:function(t,s,a){a.r(s),a.d(s,{default:function(){return C}});var i=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"top-box"},[s("div",{staticStyle:{padding:"10px 0 0 16px"}},[s("search-bar",{attrs:{formConfigs:t.formConfig}})],1),s("production-line-diagram")],1),s("el-row",{staticClass:"bottom-box",attrs:{gutter:10}},[s("el-col",{staticClass:"area",attrs:{span:4}},[s("span",{staticClass:"title"},[t._v("终检单元")]),s("base-table",{attrs:{page:t.listQuery1.current,limit:t.listQuery1.size,pageWidth:40,"table-props":t.tableProps1,"table-data":t.tableData1,"max-height":t.tableH}})],1),s("el-col",{staticClass:"area",attrs:{span:6}},[s("span",{staticClass:"title"},[t._v("面磨后清洗单元")]),s("base-table",{attrs:{page:t.listQuery1.current,limit:t.listQuery1.size,pageWidth:40,"table-props":t.tableProps1,"table-data":t.tableData3,"max-height":t.tableH}})],1),s("el-col",{staticClass:"area",attrs:{span:6}},[s("span",{staticClass:"title"},[t._v("面磨单元")]),s("base-table",{attrs:{page:t.listQuery2.current,limit:t.listQuery2.size,pageWidth:40,"table-props":t.tableProps1,"table-data":t.tableData4,"max-height":t.tableH}})],1),s("el-col",{staticClass:"area",attrs:{span:4}},[s("span",{staticClass:"title"},[t._v("磨边后清洗单元")]),s("base-table",{attrs:{page:t.listQuery2.current,limit:t.listQuery2.size,pageWidth:40,"table-props":t.tableProps2,"table-data":t.tableData5,"max-height":t.tableH2}}),s("span",{staticClass:"title"},[t._v("边检单元")]),s("base-table",{attrs:{page:t.listQuery2.current,limit:t.listQuery2.size,pageWidth:40,"table-props":t.tableProps2,"table-data":t.tableData5,"max-height":t.tableH2}})],1),s("el-col",{staticClass:"area",attrs:{span:4}},[s("span",{staticClass:"title"},[t._v("精切磨边单元")]),s("base-table",{attrs:{page:t.listQuery1.current,limit:t.listQuery1.size,pageWidth:40,"table-props":t.tableProps2,"table-data":t.tableData6,"max-height":t.tableH}})],1)],1)],1)},r=[],e=a(475),h=function(){var t=this;t._self._c;return t._m(0)},d=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"root-box",attrs:{id:"root"}},[s("canvas",{staticClass:"canvas",staticStyle:{width:"1640px",height:"235px",transform:"scale(1)",top:"0px",left:"0px"},attrs:{id:"productLine",width:"1640px",height:"235px"}},[t._v("您的浏览器版本过低不支持canvas,请升级浏览器或使用chrome浏览器")]),s("canvas",{staticClass:"canvas",staticStyle:{width:"1640px",height:"235px",transform:"scale(1)",top:"0px",left:"0px"},attrs:{id:"glassAndAlarm",width:"1640px",height:"235px"}})])}],l=a(6171),w={name:"ProductionLineDiagram",data(){return{canvas:"",ctx:"",root:"",canvasReset:"",canvas2:"",ctx2:"",canvasReset2:"",timer:""}},mounted(){this.root=document.querySelector("#root"),this.canvas=document.querySelector("#productLine"),this.canvas2=document.querySelector("#glassAndAlarm"),this.ctx=this.canvas.getContext("2d"),this.ctx2=this.canvas2.getContext("2d"),this.canvasReset=(0,l.D)((()=>{this.resetSize()}),500),this.canvasReset2=(0,l.D)((()=>{this.resetSize2()}),500),window.addEventListener("resize",(()=>{this.canvasReset(),this.canvasReset2()})),this.getChart(),this.resetSize(),this.resetSize2(),this.getGlass()},methods:{resetSize(){let t=parseFloat(getComputedStyle(this.root).width),s=parseFloat(getComputedStyle(this.root).height),a=parseFloat(this.canvas.style.width),i=parseFloat(this.canvas.style.height),r=t/a,e=s/i,h=r>e?e:r;this.canvas.style.transform="scale("+h+")",this.canvas.style.top=235*(e-1)/2+"px",this.canvas.style.left=1640*(r-1)/2+"px"},resetSize2(){let t=parseFloat(getComputedStyle(this.root).width),s=parseFloat(getComputedStyle(this.root).height),a=parseFloat(this.canvas2.style.width),i=parseFloat(this.canvas2.style.height),r=t/a,e=s/i,h=r>e?e:r;this.canvas2.style.transform="scale("+h+")",this.canvas2.style.top=235*(e-1)/2+"px",this.canvas2.style.left=1640*(r-1)/2+"px"},getChart(){this.getArea1(),this.getArea2(),this.getArea3(),this.getText()},getArea1(){this.drawRect(22,43,28,22,"#B2FFC8",!0),this.drawRect(66,43,28,22,"#B2FFC8",!0),this.drawRect(22,161,28,22,"#B2FFC8",!0),this.drawRect(14,86,6,22,"#FF5050",!0),this.drawRect(14,122,6,22,"#FF5050",!0),this.drawRect(24,92,12,12,"#FFA15F",!0),this.drawRect(24,126,12,12,"#FFA15F",!0),this.drawCircle(30,98,4,"#FFDC5F"),this.drawCircle(30,132,4,"#FFDC5F"),this.drawRect(34,97,10,2,"#FFDC5F",!0),this.drawRect(34,131,10,2,"#FFDC5F",!0),this.drawRect(60,102,44,34,"#FFA15F",!0),this.drawRect(60,125,48,4,"#B2FFC8",!0),this.drawRect(59,78,12,12,"#FFA15F",!0),this.drawCircle(65,84,4,"#FFDC5F"),this.drawRect(554,51,16,147,"#9F59CA",!0),this.drawRect(554,51,16,147,"#9F59CA",!0),this.drawRect(576,51,16,147,"#9F59CA",!0),this.drawRect(82,75,510,18,"#FFA15F",!0);for(let t=0;t<26;t++)this.drawLine(101+19*t,75,101+19*t,93,"#F7670D",.5);this.drawLine(68,84,84,93,"#FFDC5F",2),this.drawLine(84,93,102,84,"#FFDC5F",2),this.drawRect(337,67,146,34,"#E1E1E1",!0),this.drawRect(164,74,27,22,"#EF779F",!0),this.drawRect(191,74,43,22,"#FF5050",!0),this.drawRect(234,74,43,22,"#5D76FD",!0)},getArea2(){this.drawRect(615,52,16,16,"#D3D1FF",!0),this.drawRect(679,52,16,16,"#D3D1FF",!0),this.drawCompS(615,67),this.drawCompS(656,67),this.drawCompS(615,97),this.drawCompS(656,97),this.drawCompS(615,127),this.drawCompS(656,127),this.drawRect(736,52,16,12,"#D3D1FF",!0),this.drawRect(800,52,16,12,"#D3D1FF",!0),this.drawCompL(736,63),this.drawCompL(779,63),this.drawCompL(736,86),this.drawCompL(779,86),this.drawCompL(736,108),this.drawCompL(779,108),this.drawRect(857,52,16,12,"#D3D1FF",!0),this.drawRect(921,52,16,12,"#D3D1FF",!0),this.drawCompL(857,63),this.drawCompL(900,63),this.drawCompL(857,86),this.drawCompL(900,86),this.drawCompL(857,108),this.drawCompL(900,108),this.drawRect(615,154,16,12,"#D3D1FF",!0),this.drawRect(679,154,16,12,"#D3D1FF",!0),this.drawRect(736,129,16,12,"#D3D1FF",!0),this.drawRect(800,129,16,12,"#D3D1FF",!0),this.drawRect(857,129,16,12,"#D3D1FF",!0),this.drawRect(921,129,16,12,"#D3D1FF",!0),this.drawRect(736,140,264,14,"#D3D1FF",!0),this.drawRect(615,167,473,16,"#D3D1FF",!0),this.drawRect(592,197,479,16,"#D3D1FF",!0),this.drawRect(553,35,389,16,"#D3D1FF",!0),this.drawRect(542,35,11,16,"#9F59CA",!1),this.drawRect(695,35,19,16,"#9F59CA",!1),this.drawRect(979,153,21,16,"#9F59CA",!1),this.drawRect(1037,168,24,16,"#9F59CA",!1),this.drawRect(540,197,52,16,"#9F59CA",!0),this.drawRect(674,197,83,16,"#9F59CA",!1),this.drawRect(1054,198,16,16,"#9F59CA",!1),this.drawMiddleLine()},getArea3(){this.drawRect(1111,193,18,18,"#B2FFC8",!0),this.drawRect(1084,167,20,16,"#6DE08F",!0),this.drawRect(1056,76,18,91,"#FFA15F",!0),this.drawRect(1056,76,208,18,"#FFA15F",!0),this.drawRect(1077,73,44,26,"#EF779F",!0),this.drawRect(1139,69,105,34,"#E1E1E1",!0);for(let t=0;t<4;t++)this.drawLine(1056,97+17*t,1074,97+17*t,"#F7670D",.5);this.drawRect(1113,167,14,14,"#FFA15F",!0),this.drawRect(1139,195,14,14,"#FFA15F",!0),this.drawCircle(1120,174,4,"#FFDC5F"),this.drawCircle(1146,202,4,"#FFDC5F"),this.drawLine(1120,178,1120,192,"#FFDC5F",2,!0),this.drawLine(1146,202,1135,185,"#FFDC5F",2,!0),this.drawLine(1135,185,1146,164,"#FFDC5F",2,!0),this.drawRect(1155,164,6,22,"#FF5050",!0),this.drawRectD(),this.drawLine(1265,76,1288,76,"#6DE08F",1,!1),this.drawLine(1288,60,1288,100,"#6DE08F",1,!1),this.drawLine(1351,65,1351,106,"#6DE08F",1,!1),this.drawLine(1373,65,1373,106,"#6DE08F",1,!1),this.drawLine(1437,60,1437,100,"#6DE08F",1,!1),this.drawLine(1438,78,1462,78,"#6DE08F",1,!1),this.drawLine(1462,80,1462,100,"#6DE08F",1,!1),this.drawLine(1483,80,1483,100,"#6DE08F",1,!1),this.drawLine(1513,76,1513,104,"#6DE08F",1,!1),this.drawLine(1548,76,1548,104,"#6DE08F",1,!1),this.drawLine(1570,80,1570,100,"#6DE08F",1,!1),this.drawLine(1595,80,1595,100,"#6DE08F",1,!1),this.drawLine(1605,80,1605,100,"#6DE08F",1,!1),this.drawCircle(1590,113,4,"#C9C7EF"),this.drawLine(1593,115,1600,121,"#E1E1E1",5,!0),this.drawLine(1598,121,1607,115,"#E1E1E1",5,!0),this.drawLine(1604,111,1610,118,"#B1B1B1",5,!0)},drawMiddleLine(){this.drawLine(572,35,572,50,"#B7B5F6",1),this.drawLine(591,35,591,50,"#B7B5F6",1),this.drawLine(615,35,615,50,"#B7B5F6",1),this.drawLine(631,35,631,50,"#B7B5F6",1),this.drawLine(654,35,654,50,"#B7B5F6",1),this.drawLine(673,35,673,50,"#B7B5F6",1),this.drawLine(735,35,735,50,"#B7B5F6",1),this.drawLine(752,35,752,50,"#B7B5F6",1),this.drawLine(800,35,800,50,"#B7B5F6",1),this.drawLine(815,35,815,50,"#B7B5F6",1),this.drawLine(857,35,857,50,"#B7B5F6",1),this.drawLine(872,35,872,50,"#B7B5F6",1),this.drawLine(920,35,920,50,"#B7B5F6",1),this.drawLine(615,65,630,65,"#B7B5F6",1),this.drawLine(679,65,694,65,"#B7B5F6",1),this.drawLine(736,64,751,64,"#B7B5F6",1),this.drawLine(800,63,815,63,"#B7B5F6",1),this.drawLine(857,64,872,64,"#B7B5F6",1),this.drawLine(921,64,936,64,"#B7B5F6",1),this.drawLine(752,140,752,154,"#B7B5F6",1),this.drawLine(794,140,794,154,"#B7B5F6",1),this.drawLine(816,140,816,154,"#B7B5F6",1),this.drawLine(857,140,857,154,"#B7B5F6",1),this.drawLine(873,140,873,154,"#B7B5F6",1),this.drawLine(903,140,903,154,"#B7B5F6",1),this.drawLine(918,140,918,154,"#B7B5F6",1),this.drawLine(937,140,937,154,"#B7B5F6",1),this.drawLine(961,140,961,154,"#B7B5F6",1),this.drawLine(980,140,980,154,"#B7B5F6",1)},drawCompS(t,s){this.drawRect(t,s,39,26,"#D3D1FF",!0),this.drawCircle(t+6,s+6,4,"#B7B5F6"),this.drawCircle(t+6,s+18,4,"#B7B5F6"),this.drawCircle(t+12+3,s+6,4,"#B7B5F6"),this.drawCircle(t+12+3,s+18,4,"#B7B5F6"),this.drawCircle(t+20+6,s+6,4,"#B7B5F6"),this.drawCircle(t+20+6,s+18,4,"#B7B5F6"),this.drawCircle(t+20+12+3,s+6,4,"#B7B5F6"),this.drawCircle(t+20+12+3,s+18,4,"#B7B5F6")},drawCompL(t,s){this.drawRect(t,s,37,20,"#D3D1FF",!0),this.drawCircle(t+9,s+10,7,"#B7B5F6"),this.drawCircle(t+28,s+10,7,"#B7B5F6")},getText(){this.drawText("7",88,59),this.drawText("6",108,59),this.drawText("5",125,59),this.drawText("4",145,59),this.drawText("3",286,97),this.drawText("2",306,97),this.drawText("1",326,97),this.drawText("5",352,105),this.drawText("4",380,105),this.drawText("3",408,105),this.drawText("2",436,105),this.drawText("1",464,105),this.drawText("3",495,97),this.drawText("2",515,97),this.drawText("1",535,97),this.drawText("17",557,97),this.drawText("18",580,97),this.drawText("16",556,21),this.drawText("15",575,21),this.drawText("14",597,21),this.drawText("13",615,21),this.drawText("12",636,21),this.drawText("11",658,21),this.drawText("10",680,21),this.drawText("9",703,21),this.drawText("8",722,21),this.drawText("7",742,21),this.drawText("6",773,21),this.drawText("5",807,21),this.drawText("4",835,21),this.drawText("3",862,21),this.drawText("2",895,21),this.drawText("1",925,21),this.drawText("3",604,75),this.drawText("2",604,104),this.drawText("1",604,135),this.drawText("6",698,75),this.drawText("5",698,104),this.drawText("4",698,135),this.drawText("9",720,69),this.drawText("8",720,90),this.drawText("7",720,112),this.drawText("12",820,69),this.drawText("11",820,90),this.drawText("10",820,112),this.drawText("15",840,69),this.drawText("14",840,90),this.drawText("13",840,112),this.drawText("18",942,69),this.drawText("17",942,90),this.drawText("16",942,112),this.drawText("33",737,156),this.drawText("32",770,156),this.drawText("31",798,156),this.drawText("30",827,156),this.drawText("29",857,156),this.drawText("28",890,156),this.drawText("27",918,156),this.drawText("26",945,156),this.drawText("25",964,124),this.drawText("24",983,124),this.drawText("23",1002,156),this.drawText("22",618,186),this.drawText("21",640,186),this.drawText("20",663,186),this.drawText("19",685,186),this.drawText("18",708,186),this.drawText("17",729,186),this.drawText("16",753,186),this.drawText("15",775,186),this.drawText("14",795,186),this.drawText("13",815,186),this.drawText("12",836,186),this.drawText("11",855,186),this.drawText("10",876,186),this.drawText("9",898,186),this.drawText("8",918,186),this.drawText("7",938,186),this.drawText("6",956,186),this.drawText("5",975,186),this.drawText("4",995,186),this.drawText("3",1013,186),this.drawText("2",1047,186),this.drawText("1",1070,186),this.drawText("0",1090,186),this.drawText("3-4",1032,153),this.drawText("3-3",1032,137),this.drawText("3-2",1032,120),this.drawText("3-1",1032,100),this.drawText("2",1062,55),this.drawText("1",1097,55),this.drawText("3",1150,108),this.drawText("2",1187,108),this.drawText("1",1224,108),this.drawText("13",1269,37),this.drawText("12",1269,116),this.drawText("11",1318,116),this.drawText("10",1357,116),this.drawText("9",1395,116),this.drawText("8",1421,116),this.drawText("7",1445,37),this.drawText("6",1445,116),this.drawText("5",1469,116),this.drawText("4",1492,116),this.drawText("3",1524,116),this.drawText("2",1556,116),this.drawText("1",1577,116)},drawRectD(){this.ctx.beginPath(),this.ctx.moveTo(1264,53),this.ctx.lineTo(1264,100),this.ctx.lineTo(1288,100),this.ctx.lineTo(1288,107),this.ctx.lineTo(1327,107),this.ctx.lineTo(1327,112),this.ctx.lineTo(1351,112),this.ctx.lineTo(1351,107),this.ctx.lineTo(1374,107),this.ctx.lineTo(1374,112),this.ctx.lineTo(1398,112),this.ctx.lineTo(1398,107),this.ctx.lineTo(1437,107),this.ctx.lineTo(1437,100),this.ctx.lineTo(1483,100),this.ctx.lineTo(1483,104),this.ctx.lineTo(1513,104),this.ctx.lineTo(1513,107),this.ctx.lineTo(1548,107),this.ctx.lineTo(1548,104),this.ctx.lineTo(1570,104),this.ctx.lineTo(1570,100),this.ctx.lineTo(1596,100),this.ctx.lineTo(1596,107),this.ctx.lineTo(1604,107),this.ctx.lineTo(1604,100),this.ctx.lineTo(1621,100),this.ctx.lineTo(1621,80),this.ctx.lineTo(1604,80),this.ctx.lineTo(1604,65),this.ctx.lineTo(1596,65),this.ctx.lineTo(1596,80),this.ctx.lineTo(1570,80),this.ctx.lineTo(1570,76),this.ctx.lineTo(1548,76),this.ctx.lineTo(1548,72),this.ctx.lineTo(1513,72),this.ctx.lineTo(1513,76),this.ctx.lineTo(1483,76),this.ctx.lineTo(1483,80),this.ctx.lineTo(1462,80),this.ctx.lineTo(1462,53),this.ctx.lineTo(1437,53),this.ctx.lineTo(1437,60),this.ctx.lineTo(1373,60),this.ctx.lineTo(1373,65),this.ctx.lineTo(1350,65),this.ctx.lineTo(1350,60),this.ctx.lineTo(1288,60),this.ctx.lineTo(1288,53),this.ctx.fillStyle="#B2FFC8",this.ctx.fill()},drawRect(t,s,a,i,r,e=!1){this.ctx.beginPath(),this.ctx.fillStyle=r||"#000",e?(this.ctx.shadowOffsetY=2,this.ctx.shadowBlur=4,this.ctx.shadowColor="rgba(0, 0, 0, 0.25)"):(this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),this.ctx.fillRect(t,s,a,i),this.ctx.closePath()},drawRect2(t,s,a,i,r,e){this.ctx2.beginPath(),"glass"===r?(this.ctx2.fillStyle=e||"#000",this.ctx2.fillRect(t,s,a,i)):(this.ctx2.strokeStyle=e||"#000",this.ctx2.strokeRect(t,s,a,i)),this.ctx2.closePath()},drawGlass(t,s){this.drawRect2(t,s,15,12,"glass","green")},drawAlarm(t,s,a,i){this.drawRect2(t,s,a,i,"alarm","red")},drawCircle(t,s,a,i){this.ctx.beginPath(),this.ctx.arc(t,s,a,0,2*Math.PI),this.ctx.fillStyle=i||"#000",this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.fill()},drawLine(t,s,a,i,r,e,h=!1){this.ctx.beginPath(),this.ctx.moveTo(t,s),this.ctx.lineTo(a,i),this.ctx.lineWidth=e||1,this.ctx.strokeStyle=r||"#000",h?(this.ctx.shadowOffsetY=2,this.ctx.shadowBlur=4,this.ctx.shadowColor="rgba(0, 0, 0, 0.25)"):(this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),this.ctx.stroke(),this.ctx.closePath()},drawText(t,s,a){this.ctx.font="12px 楷体",this.ctx.textAlign="left",this.ctx.textBaseline="top",this.ctx.fillStyle="rgba(0,0,0,0.55)",this.ctx.fillText(t,s,a)},getGlass(){this.drawGlass(84,78),this.drawGlass(103,78),this.drawGlass(121,78),this.drawGlass(141,78),this.drawGlass(277,78),this.drawGlass(294,78),this.drawGlass(311,78),this.drawGlass(345,78),this.drawGlass(375,78),this.drawGlass(401,78),this.drawGlass(430,78),this.drawGlass(458,78),this.drawGlass(490,78),this.drawGlass(510,78),this.drawGlass(530,78),this.drawGlass(553,78),this.drawGlass(575,78),this.drawGlass(553,37),this.drawGlass(575,37),this.drawGlass(595,37),this.drawGlass(615,37),this.drawGlass(635,37),this.drawGlass(655,37),this.drawGlass(678,37),this.drawGlass(698,37),this.drawGlass(717,37),this.drawGlass(735,37),this.drawGlass(770,37),this.drawGlass(801,37),this.drawGlass(830,37),this.drawGlass(857,37),this.drawGlass(890,37),this.drawGlass(920,37),this.drawGlass(614,75),this.drawGlass(614,104),this.drawGlass(614,135),this.drawGlass(678,75),this.drawGlass(678,104),this.drawGlass(678,135),this.drawGlass(736,69),this.drawGlass(736,90),this.drawGlass(736,112),this.drawGlass(800,69),this.drawGlass(800,90),this.drawGlass(800,112),this.drawGlass(856,69),this.drawGlass(856,90),this.drawGlass(856,112),this.drawGlass(922,69),this.drawGlass(922,90),this.drawGlass(922,112),this.drawGlass(736,140),this.drawGlass(767,140),this.drawGlass(795,140),this.drawGlass(825,140),this.drawGlass(855,140),this.drawGlass(888,140),this.drawGlass(918,140),this.drawGlass(963,140),this.drawGlass(981,140),this.drawGlass(943,140),this.drawGlass(982,155),this.drawGlass(615,170),this.drawGlass(637,170),this.drawGlass(660,170),this.drawGlass(683,170),this.drawGlass(705,170),this.drawGlass(727,170),this.drawGlass(750,170),this.drawGlass(773,170),this.drawGlass(793,170),this.drawGlass(813,170),this.drawGlass(833,170),this.drawGlass(853,170),this.drawGlass(873,170),this.drawGlass(893,170),this.drawGlass(913,170),this.drawGlass(932,170),this.drawGlass(951,170),this.drawGlass(970,170),this.drawGlass(990,170),this.drawGlass(1009,170),this.drawGlass(1042,170),this.drawGlass(1065,170),this.drawGlass(1085,170),this.drawGlass(1058,153),this.drawGlass(1058,136),this.drawGlass(1058,119),this.drawGlass(1058,100),this.drawGlass(1058,80),this.drawGlass(1090,80),this.drawGlass(1145,80),this.drawGlass(1180,80),this.drawGlass(1220,80),this.drawGlass(1268,60),this.drawGlass(1268,84),this.drawGlass(1315,84),this.drawGlass(1354,84),this.drawGlass(1390,84),this.drawGlass(1415,84),this.drawGlass(1442,60),this.drawGlass(1442,84),this.drawGlass(1465,84),this.drawGlass(1490,84),this.drawGlass(1522,84),this.drawGlass(1551,84),this.drawGlass(1575,84)},getAlarm(){this.drawAlarm(20,82,30,30),this.drawAlarm(20,117,30,30),this.drawAlarm(55,72,20,25),this.drawAlarm(55,98,53,45),this.drawAlarm(80,72,20,25),this.drawAlarm(100,72,20,25),this.drawAlarm(120,72,20,25),this.drawAlarm(140,72,20,25),this.drawAlarm(275,72,20,25),this.drawAlarm(293,72,20,25),this.drawAlarm(310,72,20,25),this.drawAlarm(330,62,157,45),this.drawAlarm(486,72,20,25),this.drawAlarm(506,72,20,25),this.drawAlarm(526,72,20,25),this.drawAlarm(550,72,20,25),this.drawAlarm(572,72,20,25),this.drawAlarm(540,30,155,25),this.drawAlarm(695,30,250,25),this.drawAlarm(612,65,42,30),this.drawAlarm(612,95,42,30),this.drawAlarm(612,125,42,30),this.drawAlarm(654,65,42,30),this.drawAlarm(654,95,42,30),this.drawAlarm(654,125,42,30),this.drawAlarm(734,62,42,70),this.drawAlarm(776,62,42,70),this.drawAlarm(854,62,42,70),this.drawAlarm(897,62,42,70),this.drawAlarm(734,137,268,29),this.drawAlarm(612,168,418,18),this.drawAlarm(1035,168,27,18),this.drawAlarm(1080,165,27,20),this.drawAlarm(670,195,90,20),this.drawAlarm(1051,196,20,20),this.drawAlarm(1137,192,20,20),this.drawAlarm(1110,165,20,20),this.drawAlarm(1150,163,15,25),this.drawAlarm(1135,65,113,43),this.drawAlarm(1263,53,25,25),this.drawAlarm(1287,58,65,57),this.drawAlarm(1352,58,23,57),this.drawAlarm(1376,58,36,57),this.drawAlarm(1413,68,20,40),this.drawAlarm(1440,55,20,20),this.drawAlarm(1462,80,20,20),this.drawAlarm(1485,75,25,30),this.drawAlarm(1510,70,40,40),this.drawAlarm(1547,75,22,30),this.drawAlarm(1570,75,22,30),this.drawAlarm(1594,75,30,30),this.drawAlarm(1583,108,30,20)},getGlassAndAlarm(){this.ctx2.clearRect(0,0,parseFloat(getComputedStyle(this.root).width),parseFloat(getComputedStyle(this.root).height));let t=[{x:84,y:78},{x:103,y:78},{x:121,y:78},{x:141,y:78},{x:277,y:78},{x:294,y:78},{x:311,y:78},{x:345,y:78},{x:375,y:78},{x:401,y:78},{x:430,y:78},{x:458,y:78}];for(let s of t){let t=parseInt(2*Math.random());console.log(t),1===t&&(s.x="",s.y="")}for(let s=0;s<t.length;s++)t[s].x&&this.drawGlass(t[s].x,t[s].y)}},beforeDestroy(){clearInterval(this.timer)}},c=w,n=a(1001),x=(0,n.Z)(c,h,d,!1,null,"690601c2",null),o=x.exports;const F=[{prop:"name",label:"设备名称",minWidth:98},{prop:"glassID",label:"玻璃ID",minWidth:98},{prop:"glassID1",label:"研磨类型",minWidth:98}],T=[{prop:"name",label:"设备名称",minWidth:98},{prop:"glassID",label:"玻璃ID",minWidth:98}];var m={name:"ProductionLineStatus",data(){return{formConfig:[{type:"select",label:"产线",selectOptions:JSON.parse(localStorage.getItem("publicList")).proLineVoList,param:"proLineId",defaultSelect:""}],listQuery1:{current:1,size:10},listQuery2:{current:1,size:5},tableH:(0,e.NC)(479),tableH2:(.68*(0,e.NC)(238)-50)/2,tableProps1:F,tableData1:[],tableData2:[],tableData3:[],tableProps2:T,tableData4:[],tableData5:[],tableData6:[]}},components:{ProductionLineDiagram:o},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,e.NC)(479),this.tableH2=(.68*(0,e.NC)(238)-50)/2})),this.getTableMsg()},methods:{getTableMsg(){let t=[];for(let s=0;s<16;s++){let a={};a.id=s,a.name="测试"+s,t.push(a)}this.tableData1=t,this.tableData2=t,this.tableData3=t,this.tableData4=t,this.tableData5=t,this.tableData6=t}}},p=m,G=(0,n.Z)(p,i,r,!1,null,"49c7aca2",null),C=G.exports},6171:function(t,s,a){function i(t,s,a){let i,r,e,h,d;const l=function(){const w=+new Date-h;w<s&&w>0?i=setTimeout(l,s-w):(i=null,a||(d=t.apply(e,r),i||(e=r=null)))};return function(...r){e=this,h=+new Date;const w=a&&!i;return i||(i=setTimeout(l,s)),w&&(d=t.apply(e,r),e=r=null),d}}a.d(s,{D:function(){return i}})}}]);