From 539a56279625242c497b4b4093f2defbb9d80334 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期四, 29 一月 2026 14:05:44 +0800
Subject: [PATCH] #i18n翻译

---
 src/main/webapp/static/js/locDetl/locDetl.js |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index cd899e3..9a3b9ea 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -85,6 +85,9 @@
             }
             if (typeof I18n !== 'undefined') {
                 I18n.updatePage($('.layui-table-tool'));
+                setTimeout(function() {
+                    I18n.updateLayuiPagination();
+                }, 50);
             }
             pageCurr=curr;
             limit();
@@ -115,6 +118,12 @@
             done: function (res, curr, count) {
                 if (res.code === 403) {
                     top.location.href = baseUrl+"/";
+                }
+                if (typeof I18n !== 'undefined') {
+                    I18n.updatePage($('.layui-table-tool'));
+                    setTimeout(function() {
+                        I18n.updateLayuiPagination();
+                    }, 50);
                 }
                 pageCurr=curr;
                 limit();
@@ -469,10 +478,23 @@
     });
 
 
-    // 鐩戝惉i18n鏇存柊浜嬩欢锛岄噸鏂版覆鏌撹〃鏍�
-    $(document).on('i18n:updated', function() {
-        table.reload('locDetl', {
-            cols: [getCol()]
+    // 鐩戝惉璇█鍒囨崲浜嬩欢
+    $(document).on('i18n:languageChanged', function() {
+        tableIns.reload({
+            cols: [getCol()],
+            text: {
+                none: I18n.t('no_data')
+            },
+            done: function(res, curr, count) {
+                if (typeof I18n !== 'undefined') {
+                    I18n.updatePage($('.layui-table-tool'));
+                    setTimeout(function() {
+                        I18n.updateLayuiPagination();
+                    }, 50);
+                }
+                pageCurr=curr;
+                limit();
+            }
         });
     });
 });
@@ -497,6 +519,12 @@
             if (res.code === 403) {
                 top.location.href = baseUrl+"/";
             }
+            if (typeof I18n !== 'undefined') {
+                I18n.updatePage($('.layui-table-tool'));
+                setTimeout(function() {
+                    I18n.updateLayuiPagination();
+                }, 50);
+            }
             pageCurr=curr;
             if (res.data.length === 0 && count !== 0) {
                 tableIns.reload({

--
Gitblit v1.9.1