| | |
| | | } |
| | | // 渚嬪锛屽垱寤轰竴涓嚜瀹氫箟鑿滃崟 |
| | | var HSelectElement = document.createElement('select'); |
| | | HSelectElement.style.width = "100px"; |
| | | HSelectElement.style.height = "20px"; |
| | | HSelectElement.style.position = 'absolute'; |
| | | HSelectElement.style.left = event.pageX + 'px'; |
| | | HSelectElement.style.top = event.pageY + 'px'; |
| | | HSelectElement.id = "HBadReason"; |
| | | HSelectElement.name = "HBadReason"; |
| | | HSelectElement.setAttribute('lay-filter', 'HBadReason'); |
| | | HSelectElement.className = "layui-form layui-form-item layui-row layui-input-inline"; |
| | | HSelectElement.className = "layui-fluid layui-col-md12 layui-card-body layui-form layui-collapse layui-colla-item ayui-input-inline"; |
| | | document.body.appendChild(HSelectElement); |
| | | setInitSelect_BadReason(); |
| | | |
| | |
| | | const selectElement = document.getElementById('HBadReason'); |
| | | selectElement.addEventListener('change', function () { |
| | | var HBadReason = $("#HBadReason").val(); |
| | | if (HBadReason == "") { |
| | | var HSelectElement = document.getElementById("HBadReason"); |
| | | if (HSelectElement != null) { |
| | | document.body.removeChild(HSelectElement); |
| | | } |
| | | return; |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | var data = result.data; |
| | | |
| | | var Organization = ""; |
| | | Organization += '<option style="color:blue;" value=""></option>'; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].HName + '">' + data[i].HName + '</option>'; |
| | | } |