<%@ page contentType="text/html;charset=UTF-8"%>
|
|
<html>
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<style>
|
html,body{
|
width: 100%;
|
height: 100%;
|
padding: 0;
|
margin: 0;
|
overflow: hidden;
|
}
|
#header1 {
|
width: 100%;
|
height: 5%;
|
background-color: white;
|
display: inline-block;
|
text-align: center;
|
font-size: 40px;
|
}
|
#header {
|
width: 100%;
|
height: 25%;
|
background-color: white;
|
display: flex;
|
}
|
#footer {
|
width: 100%;
|
height: 55%;
|
overflow: visible; /* 确保设备图上移后不被自身容器裁剪 */
|
|
}
|
#main1 {
|
width: 15%;
|
height: 100%;
|
}
|
#main2 {
|
width: 20%;
|
height: 100%;
|
}
|
#main4 {
|
width: 20%;
|
height: 100%;
|
}
|
#main3 {
|
width: 45%;
|
height: 100%;
|
display: flex;
|
}
|
#main1-1 {
|
width: 100%;
|
height: 25%;
|
}
|
#main1-2 {
|
width: 100%;
|
height: 25%;
|
}
|
#main3-1 {
|
width: 50%;
|
height: 100%;
|
}
|
#main3-2 {
|
width: 50%;
|
height: 100%;
|
|
}
|
#main4-1 {
|
width: 100%;
|
height: 30%;
|
|
}
|
#main4-2 {
|
width: 100%;
|
height: 30%;
|
|
}
|
#main4-3 {
|
width: 100%;
|
height: 30%;
|
|
}
|
#main1-1-1 {
|
font-size: 25px;
|
margin-top: 2%;
|
}
|
#main1-2-1 {
|
font-size: 25px;
|
margin-top: 2%;
|
}
|
#main3-1-1 {
|
width: 100%;
|
height: 20%;
|
}
|
#main3-1-2 {
|
width: 100%;
|
height: 80%;
|
}
|
#main3-2-1 {
|
width: 100%;
|
height: 20%;
|
}
|
#main3-2-2 {
|
width: 100%;
|
height: 80%;
|
}
|
|
|
.boli {
|
opacity:0.5;
|
|
}
|
|
|
|
|
.divGrenn{
|
background-color:green;
|
display:block
|
}
|
.divRed{
|
background-color:red;
|
display:block
|
}
|
.divYellow{
|
background-color:yellow;
|
display:block
|
}
|
.divnull{
|
display:none
|
}
|
/* -45
|
-50
|
*/
|
#A4 {
|
width: 65px;
|
height: 55px;
|
position: Absolute;
|
top: 775px;
|
left: 1250px
|
}
|
#warn-734,#warn-743{
|
top: 555px !important;
|
left: 1421px !important;
|
width: 64px !important;
|
height: 22px !important;
|
position: Absolute;
|
}
|
#warn-735,#warn-744{
|
top: 555px !important;
|
left: 1406px !important;
|
width: 12px !important;
|
height: 22px !important;
|
position: Absolute;
|
}
|
#warn-736,#warn-745{
|
top: 555px !important;
|
left: 1376px !important;
|
width: 15px !important;
|
height: 22px !important;
|
position: Absolute;
|
}
|
#warn-737,#warn-746{
|
top: 523px !important;
|
left: 1401px !important;
|
width: 18px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-738,#warn-747{
|
top: 523px !important;
|
left: 1373px !important;
|
width: 18px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-740,#warn-749{
|
top: 510px !important;
|
left: 1385px !important;
|
width: 18px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-739,#warn-748{
|
top: 510px !important;
|
left: 1405px !important;
|
width: 18px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-741,#warn-750{
|
top: 510px !important;
|
left: 1366px !important;
|
width: 18px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-742,#warn-751{
|
top: 510px !important;
|
left: 1348px !important;
|
width: 18px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-812{
|
top: 509px !important; /* 原top=562px × 0.8966≈504px */
|
left: 1266px !important;
|
width: 20px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-813{
|
top: 570px !important; /* 原top=636px × 0.8966≈570px */
|
left: 1262px !important;
|
width: 24px !important;
|
height: 20px !important;
|
position: Absolute;
|
}
|
#warn-1062{
|
top: 521px !important; /* 原top=581px × 0.8966≈521px */
|
left: 1180px !important;
|
width: 25px !important;
|
height: 20px !important;
|
position: Absolute;
|
}
|
#warn-1063{
|
top: 521px !important; /* 原top=581px × 0.8966≈521px */
|
left: 1180px !important;
|
width: 25px !important;
|
height: 20px !important;
|
position: Absolute;
|
}
|
#warn-3162{
|
top: 557px !important; /* 原621px × 0.8966≈557px */
|
left: 1180px !important;
|
width: 25px !important;
|
height: 20px !important;
|
position: Absolute;
|
}
|
#warn-3163{
|
top: 557px !important; /* 原621px × 0.8966≈557px */
|
left: 1180px !important;
|
width: 25px !important;
|
height: 20px !important;
|
position: Absolute;
|
}
|
#warn-1153{
|
top: 595px !important; /* 原663px × 0.8966≈595px */
|
left: 1263px !important;
|
width: 22px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-1154{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 1264px !important;
|
width: 23px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-1155{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 1247px !important;
|
width: 17px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-1156{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 1230px !important;
|
width: 17px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-1157{
|
top: 610px !important; /* 原681px × 0.8966≈610px */
|
left: 1209px !important;
|
width: 20px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-1158{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 1174px !important;
|
width: 34px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1159{
|
top: 610px !important; /* 原681px × 0.8966≈610px */
|
left: 1153px !important;
|
width: 20px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-1160{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 1137px !important;
|
width: 16px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1161{
|
top: 587px !important; /* 原655px × 0.8966≈587px */
|
left: 1212px !important;
|
width: 16px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-1162{
|
top: 575px !important; /* 原641px × 0.8966≈575px */
|
left: 1212px !important;
|
width: 16px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-1163{
|
top: 552px !important; /* 原616px × 0.8966≈552px */
|
left: 1212px !important;
|
width: 16px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-1164{
|
top: 541px !important; /* 原603px × 0.8966≈541px */
|
left: 1212px !important;
|
width: 16px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-1165{
|
top: 541px !important; /* 原603px × 0.8966≈541px */
|
left: 1156px !important;
|
width: 16px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-1166{
|
top: 552px !important; /* 原616px × 0.8966≈552px */
|
left: 1156px !important;
|
width: 16px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-1167{
|
top: 575px !important; /* 原641px × 0.8966≈575px */
|
left: 1156px !important;
|
width: 16px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-1168{
|
top: 587px !important; /* 原655px × 0.8966≈587px */
|
left: 1156px !important;
|
width: 16px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-1254{
|
display:None;
|
position: Absolute;
|
}
|
#warn-1343{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 1042px !important;
|
width: 16px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-1344{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 1018px !important;
|
width: 22px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1345{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 999px !important;
|
width: 17px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1346{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 982px !important;
|
width: 16px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1347{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 780px !important;
|
width: 202px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1348{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 760px !important;
|
width: 20px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1349{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 746px !important;
|
width: 15px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1350{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 710px !important;
|
width: 15px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1351{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 715px !important;
|
width: 15px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1352{
|
top: 603px !important; /* 原680px × 0.8966≈603px */
|
left: 697px !important;
|
width: 18px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-1353{
|
top: 589px !important; /* 原657px × 0.8966≈589px */
|
left: 1000px !important;
|
width: 13px !important;
|
height: 16px !important;
|
position: Absolute;
|
}
|
#warn-1354{
|
top: 570px !important; /* 原636px × 0.8966≈570px */
|
left: 1000px !important;
|
width: 13px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-1355{
|
top: 553px !important; /* 原617px × 0.8966≈553px */
|
left: 999px !important;
|
width: 16px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-1661{
|
display:none;
|
position: Absolute;
|
}
|
#warn-1723{
|
top: 600px !important; /* 原675px × 0.8966≈605px */
|
left: 1096px !important;
|
width: 23px !important;
|
height: 22px !important;
|
position: Absolute;
|
}
|
#warn-1923{
|
display:none !important;
|
}
|
|
#warn-2110{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 494px !important;
|
width: 38px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2111{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 467px !important;
|
width: 26px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-2112{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 425px !important;
|
width: 40px !important;
|
height: 19px !important;
|
position: Absolute;
|
}
|
#warn-2113{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 425px !important;
|
width: 40px !important;
|
height: 19px !important;
|
position: Absolute;
|
}
|
#warn-2114{
|
top: 603px !important; /* 原679px × 0.8966≈603px */
|
left: 392px !important;
|
width: 31px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-2214{
|
top: 592px !important; /* 原660px × 0.8966≈592px */
|
left: 323px !important;
|
width: 31px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-2215{
|
top: 567px !important; /* 原632px × 0.8966≈567px */
|
left: 325px !important;
|
width: 21px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-2216{
|
top: 549px !important; /* 原612px × 0.8966≈549px */
|
left: 325px !important;
|
width: 21px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-2217{
|
top: 504px !important; /* 原562px × 0.8966≈504px */
|
left: 325px !important;
|
width: 21px !important;
|
height: 43px !important;
|
position: Absolute;
|
}
|
#warn-2218{
|
top: 504px !important; /* 原562px × 0.8966≈504px */
|
left: 325px !important;
|
width: 21px !important;
|
height: 43px !important;
|
position: Absolute;
|
}
|
#warn-2219{
|
top: 485px !important; /* 原541px × 0.8966≈485px */
|
left: 320px !important;
|
width: 32px !important;
|
height: 13px !important;
|
position: Absolute;
|
}
|
#warn-2310{
|
top: 607px !important; /* 原677px × 0.8966≈607px */
|
left: 322px !important;
|
width: 36px !important;
|
height: 22px !important;
|
position: Absolute;
|
}
|
#warn-2311{
|
top: 476px !important; /* 原519px × 0.8966≈476px */
|
left: 317px !important;
|
width: 36px !important;
|
height: 22px !important;
|
position: Absolute;
|
}
|
#warn-2314{
|
top: 476px !important; /* 原519px × 0.8966≈476px */
|
left: 108px !important;
|
width: 36px !important;
|
height: 22px !important;
|
position: Absolute;
|
}
|
#warn-2312{
|
top: 477px !important; /* 原522px × 0.8966≈477px */
|
left: 253px !important;
|
width: 26px !important;
|
height: 16px !important;
|
position: Absolute;
|
}
|
#warn-2313{
|
top: 477px !important; /* 原522px × 0.8966≈477px */
|
left: 182px !important;
|
width: 27px !important;
|
height: 16px !important;
|
position: Absolute;
|
}
|
#warn-2421{
|
top: 506px !important; /* 原564px × 0.8966≈506px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2422{
|
top: 524px !important; /* 原585px × 0.8966≈524px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2423{
|
top: 543px !important; /* 原606px × 0.8966≈543px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2424{
|
top: 562px !important; /* 原627px × 0.8966≈562px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2425{
|
top: 581px !important; /* 原648px × 0.8966≈581px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2426{
|
top: 599px !important; /* 原669px × 0.8966≈599px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2427{
|
top: 619px !important; /* 原690px × 0.8966≈619px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2428{
|
top: 638px !important; /* 原712px × 0.8966≈638px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-2429{
|
top: 660px !important; /* 原736px × 0.8966≈660px */
|
left: 113px !important;
|
width: 22px !important;
|
height: 31px !important;
|
position: Absolute;
|
}
|
#warn-2510{
|
top: 707px !important; /* 原814px × 0.8966≈707px */
|
left: 892px !important;
|
width: 33px !important;
|
height: 19px !important;
|
position: Absolute;
|
}
|
#warn-2511{
|
top: 710px !important; /* 原815px × 0.8966≈710px */
|
left: 927px !important;
|
width: 28px !important;
|
height: 15px !important;
|
position: Absolute;
|
}
|
#warn-2512,#warn-2513{
|
top: 710px !important; /* 原815px × 0.8966≈710px */
|
left: 958px !important;
|
width: 39px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-2514{
|
top: 709px !important; /* 原816px × 0.8966≈693px */
|
left: 998px !important;
|
width: 26px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-2614{
|
top: 693px !important; /* 原795px × 0.8966≈693px */
|
left: 1127px !important;
|
width: 28px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-2615{
|
top: 693px !important; /* 原795px × 0.8966≈693px */
|
left: 1155px !important;
|
width: 30px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-2616{
|
top: 693px !important; /* 原795px × 0.8966≈693px */
|
left: 1186px !important;
|
width: 30px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-2617{
|
top: 693px !important; /* 原795px × 0.8966≈693px */
|
left: 1216px !important;
|
width: 30px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-2618{
|
top: 693px !important; /* 原795px × 0.8966≈693px */
|
left: 1246px !important;
|
width: 30px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-2619{
|
top: 693px !important; /* 原795px × 0.8966≈693px */
|
left: 1276px !important;
|
width: 30px !important;
|
height: 14px !important;
|
position: Absolute;
|
}
|
#warn-2710{
|
top: 707px !important; /* 原811px × 0.8966≈727px */
|
left: 1372px !important;
|
width: 38px !important;
|
height: 21px !important;
|
position: Absolute;
|
}
|
#warn-2711{
|
top: 710px !important; /* 原815px × 0.8966≈710px */
|
left: 1411px !important;
|
width: 26px !important;
|
height: 16px !important;
|
position: Absolute;
|
}
|
#warn-2712{
|
top: 710px !important; /* 原815px × 0.8966≈710px */
|
left: 1440px !important;
|
width: 39px !important;
|
height: 16px !important;
|
position: Absolute;
|
}
|
#warn-2713{
|
top: 710px !important; /* 原815px × 0.8966≈710px */
|
left: 1480px !important;
|
width: 26px !important;
|
height: 16px !important;
|
position: Absolute;
|
}
|
#warn-2714{
|
top: 707px !important; /* 原814px × 0.8966≈707px */
|
left: 1512px !important;
|
width: 32px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-2814{
|
top: 688px !important; /* 原788px × 0.8966≈707px */
|
left: 1606px !important;
|
width: 45px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-2815{
|
top: 688px !important; /* 原788px × 0.8966≈707px */
|
left: 1651px !important;
|
width: 45px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-2816{
|
top: 688px !important; /* 原788px × 0.8966≈707px */
|
left: 1651px !important;
|
width: 45px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-2817{
|
top: 688px !important; /* 原788px × 0.8966≈707px */
|
left: 1711px !important;
|
width: 45px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-2818{
|
top: 688px !important; /* 原788px × 0.8966≈707px */
|
left: 1756px !important;
|
width: 45px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-2819{
|
top: 688px !important; /* 原788px × 0.8966≈707px */
|
left: 1711px !important;
|
width: 45px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-2961{
|
top: 688px !important; /* 原788px × 0.8966≈707px */
|
left: 1711px !important;
|
width: 45px !important;
|
height: 23px !important;
|
position: Absolute;
|
}
|
#warn-3037{
|
top: 729px !important; /* 原840px × 0.8966≈729px */
|
left: 1836px !important;
|
width: 19px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-3038{
|
top: 729px !important; /* 原840px × 0.8966≈729px */
|
left: 1803px !important;
|
width: 32px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-3039{
|
top: 729px !important; /* 原840px × 0.8966≈729px */
|
left: 1771px !important;
|
width: 32px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-3040{
|
top: 729px !important; /* 原840px × 0.8966≈729px */
|
left: 1719px !important;
|
width: 52px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-3041{
|
top: 729px !important; /* 原840px × 0.8966≈729px */
|
left: 1667px !important;
|
width: 52px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-3042{
|
top: 729px !important; /* 原840px × 0.8966≈729px */
|
left: 1615px !important;
|
width: 52px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-3043{
|
top: 729px !important; /* 原840px × 0.8966≈729px */
|
left: 1595px !important;
|
width: 20px !important;
|
height: 12px !important;
|
position: Absolute;
|
}
|
#warn-3044{
|
top: 764px !important; /* 原860px × 0.8966≈771px */
|
left: 1598px !important;
|
width: 14px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-3045{
|
top: 790px !important; /* 原881px × 0.8966≈790px */
|
left: 1598px !important;
|
width: 14px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-3046{
|
top: 743 !important; /* 原860px × 0.8966≈771px */
|
left: 1598px !important;
|
width: 14px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
#warn-3047{
|
top: 782px !important; /* 原881px × 0.8966≈790px */
|
left: 1598px !important;
|
width: 14px !important;
|
height: 18px !important;
|
position: Absolute;
|
}
|
</style>
|
<title>大屏显示</title>
|
</head>
|
<body>
|
<div id="app" style="width: 1920px;height: 1080px;background-color: #7f817cdd;">
|
<div id="header1"><span>海尔智家厨电莱阳工厂玻璃产线</span></div>
|
<div id="header">
|
<div id="main1" v-for='items1 in shuzu1'>
|
<div id="main1-1">当前订单号:
|
<div id="main1-1-1" >{{items1['0_order_id']}}</div>
|
</div>
|
<div id="main1-2">当前产品号:
|
<div id="main1-2-1">{{items1['1_recipe_no']}}</div>
|
</div>
|
<div id="main1-2">当班计划数量:
|
<div id="main1-2-1">{{items1['4_count']}}</div>
|
</div>
|
<div id="main1-2">当班完成数量:
|
<div id="main1-2-1">{{items1['6_glassSum']}} </div>
|
</div>
|
</div>
|
<div id="main4"></div>
|
<div id="main2"></div>
|
<div id="main3">
|
<div id="main3-1">
|
<div id="main3-1-1">总耗电:<span>{{machineElectric[0]['2_total_consumption']}}kw</span></div>
|
<div id="main3-1-2"></div>
|
</div>
|
<div id="main3-2">
|
<div id="main3-2-1">总耗水:<span>{{machineWater[0]['2_total_consumption']}}m³</span></div>
|
<div id="main3-2-2"></div>
|
</div>
|
</div>
|
</div>
|
<div id="footer">
|
<img style="width: 100%;height: 100%;" src="../img/二期大屏.png">
|
<div v-if="warning && warning.length > 0">
|
<div
|
v-for="warnItem in warning"
|
:key="warnItem['0_id']"
|
class="warn-item"
|
:id="'warn-' + warnItem['0_id']"
|
v-show="warnItem['4_state'] === '0'"
|
:title="warnItem['3_content_value'] || '无详细信息'"
|
style="
|
position: absolute;
|
top: 450px;
|
background: rgba(255, 0, 0, 0.4);
|
color: white;
|
z-index: 10;
|
cursor: pointer;
|
"
|
>
|
|
</div>
|
</div>
|
|
</div>
|
|
|
|
<script src="../js/jquery-3.4.1.min.js"></script>
|
<script type="text/javascript" src="../static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
<script src="../js/vue.min.js"></script>
|
<script src="../js/axios.min.js"></script>
|
<script src="../js/mixins.js"></script>
|
<script src="../js/echarts.min.js"></script>
|
|
<script>
|
Vue.prototype.$echarts = echarts;
|
Vue.prototype.$http= axios;
|
let app = new Vue({
|
el:'#app',
|
mixins:[mixin],
|
data:{
|
// shuzu:[{}],
|
shuzu1:[{}],
|
shuzu2:[{}],
|
warning:[],
|
machineElectric:[{}],
|
machineWater:[{}],
|
|
val: {
|
title:{
|
text:'',
|
left:'center'
|
},
|
tooltip: {
|
trigger: 'axis',
|
axisPointer: {
|
type: 'shadow'
|
}
|
},
|
grid: {
|
left: '3%',
|
right: '4%',
|
bottom: '3%',
|
containLabel: true
|
},
|
xAxis: [{
|
type: 'category',
|
data: [],
|
axisLine: {
|
lineStyle: {
|
color: 'rgb(30, 144, 255)'
|
}
|
},
|
axisLabel: {
|
color: 'rgb(30, 144, 255)'
|
},
|
splitLine: {
|
lineStyle: {
|
color: 'rgb(30, 144, 255)',
|
type: 'dashed'
|
}
|
}
|
}],
|
yAxis: [{
|
type: "value",
|
name: "能耗",
|
nameTextStyle: {
|
color: "rgb(30, 144, 255)",
|
fontSize: 12,
|
padding: [0, 0, 0, -30], //name文字位置 对应 上右下左
|
},
|
splitLine: {
|
// 网格线
|
show: false,
|
lineStyle: { //分割线
|
color: "rgb(180, 180, 180)",
|
width: 1,
|
type: "dashed" //dotted:虚线 solid:实线
|
}
|
},
|
axisLabel: {
|
// 轴文字
|
color: "rgb(30, 144, 255)",
|
fontSize: 12,
|
},
|
},
|
|
],
|
series: [{
|
name: "", // 初始为空
|
type: 'bar',
|
data: [],
|
itemStyle: { color: '' }
|
}]
|
},
|
val1: {
|
borderColor:'#082352',
|
title: {
|
text:'合格率',//主标题文本
|
left:'center',
|
top:'45%',
|
left:'40%',
|
textStyle:{
|
color:'#454c5c',
|
align:'center'
|
},
|
subtextStyle:{
|
fontFamily : "微软雅黑",
|
color:'#6c7a89',
|
}
|
|
},
|
|
tooltip: {
|
trigger: 'item',
|
textStyle:{
|
}
|
},
|
legend: {
|
// orient: 'vertical',
|
left: 'left',
|
textStyle:{
|
|
}
|
},
|
textStyle:{
|
|
},
|
series: [
|
{
|
|
type: 'pie',
|
radius : ['40%','70%'],
|
center: ['50%', '50%'],
|
minAngle:'15',
|
label: {
|
// position: 'inside',
|
show: true,
|
formatter(param) {
|
|
return param.name + ' (' + param.percent + '%)';
|
}
|
},
|
data: [
|
{ value: 300, name: '成品',itemStyle:{color:'#53a2ff'} },
|
{ value: 700, name: '次品',itemStyle:{color:'darkseagreen'} }
|
],
|
itemStyle: {
|
normal:{
|
label:{
|
show:true,
|
//formatter: "{b} :\n {c} \n ({d}%)",
|
formatter: "{b} :\n ({d}%)",
|
position:"inner"
|
}
|
}
|
}
|
|
}
|
]
|
},
|
|
},
|
methods:{
|
echarsInit() {
|
// 1. 生成近7天日期(和水耗表逻辑一致)
|
var datashijian = [];
|
var s = 7;
|
while (s > 0) {
|
s = s - 1;
|
var date_day7 = new Date(Date.parse(new Date()) - s * 24 * 60 * 60 * 1000);
|
var day7 = (date_day7.getMonth() + 1) + "/" + date_day7.getDate();
|
datashijian.push(day7);
|
}
|
|
// 2. 初始化图表容器(对应电耗表容器main3-1-2)
|
let HisArr = "";
|
let dianhao = []; // 电耗数据数组
|
HisArr = this.$echarts.init(document.getElementById('main3-1-2'));
|
|
// 3. 从数据源提取电耗数据(复用water的逻辑,变量名对应电耗)
|
for (let i in this.machineElectric) { // 已统一为machineElectric
|
dianhao.push(this.machineElectric[i]["0_jiqidianliang"]);
|
}
|
|
// 4. 复用val配置,统一样式(和水耗表保持一致)
|
this.val.yAxis[0].name = "电耗"; // 仅修改名称为“电耗”
|
this.val.series[0].name = '电耗(kw.h)'; // 电耗单位
|
this.val.title.text = "总耗电(kw.h)"; // 标题
|
this.val.series[0].itemStyle.color = '#5470c6'; // 电耗表颜色(可自定义,与水耗区分)
|
this.val.xAxis[0].data = datashijian; // x轴日期(和水耗一致)
|
this.val.series[0].data = dianhao; // 绑定电耗数据
|
|
// 5. 应用配置并渲染
|
HisArr.setOption(this.val);
|
this.loading = false;
|
}
|
,
|
echarsInit1() {
|
// 1. 生成近7天日期(和水耗表逻辑一致)
|
var datashijian = [];
|
var s = 7;
|
while (s > 0) {
|
s = s - 1;
|
var date_day7 = new Date(Date.parse(new Date()) - s * 24 * 60 * 60 * 1000);
|
var day7 = (date_day7.getMonth() + 1) + "/" + date_day7.getDate();
|
datashijian.push(day7);
|
}
|
|
// 2. 初始化图表容器(对应电耗表容器main3-1-2)
|
let HisArr = "";
|
let dianhao = [];
|
HisArr = this.$echarts.init(document.getElementById('main3-2-2'));
|
|
for (let i in this.machineWater) { //
|
dianhao.push(this.machineWater[i]["0_jiqidianliang"]);
|
}
|
// 4. 复用val配置,统一样式(和水耗表保持一致)
|
this.val.yAxis[0].name = "水耗";
|
this.val.series[0].name = '水耗(kw.h)';
|
this.val.title.text = "总耗水(kw.h)";
|
this.val.series[0].itemStyle.color = '#5470c6'; // 电耗表颜色(可自定义,与水耗区分)
|
this.val.xAxis[0].data = datashijian; // x轴日期(和水耗一致)
|
this.val.series[0].data = dianhao; // 绑定电耗数据
|
|
// 5. 应用配置并渲染
|
HisArr.setOption(this.val);
|
this.loading = false;
|
}
|
,
|
|
dingdanxiangqing(){
|
let HisArr="";
|
HisArr = this.$echarts.init(document.getElementById('main2'));
|
let a = {
|
value: 942,
|
name: "已完成",
|
itemStyle: { color: '#53a2ff' }
|
|
}
|
let b = {
|
value: 58,
|
name: "未完成",
|
itemStyle: { color: 'darkseagreen' }
|
|
}
|
this.val1.title.text="今日产量"
|
this.val1.title.top="45%"
|
this.val1.title.left="40%"
|
this.val1.series[0].data[0]=a
|
this.val1.series[0].data[1]=b
|
|
|
HisArr.setOption(this.val1);
|
this.loading=false
|
},
|
dingdanxiangqing1(){
|
let HisArr="";
|
HisArr = this.$echarts.init(document.getElementById('main4'));
|
let a = {
|
value: this.shuzu1[0]['2_smallglass_completed'],
|
|
name: "已完成",
|
itemStyle: { color: '#53a2ff' }
|
|
}
|
let b = {
|
value: this.shuzu1[0]['3_smallglass_processing'],
|
name: "未完成",
|
itemStyle: { color: 'darkseagreen' }
|
|
}
|
this.val1.title.text="订单加工"
|
this.val1.title.top="45%"
|
this.val1.title.left="40%"
|
this.val1.series[0].data[0]=a
|
this.val1.series[0].data[1]=b
|
|
HisArr.setOption(this.val1);
|
this.loading=false
|
},
|
|
},
|
watch:{
|
//shuzu(){},
|
|
|
machineElectric(){
|
this.echarsInit()
|
},
|
machineWater(){
|
this.echarsInit1()
|
},
|
shuzu1(){
|
this.dingdanxiangqing(),
|
this.dingdanxiangqing1()
|
}
|
|
},
|
async mounted(){
|
|
|
let sql=""
|
let flag=2
|
// sql="{call AXJ_dapingxianshijiqishuju()}"
|
//this.loadAjxss('大屏显示',sql,flag,"shuzu")
|
sql="{call bigScreen_order()}"
|
this.loadAjxss('大屏总订单数据',sql,flag,"shuzu1")
|
sql="{call bigScreen_ammeter()}"
|
this.loadAjxss('大屏总电耗数据',sql,flag,"machineElectric")
|
sql="{call machine_warningScreen()}"
|
this.loadAjxss('大屏设备警告数据',sql,flag,"warning")
|
sql="{call bigScreen_water()}"
|
this.loadAjxss('大屏总水耗数据',sql,flag,"machineWater")
|
|
|
// await setInterval(()=>{
|
|
// sql="{call AXJ_dapingxianshijiqishuju()}"
|
// this.interValLoadAjxs('大屏显示',sql,flag,"shuzu")
|
// },5000)
|
await setInterval(()=>{
|
|
sql="{call bigScreen_order()}"
|
this.interValLoadAjxs('大屏总订单数据',sql,flag,"shuzu1")
|
},5000)
|
await setInterval(()=>{
|
sql="{call bigScreen_ammeter()}"
|
this.interValLoadAjxs('大屏总电耗数据',sql,flag,"machineElectric")
|
},5000)
|
await setInterval(()=>{
|
sql="{call machine_warningScreen()}"
|
this.interValLoadAjxs('大屏设备警告数据',sql,flag,"warning")
|
},5000)
|
await setInterval(()=>{
|
sql="{call bigScreen_water()}"
|
this.interValLoadAjxs('大屏总水耗数据',sql,flag,"machineWater")
|
},5000)
|
|
|
|
|
}
|
|
})
|
|
|
|
</script>
|
</body>
|
</html>
|