From 79665a3f2fef113ccf94c1b86ac30667382fe57d Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 21 八月 2025 16:05:16 +0800
Subject: [PATCH] 华远:直观图 右击 事件 调整

---
 WebTM/views/案例代码/华远/HY_HistogramReport.html        |   12 +++++++++++-
 WebTM/Properties/PublishProfiles/LAYUI.pubxml.user |    2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index 57979cb..00e6e47 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -4993,7 +4993,7 @@
       <publishTime>09/13/2024 15:42:13</publishTime>
     </File>
     <File Include="views/妗堜緥浠g爜/鍗庤繙/HY_HistogramReport.html">
-      <publishTime>08/21/2025 15:45:52</publishTime>
+      <publishTime>08/21/2025 16:04:12</publishTime>
     </File>
     <File Include="views/妗堜緥浠g爜/鍗庤繙/HY_HistogramReport_ForPCSCheckNote.html">
       <publishTime>06/23/2025 14:35:05</publishTime>
diff --git "a/WebTM/views/\346\241\210\344\276\213\344\273\243\347\240\201/\345\215\216\350\277\234/HY_HistogramReport.html" "b/WebTM/views/\346\241\210\344\276\213\344\273\243\347\240\201/\345\215\216\350\277\234/HY_HistogramReport.html"
index 2c52ee3..2f276d7 100644
--- "a/WebTM/views/\346\241\210\344\276\213\344\273\243\347\240\201/\345\215\216\350\277\234/HY_HistogramReport.html"
+++ "b/WebTM/views/\346\241\210\344\276\213\344\273\243\347\240\201/\345\215\216\350\277\234/HY_HistogramReport.html"
@@ -491,13 +491,15 @@
                                 }
                                 // 渚嬪锛屽垱寤轰竴涓嚜瀹氫箟鑿滃崟
                                 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();
 
@@ -505,6 +507,13 @@
                                 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,
@@ -585,6 +594,7 @@
                             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>';
                             }

--
Gitblit v1.9.1