From 909164aa1859fdf25330eb130bc90b8bd22e540b Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 24 三月 2026 12:00:51 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/common.js | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index 277ebc8..422243f 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -361,6 +361,11 @@
function buildBuiltinRegexEntries() {
return [
{
+ regex: /^鍦�(\d+)\s*\|\s*绔欑偣:\s*(\d+)\s*\|\s*(?:浠诲姟|Task):\s*(\d+)\s*\|\s*(?:鎵嬪姩|Manual):\s*(\d+)\s*\|\s*鎵胯浇:\s*([\d.]+%)$/,
+ key: "legacy.regex.loopStatusWithManual",
+ fallback: "Zone {0} | Stations: {1} | Tasks: {2} | Manual: {3} | Load: {4}"
+ },
+ {
regex: /^鍦�(\d+)\s*\|\s*绔欑偣:\s*(\d+)\s*\|\s*(?:浠诲姟|Task):\s*(\d+)\s*\|\s*鎵胯浇:\s*([\d.]+%)$/,
key: "legacy.regex.loopStatus",
fallback: "Zone {0} | Stations: {1} | Tasks: {2} | Load: {3}"
@@ -750,8 +755,21 @@
window.layer.__wcsI18nWrapped = true;
}
+ function hasElementLocaleMessages() {
+ var key;
+ if (!state.ready || !state.messages) {
+ return false;
+ }
+ for (key in state.messages) {
+ if (Object.prototype.hasOwnProperty.call(state.messages, key) && key.indexOf("el.") === 0) {
+ return true;
+ }
+ }
+ return false;
+ }
+
function wrapElement() {
- if (!window.ELEMENT || window.ELEMENT.__wcsI18nWrapped) {
+ if (!window.ELEMENT || window.ELEMENT.__wcsI18nWrapped || !hasElementLocaleMessages()) {
return;
}
var element = window.ELEMENT;
--
Gitblit v1.9.1