From 35b1b26f1fe16550b4ee2881a26d599456fe59b4 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期四, 22 一月 2026 17:01:11 +0800
Subject: [PATCH] #i18n翻译

---
 src/main/webapp/views/wrkMastLog/wrkDetlLog.html |  134 ++++++++++++++++++++++++--------------------
 1 files changed, 74 insertions(+), 60 deletions(-)

diff --git a/src/main/webapp/views/wrkMastLog/wrkDetlLog.html b/src/main/webapp/views/wrkMastLog/wrkDetlLog.html
index b94085c..ceb9b90 100644
--- a/src/main/webapp/views/wrkMastLog/wrkDetlLog.html
+++ b/src/main/webapp/views/wrkMastLog/wrkDetlLog.html
@@ -14,13 +14,13 @@
 </head>
 <body>
 <div class="layui-inline"  style="width:20%;margin-top: 20px">
-    <label class="layui-form-label">宸� 浣� 鍙凤細</label>
+    <label class="layui-form-label"><span data-i18n="work_no">宸� 浣� 鍙凤細</span></label>
     <div class="layui-input-inline">
         <input id="wrkNo" class="layui-input" type="text" disabled="disabled">
     </div>
 </div>
 <div class="layui-inline"  style="width:20%;margin-top: 20px">
-    <label class="layui-form-label">宸ヤ綔鏃堕棿锛�</label>
+    <label class="layui-form-label"><span data-i18n="work_time">宸ヤ綔鏃堕棿锛�</span></label>
     <div class="layui-input-inline">
         <input id="ioTime" class="layui-input" type="text" disabled="disabled">
     </div>
@@ -32,75 +32,89 @@
 <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
+<script type="text/javascript" src="../../static/js/i18n/i18n-helper.js"></script>
 <script type="text/javascript" src="../../static/js/locMast/locMast.js" charset="utf-8"></script>
 <script type="text/javascript">
     var pageCur;
     function getCol() {
         let cols = [
-            {field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'}
-            ,{field: 'ioTime$', align: 'center',title: '宸ヤ綔鏃堕棿',width:160}
+            {field: 'wrkNo', align: 'center',title: I18n.t('work_no')}
+            ,{field: 'ioTime$', align: 'center',title: I18n.t('work_time'),width:160}
         ];
-        cols.push.apply(cols, detlCols);
+        // Use getDetlCols() to ensure fresh I18n values
+        cols.push.apply(cols, getDetlCols());
         return cols;
     }
-    layui.use(['table','laydate', 'form'], function() {
-        table = layui.table;
-        var $ = layui.jquery;
-        var form = layui.form;
-
-        $('#wrkNo').val(parent.wrkNo);
-        $('#ioTime').val(top.dateToStr(parent.ioTime, true));
-        // 鏁版嵁娓叉煋
-        tableIns1 = table.render({
-            elem: '#wrkDetlLogByMast',
-            headers: {token: localStorage.getItem('token')},
-            url: baseUrl+'/wrkDetlLogByMast/list/auth',
-            where: {wrk_no: parent.wrkNo,ioTime: top.dateToStr(parent.ioTime, true)},
-            page: true,
-            limit: 16,
-            limits: [16, 30, 50, 100, 200, 500],
-            even: true,
-            toolbar: '#toolbar',
-            cellMinWidth: 50,
-            cols: [getCol()],
-            request: {
-                pageName: 'curr',
-                pageSize: 'limit'
-            },
-            parseData: function (res) {
-                return {
-                    'code': res.code,
-                    'msg': res.msg,
-                    'count': res.data.total,
-                    'data': res.data.records
-                }
-            },
-            response: {
-                statusCode: 200
-            },
-            done: function(res, curr, count) {
-                if (res.code === 403) {
-                    top.location.href = baseUrl+"/";
-                }
-                pageCur=curr;
-                form.on('checkbox(tableCheckbox)', function (data) {
-                    var _index = $(data.elem).attr('table-index')||0;
-                    if(data.elem.checked){
-                        res.data[_index][data.value] = 'Y';
-                    }else{
-                        res.data[_index][data.value] = 'N';
+    
+    function initTable() {
+        layui.use(['table','laydate', 'form'], function() {
+            table = layui.table;
+            var $ = layui.jquery;
+            var form = layui.form;
+    
+            $('#wrkNo').val(parent.wrkNo);
+            $('#ioTime').val(top.dateToStr(parent.ioTime, true));
+            // 鏁版嵁娓叉煋
+            tableIns1 = table.render({
+                elem: '#wrkDetlLogByMast',
+                headers: {token: localStorage.getItem('token')},
+                url: baseUrl+'/wrkDetlLogByMast/list/auth',
+                where: {wrk_no: parent.wrkNo,ioTime: top.dateToStr(parent.ioTime, true)},
+                page: true,
+                limit: 16,
+                limits: [16, 30, 50, 100, 200, 500],
+                even: true,
+                toolbar: '#toolbar',
+                cellMinWidth: 50,
+                cols: [getCol()],
+                request: {
+                    pageName: 'curr',
+                    pageSize: 'limit'
+                },
+                parseData: function (res) {
+                    return {
+                        'code': res.code,
+                        'msg': res.msg,
+                        'count': res.data.total,
+                        'data': res.data.records
                     }
-                });
-            }
+                },
+                response: {
+                    statusCode: 200
+                },
+                done: function(res, curr, count) {
+                    if (res.code === 403) {
+                        top.location.href = baseUrl+"/";
+                    }
+                    pageCur=curr;
+                    form.on('checkbox(tableCheckbox)', function (data) {
+                        var _index = $(data.elem).attr('table-index')||0;
+                        if(data.elem.checked){
+                            res.data[_index][data.value] = 'Y';
+                        }else{
+                            res.data[_index][data.value] = 'N';
+                        }
+                    });
+                    if (typeof I18n !== 'undefined') {
+                        I18n.updatePage();
+                        I18n.updateLayuiPagination();
+                    }
+                }
+            });
         });
+    }
+
+    if (typeof I18n !== 'undefined' && I18n.isReady()) {
+        initTable();
+    } else {
+        $(document).on('i18n:ready', function() {
+            initTable();
+        });
+    }
+
+    $(document).on('i18n:languageChanged', function() {
+        initTable();
     });
-</script>
-<script src="../../static/js/translate.js"></script>
-<script>
-    translate.selectLanguageTag.show = false; //涓嶅嚭鐜扮殑select鐨勯�夋嫨璇█
-    translate.service.use('client.edge'); //璁剧疆缈昏瘧鏈嶅姟
-    translate.listener.start(); //寮�鍚〉闈㈠厓绱犲姩鎬佺洃鎺э紝js鏀瑰彉鐨勫唴瀹逛篃浼氳缈昏瘧锛屽弬鑰冩枃妗o細 http://translate.zvo.cn/4067.html
-    translate.execute();
 </script>
 </html>
 

--
Gitblit v1.9.1