From 4aff6ce5a44047245f86e776d3b6b67314aed70e Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期五, 26 十二月 2025 14:55:17 +0800
Subject: [PATCH] 增加库区配置,合并通知单、及流程和设备配置

---
 fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js |   49 +++++++++++++++++++++++++++++--------------------
 1 files changed, 29 insertions(+), 20 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js b/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js
index 51c2bdb..a06b09a 100644
--- a/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js
+++ b/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js
@@ -24,9 +24,9 @@
         count: typeof totalItems !== 'undefined' ? totalItems : 0,
         limit: typeof pageSize !== 'undefined' ? pageSize : 6,
         curr: typeof currentPage !== 'undefined' ? currentPage : 1,
-        layout: [ 'prev',  'next', ],
-        prev: '<i class="layui-icon layui-icon-left"></i>',
-        next: '<i class="layui-icon layui-icon-right"></i>',
+        layout: ['prev', 'page', 'next', ],
+        // prev: '<i class="layui-icon layui-icon-left"></i>',
+        // next: '<i class="layui-icon layui-icon-right"></i>',
         jump: function (obj, first) {
             if (!first) {
                 searchRecord(obj.curr, obj.limit)
@@ -47,9 +47,9 @@
         count: totalCount,
         limit: pageSize,
         curr: currentPage,
-        layout: ['prev',  'next', ],
-        prev: '<i class="layui-icon layui-icon-left"></i>',
-        next: '<i class="layui-icon layui-icon-right"></i>',
+        layout: ['prev', 'page', 'next', ],
+        // prev: '<i class="layui-icon layui-icon-left"></i>',
+        // next: '<i class="layui-icon layui-icon-right"></i>',
         jump: function (obj, first) {
             if (!first) {
                 searchRecord(obj.curr, obj.limit)
@@ -177,12 +177,11 @@
                         <span>${formatDate(record.snapTime)}</span>
                     </div>
                  </div>
-<!--                
-  <div class="meta-item">
+              
+                 <div class="meta-item">
                     <i class="layui-icon layui-icon-home"></i>
-                    <span>${record.deptId || ''}</span>
+                    <span>${getDeptName(record.deptId) || record.deptId || ''}</span>
                  </div>  
- -->
                                    
             </div>        
         </div>
@@ -209,6 +208,24 @@
         });
         // 杩斿洖鎽勫儚澶村悕绉帮紝濡傛灉鎵句笉鍒板垯杩斿洖null
         return camera ? camera.name : null;
+    }
+    return null;
+}
+
+/**
+ * 鏍规嵁搴撳尯ID鑾峰彇搴撳尯鍚嶇О
+ * @param {string} deptId - 鎽勫儚澶碔D
+ * @returns {string|null} 鎽勫儚澶村悕绉版垨null
+ */
+function getDeptName(deptId) {
+    // 纭繚deptList瀛樺湪涓斾负鏁扮粍
+    if (typeof deptList !== 'undefined' && Array.isArray(deptList) && deptId) {
+        // 鏌ユ壘鍖归厤鐨勬憚鍍忓ご瀵硅薄
+        var dept = deptList.find(function(item) {
+            return item.id === deptId;
+        });
+        // 杩斿洖鎽勫儚澶村悕绉帮紝濡傛灉鎵句笉鍒板垯杩斿洖null
+        return dept ? dept.kqmc : null;
     }
     return null;
 }
@@ -319,14 +336,6 @@
     });
 }
 function openConf() {
-    var url = ctx + "com.fzzy.igds.SnapConf.d";
-    var options = {
-        title: "鎶撴媿閰嶇疆",
-        url: url,
-        btn: 0,
-        yes: function (index, layero) {
-            $.modal.close(index);
-        }
-    };
-    $.modal.openOptions(options);
+    var url = ctx + "com.fzzy.igds.ConfByDept.d";
+    $.modal.openTab("搴撳尯閰嶇疆", url);
 }

--
Gitblit v1.9.3