From 9276046761b2144b638823a4fd8926ea8ea28e53 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期三, 02 四月 2025 15:45:38 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
---
WebTM/views/home/console.html | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/WebTM/views/home/console.html b/WebTM/views/home/console.html
index 5420be7..3c710da 100644
--- a/WebTM/views/home/console.html
+++ b/WebTM/views/home/console.html
@@ -313,6 +313,17 @@
var liStr = '';
//閬嶅巻鐢熸垚涓昏彍鍗�
for (var i = 0; i < data.length; i++) {
+
+ //鍒ゆ柇涓绘帶鍙板綋鍓嶇櫥褰曠殑璇█绫诲瀷
+ var HTranslationText = "";
+ if (sessionStorage["HTranSlate"] == "1") {
+ HTranslationText = data[i].HCaption;
+ } else if (sessionStorage["HTranSlate"] == "2") {
+ HTranslationText = data[i].HTranslationText_English;
+ } else if (sessionStorage["HTranSlate"] == "3") {
+ HTranslationText = data[i].HTranslationText_Spain;
+ }
+
if (i == 0) {
liStr += '<ul class="layui-row layui-col-space10 layui-this">';
} else if (i % 8 == 0) {
@@ -329,7 +340,7 @@
liStr += '<i id="' + data[i]["HSubFuncID"] + '" class="' + data[i]["HPicNum"] + '"></i>';
}
- liStr += '<cite>' + data[i]["HCaption"] + '</cite>';
+ liStr += '<cite>' + HTranslationText + '</cite>';
liStr += '</a>';
--
Gitblit v1.9.1