From 94853e46b9d4911fb4cf00389f00a4b820db5d3c Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 21 五月 2025 14:35:46 +0800
Subject: [PATCH] fix: 修正 系统上机日志查询 没有显示默认方案的问题

---
 WebTM/views/系统管理/日志管理/Xt_SystemLogList.html |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 WebTM/views/基础资料/采购基础资料/Gy_Supplier.html    |    2 ++
 2 files changed, 56 insertions(+), 4 deletions(-)

diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\207\207\350\264\255\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Supplier.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\207\207\350\264\255\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Supplier.html"
index 556fe5b..92245cd 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\207\207\350\264\255\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Supplier.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\351\207\207\350\264\255\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Supplier.html"
@@ -613,6 +613,7 @@
                             DisPlay_HideColumn();
 
                             layer.close(ajaxLoad);
+                            console.log($("#ColName option"))
                             if ($("#ColName option").length < 1) {
                                 ColFilter();
                                 get_DefaultModule();//鍔犺浇鏂规
@@ -1266,6 +1267,7 @@
 
             //鑾峰彇褰撳墠鐢ㄦ埛鐨勯粯璁よ繃婊ゆ柟妗�
             function get_DefaultModule() {
+                debugger
                 $.ajax({
                     url: GetWEBURL() + '/Xt_FastICScheme/Chooselist',
                     type: "GET",
diff --git "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\346\227\245\345\277\227\347\256\241\347\220\206/Xt_SystemLogList.html" "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\346\227\245\345\277\227\347\256\241\347\220\206/Xt_SystemLogList.html"
index 752f696..67c8e90 100644
--- "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\346\227\245\345\277\227\347\256\241\347\220\206/Xt_SystemLogList.html"
+++ "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\346\227\245\345\277\227\347\256\241\347\220\206/Xt_SystemLogList.html"
@@ -53,7 +53,11 @@
                                         <input type="text" class="layui-input" name="WorkList" id="WorkList">
                                     </div>
                                 </div>
-
+                                <!--鏄剧ず褰撳墠杩囨护鏂规-->
+                                <div class="layui-inline" style="margin-left:5px;">
+                                    <div style="text-align:center;font-size:15px;font-weight:bold;color:#fc9393"
+                                        id="HFilterScheme_Now"></div>
+                                </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label" style="width: 85px;">缁勭粐</label>
                                     <div class="layui-input-block" style="margin-left: 120px; width: 185px;">
@@ -416,7 +420,6 @@
                 });
             })
             //#endregion
-
             //鍒濆鍖栬〃鏍�
             set_InitGrid();
             //鐩存帴鎵ц鍒楄〃绛涢�� 鍔犺浇鏁版嵁鍒扮綉鏍�
@@ -427,7 +430,6 @@
 
             //浠绘剰瀛楁杩囨护涓嬫媺妗嗗垵濮嬪寲
             ColFilter();
-
             //#region 鍒濆鍖栬〃鏍兼柟娉�
             function set_InitGrid() {
                 option = {
@@ -627,8 +629,12 @@
                             DisPlay_HideColumn();
 
                             layer.close(ajaxLoad);
-                            if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") {
+                            // if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") {
+                            //     ColFilter();
+                            // }
+                            if ($("#ColName option").length < 1) {
                                 ColFilter();
+                                get_DefaultModule();//鍔犺浇鏂规
                             }
                             //layer.alert("鏌ヨ鎴愬姛", { icon: 1 });
                         } else {
@@ -1029,6 +1035,50 @@
             });
         }
         //#endregion
+
+        //鑾峰彇褰撳墠鐢ㄦ埛鐨勯粯璁よ繃婊ゆ柟妗�
+        function get_DefaultModule() {
+            $.ajax({
+                url: GetWEBURL() + '/Xt_FastICScheme/Chooselist',
+                type: "GET",
+                data: { "user": sessionStorage["Czybm"], "HModuleName": HModuleName, "HInterID": 0, "Type": "Default" },
+                success: function (data1) {
+                    if (data1.count == 1) {
+                        //褰撳墠鐢ㄦ埛璁剧疆鏈夐粯璁ょ殑杩囨护鏂规
+                        var data = data1.data;
+                        //褰撳墠閫夋嫨鐨勮繃婊ゆ柟妗�
+                        HInterID_Choose = data[0].hmainid;
+                        //杩囨护鏂规鍐呯爜
+                        HInterID = data[0].hmainid
+                        //杩囨护鏂规鍚嶇О
+                        HDefaultFilter = data[0].鏂规鍚嶇О
+                        //杩囨护鏂规鐨勫娉紙鏂规淇℃伅鎻忚堪锛�
+                        var HRemark = data[0].澶囨敞
+                        //鏄剧ず鍑哄綋鍓嶇殑榛樿杩囨护鏂规
+                        document.getElementById("HFilterScheme_Now").style.display = "block";
+                        document.getElementById('HFilterScheme_Now').innerHTML = "褰撳墠杩囨护鏂规锛�" + HDefaultFilter + '<span style="font-size: 15px; font-weight: bold; color:#7b90fb">  ' + "(" + HRemark + ")" + '</span>';
+                        //鎶婅繃婊ゆ潯浠跺�煎洖鍐欏埌椤甸潰涓�
+                        for (let i = 0; i < data.length; i++) {
+                            $("#" + data[i].杩囨护瀛楁ID).val(data[i].杩囨护鍊�);
+                            if (data[i].杩囨护鏍囩绫诲瀷 == 'SELECT') {
+                                $("#" + data[i].杩囨护瀛楁ID).find("option[value='" + data[i].杩囨护鍊� + "']").attr("selected", true);
+                            }
+                        }
+                        //鏌ヨ
+                        get_FastQuery();
+                        form.render("select");
+                    } else {
+                        //褰撳墠鐢ㄦ埛娌℃湁璁剧疆榛樿鐨勮繃婊ゆ柟妗�
+                        //闅愯棌鏄剧ず杩囨护鏂规鐨勬爣绛句俊鎭�
+                        document.getElementById("HFilterScheme_Now").style.display = "none";
+                        //鎵ц鏌ヨ鏂规硶
+                        form.render("select");
+                    }
+                }, error: function () {
+                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                }
+            });
+        }
     </script>
 </body>
 

--
Gitblit v1.9.1