From 3a5e49666af1da441633b0a9bae4c3c2b18974b3 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期二, 14 四月 2026 16:05:41 +0800
Subject: [PATCH] 质押合同添加业务经理绑定,H5相关逻辑完善

---
 fzzy-igdss-web/src/main/resources/templates/wx/warn-list.html |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/templates/wx/warn-list.html b/fzzy-igdss-web/src/main/resources/templates/wx/warn-list.html
index b151cde..f116b6e 100644
--- a/fzzy-igdss-web/src/main/resources/templates/wx/warn-list.html
+++ b/fzzy-igdss-web/src/main/resources/templates/wx/warn-list.html
@@ -73,6 +73,7 @@
 <script th:src="@{/ajax/libs/mui/js/mui.js}"></script>
 <script th:inline="javascript">
     var loginType = [[${loginType}]];  //鐧诲綍鏂瑰紡
+    var deptList = [[${deptList}]];
     var userName = [[${userName}]];
     openid = [[${openid}]];  //鐢ㄦ埛鐨刼penid
     SERVE_URL = location.href.split("/wx/")[0];  //鏈嶅姟鍩熷悕
@@ -81,7 +82,15 @@
     var total;
     var pageCount;  //鎬婚〉鐮佹暟
     var warnList;  //姣忛〉鏁版嵁
+    var deptListMap = {};
     $(function () {
+        //鎵�鏈夊簱鍖�
+        if (deptList) {
+            for (var i = 0; i < deptList.length; i++) {
+                deptListMap[deptList[i].id] = deptList[i];
+            }
+        }
+
         // 鐩戝惉椤甸潰鏄剧ず浜嬩欢锛堝井淇� H5 鐜锛�
         window.addEventListener('pageshow', function() {
             if (localStorage.getItem('needRefresh') === 'true') {
@@ -139,12 +148,14 @@
         mui('#pullrefresh').pullRefresh().endPullupToRefresh((pageNo>=pageCount));
         var table = document.body.querySelector('.mui-table-view');
         for (var i = 0; i < warnList.length; i++) {
+            var deptName = deptListMap[warnList[i].deptId] ? deptListMap[warnList[i].deptId].kqmc : warnList[i].deptId;
+            console.log(deptListMap);
             var li = document.createElement('li');
             li.className = 'mui-table-view-cell';
             var html = '';
             html += '<div onclick="toWarnDetail(\'' + warnList[i].id +'\',\'' + warnList[i].companyId + '\')" class="mui-table">';
             html += '<div class="mui-table-cell mui-col-xs-10"><h4 class="mui-ellipsis">' + warnList[i].id;
-            html += '</span></h4><h5>鎵�灞炲簱鍖猴細<span>' + warnList[i].deptId;
+            html += '</span></h4><h5>鎵�灞炲簱鍖猴細<span>' + deptName;
             html += '</span></h5><h5>璀﹀憡鏃堕棿锛�<span>' + warnList[i].createTime;
             html += '</span></h5><p class="mui-h6 mui-ellipsis">璀﹀憡璇存槑锛�' +warnList[i].content;
             li.innerHTML = html;

--
Gitblit v1.9.3