| | |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | </div> |
| | | </div> |
| | | <div id="HBadLabelNameList"> |
| | | </div> |
| | | <div id="HistogramReport" style = "background-color: black; height: 2000px; width: 100%; display: flex; flex-direction: column; align-items:center;"> |
| | | |
| | | </div> |
| | |
| | | var HBarCode_PNL_Note = ""; //è®°å½æ¥è¯¢åçPNLæ¡ç ç¼å· |
| | | var HLayOut_PNL = []; //PNLå¸å±ä¿¡æ¯æ°æ® |
| | | var HPCSNoList = []; //è®°å½å¸å±ä¸å·²ç»å å
¥çPCSå· |
| | | |
| | | var HBadLabelNameList = ["AOI1", "AOI2", "AOI3", "AOI4", "AVI", "MRB", "çµæµ"]; //æ£éªç«å«æ ç¾åç§°æ°ç» |
| | | var HBadInfo = {}; //æ£éªç«å«å¯¹åºä¸è¯æ°é |
| | | for (var i = 0; i < HBadLabelNameList.length; i++) { |
| | | HBadInfo[HBadLabelNameList[i]] = 0; |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | |
| | | if (data[i]["HIsBadFlag"] == "1") { |
| | | HButtonElement_PCS.style = "background-image: url('" + HIconUrl + "'); background-size: cover; background-position: center; background-repeat: no-repeat;background-color:" + data[i]["HPCSColor"] + ";"; |
| | | |
| | | //ç»è®¡æ£éªç«å«å¯¹åºä¸è¯æ°é |
| | | if (typeof (HBadInfo[data[i]["HCheckProcName"]]) != "undefined") { |
| | | HBadInfo[data[i]["HCheckProcName"]] += 1; |
| | | } |
| | | } else { |
| | | HButtonElement_PCS.style = "background-image: url('" + HIconUrl + "'); background-size: cover; background-position: center; background-repeat: no-repeat;background-color:black;"; |
| | | } |
| | |
| | | HPosition_x = data[i]["HPosition_x"]; |
| | | } |
| | | }; |
| | | |
| | | //设置 æ£éªç«å«æ ç¾ |
| | | setBadInfoLabel(); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region 设置ä¸è¯æ ç¾ |
| | | function setBadInfoLabel() { |
| | | //è·åæ ç¾å®¹å¨ |
| | | var HBadLabelNameListElement = document.getElementById("HBadLabelNameList"); |
| | | if (HBadLabelNameListElement != null) { |
| | | // éåæ ç¾å®¹å¨å¯¹è±¡ä¸çææåå
ç´ å¹¶ä»DOMä¸ç§»é¤ |
| | | while (HBadLabelNameListElement.firstChild) { |
| | | HBadLabelNameListElement.removeChild(HBadLabelNameListElement.firstChild); |
| | | } |
| | | |
| | | for (var i = 0; i < HBadLabelNameList.length; i++) { |
| | | //setå®¹å¨ |
| | | var labelElement= document.createElement('div'); //æ ç¾ |
| | | labelElement.id = HBadLabelNameList[i]; //æ ç¾çid |
| | | labelElement.style = "font-size: 20px; color: red;margin-left:50px;display: inline;"; |
| | | labelElement.innerHTML = HBadLabelNameList[i] + "ï¼" + HBadInfo[HBadLabelNameList[i]]; |
| | | |
| | | //å°æ ç¾æ·»å å°æ ç¾å®¹å¨å¯¹è±¡ä¸ |
| | | HBadLabelNameListElement.appendChild(labelElement); |
| | | } |
| | | } |
| | | } |
| | | //#endregion |
| | | }); |
| | | |
| | | //#endregion |