Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e2a3e29aa | ||
|
|
baa4d81be9 |
@@ -4,7 +4,8 @@
|
|||||||
本文件职责:给附件上传成功、选线路成功页一段共用脚本。
|
本文件职责:给附件上传成功、选线路成功页一段共用脚本。
|
||||||
手机端只调一次 WeixinJSBridge.closeWindow,关掉当前 H5 后留在询价对话里。
|
手机端只调一次 WeixinJSBridge.closeWindow,关掉当前 H5 后留在询价对话里。
|
||||||
再调 ww/wx/window.close 会把询价小助手整个退出,回到企业微信首页。
|
再调 ww/wx/window.close 会把询价小助手整个退出,回到企业微信首页。
|
||||||
电脑企微即使注入了 WeixinJSBridge,这一下也关不掉当前页,必须按电脑走 JS-SDK。
|
电脑企微 5.x 内置页经常加载不了 JS-SDK,也不会打签名接口。
|
||||||
|
这时 ww.closeWindow 不会执行。电脑改用 WeixinJSBridge.invoke,再补 window.close,只关当前页。
|
||||||
失败、过期页不要挂这段。
|
失败、过期页不要挂这段。
|
||||||
副作用:只产出 HTML 片段;关窗签名走浏览器短请求,不占智能体请求线程做慢活。
|
副作用:只产出 HTML 片段;关窗签名走浏览器短请求,不占智能体请求线程做慢活。
|
||||||
"""
|
"""
|
||||||
@@ -24,8 +25,9 @@ def wecom_auto_close_script() -> str:
|
|||||||
成功页脚:加载企微 JS-SDK,register 后关掉当前 H5 窗口。
|
成功页脚:加载企微 JS-SDK,register 后关掉当前 H5 窗口。
|
||||||
|
|
||||||
线程:浏览器端执行。签名接口与复制页共用,ticket 已缓存在 Redis。
|
线程:浏览器端执行。签名接口与复制页共用,ticket 已缓存在 Redis。
|
||||||
为何这样写:电脑企微也会带上 WeixinJSBridge,但关不掉当前页。
|
为何这样写:21:27 的上传日志里,成功页已经返回,但没有 jsapi 签名请求。
|
||||||
若一发现桥就只走手机关闭,成功页会停在「正在返回企微」。手机仍只关一次。
|
电脑企微没跑起 ww.register,只调 ww.closeWindow 等于没关。
|
||||||
|
电脑改为 invoke + window.close,不依赖签名先成功。手机仍只关一次。
|
||||||
"""
|
"""
|
||||||
settings = get_settings()
|
settings = get_settings()
|
||||||
corp = escape((settings.wecom_corp_id or "").strip(), quote=True)
|
corp = escape((settings.wecom_corp_id or "").strip(), quote=True)
|
||||||
@@ -51,7 +53,11 @@ def wecom_auto_close_script() -> str:
|
|||||||
var closed = false;
|
var closed = false;
|
||||||
|
|
||||||
function isPhone() {{
|
function isPhone() {{
|
||||||
return /Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent || "");
|
var ua = navigator.userAgent || "";
|
||||||
|
if (/wxwork/i.test(ua) && /Windows|Macintosh/i.test(ua) && !/Android|iPhone|iPad|iPod/i.test(ua)) {{
|
||||||
|
return false;
|
||||||
|
}}
|
||||||
|
return /Android|iPhone|iPad|iPod/i.test(ua);
|
||||||
}}
|
}}
|
||||||
|
|
||||||
function closeOnce(fn) {{
|
function closeOnce(fn) {{
|
||||||
@@ -65,13 +71,22 @@ def wecom_auto_close_script() -> str:
|
|||||||
closeOnce(function () {{ WeixinJSBridge.call("closeWindow"); }});
|
closeOnce(function () {{ WeixinJSBridge.call("closeWindow"); }});
|
||||||
}}
|
}}
|
||||||
|
|
||||||
// 电脑企微即使有 WeixinJSBridge,也关不掉当前页。注册 JS-SDK 后再关一次。
|
// 电脑企微:call 关不掉,JS-SDK 又经常没装上。invoke 关内置页,window.close 关独立窗口。
|
||||||
// 不要调 window.close:手机会把询价小助手整个退出。
|
|
||||||
function closeDesktop() {{
|
function closeDesktop() {{
|
||||||
closeOnce(function () {{
|
try {{
|
||||||
if (window.ww && typeof ww.closeWindow === "function") ww.closeWindow();
|
if (typeof WeixinJSBridge !== "undefined" && typeof WeixinJSBridge.invoke === "function") {{
|
||||||
else if (window.wx && typeof wx.closeWindow === "function") wx.closeWindow();
|
WeixinJSBridge.invoke("closeWindow", {{}}, function () {{}});
|
||||||
}});
|
}}
|
||||||
|
}} catch (e) {{}}
|
||||||
|
try {{
|
||||||
|
if (window.ww && typeof ww.closeWindow === "function") {{
|
||||||
|
var ret = ww.closeWindow();
|
||||||
|
if (ret && ret.catch) ret.catch(function () {{}});
|
||||||
|
}} else if (window.wx && typeof wx.closeWindow === "function") {{
|
||||||
|
wx.closeWindow();
|
||||||
|
}}
|
||||||
|
}} catch (e) {{}}
|
||||||
|
try {{ window.close(); }} catch (e) {{}}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
function boot() {{
|
function boot() {{
|
||||||
@@ -85,21 +100,15 @@ def wecom_auto_close_script() -> str:
|
|||||||
}}, false);
|
}}, false);
|
||||||
return;
|
return;
|
||||||
}}
|
}}
|
||||||
var ready = Promise.resolve();
|
setTimeout(closeDesktop, {delay});
|
||||||
if (window.ww && ww.register && corpId) {{
|
if (!(window.ww && ww.register && corpId)) return;
|
||||||
ready = ww.register({{
|
ww.register({{
|
||||||
corpId: corpId,
|
corpId: corpId,
|
||||||
agentId: agentId,
|
agentId: agentId,
|
||||||
jsApiList: ["closeWindow"],
|
jsApiList: ["closeWindow"],
|
||||||
getConfigSignature: sign("corp"),
|
getConfigSignature: sign("corp"),
|
||||||
getAgentConfigSignature: sign("agent")
|
getAgentConfigSignature: sign("agent")
|
||||||
}}).catch(function () {{ return null; }});
|
}}).then(function () {{
|
||||||
}}
|
|
||||||
var timed = Promise.race([
|
|
||||||
ready,
|
|
||||||
new Promise(function (resolve) {{ setTimeout(resolve, 2500); }})
|
|
||||||
]);
|
|
||||||
timed.then(function () {{
|
|
||||||
setTimeout(closeDesktop, {delay});
|
setTimeout(closeDesktop, {delay});
|
||||||
}}).catch(function () {{
|
}}).catch(function () {{
|
||||||
setTimeout(closeDesktop, {delay});
|
setTimeout(closeDesktop, {delay});
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
本文件职责:核对卡通过后、建单查价前,确认当前运输类型的货物字段能拼出查价正文。
|
本文件职责:核对卡通过后、建单查价前,确认当前运输类型的货物字段能拼出查价正文。
|
||||||
带去:运输类型、线路类别、始发/目的/品名/报价日期,以及该类型的体积重量或车型/数量;通关口岸有值才带。
|
带去:运输类型、线路类别、始发/目的/品名/报价日期,以及该类型的体积重量或车型/数量;通关口岸有值才带。
|
||||||
出站类型/线路必须译成 TMS 6.1.1 英文枚举,线路键名 routeCategory。工单与卡片仍用中文。
|
出站类型/线路译成 TMS 用的值,线路键名 routeCategory。工单与卡片仍用销售中文。
|
||||||
中港整车、中港零担/集拼出站类型都是 CHINA_HK。中港整车不带车型/数量。
|
中港整车、中港零担/集拼出站类型都只写「中港」。中港整车不带车型/数量。
|
||||||
禁止:把运输分类放进出站;直连 TMS;改六态。
|
禁止:把运输分类放进出站;直连 TMS;改六态。
|
||||||
线程:纯函数。
|
线程:纯函数。
|
||||||
"""
|
"""
|
||||||
@@ -29,8 +29,8 @@ _TYPE_ENUM = {
|
|||||||
"国内运输整车": "DOMESTIC_FTL",
|
"国内运输整车": "DOMESTIC_FTL",
|
||||||
"跨境集拼": "CROSS_BORDER_LTL",
|
"跨境集拼": "CROSS_BORDER_LTL",
|
||||||
"跨境整车": "CROSS_BORDER_FTL",
|
"跨境整车": "CROSS_BORDER_FTL",
|
||||||
"中港整车": "CHINA_HK",
|
"中港整车": "中港",
|
||||||
"中港零担/集拼": "CHINA_HK",
|
"中港零担/集拼": "中港",
|
||||||
}
|
}
|
||||||
_ROUTE_ENUM = {
|
_ROUTE_ENUM = {
|
||||||
"国内长途/零担": "DOMESTIC_LONG_LTL",
|
"国内长途/零担": "DOMESTIC_LONG_LTL",
|
||||||
@@ -45,7 +45,7 @@ _TAIL_QTY = re.compile(r"^(.*?)[\s,,]+(\d+)\s*(台|辆)?$")
|
|||||||
|
|
||||||
|
|
||||||
def tms_land_type_code(raw: str) -> str:
|
def tms_land_type_code(raw: str) -> str:
|
||||||
"""销售中文运输类型 → TMS 6.1.1 landTransportType。对不上空串。"""
|
"""销售中文运输类型 → 查价 landTransportType。中港两类都是「中港」。对不上空串。"""
|
||||||
text = (raw or "").strip()
|
text = (raw or "").strip()
|
||||||
if text in _TYPE_ENUM:
|
if text in _TYPE_ENUM:
|
||||||
return _TYPE_ENUM[text]
|
return _TYPE_ENUM[text]
|
||||||
|
|||||||
@@ -407,7 +407,10 @@ class AirRouteOptionsTests(unittest.TestCase):
|
|||||||
self.assertIn("closeWindow", ok)
|
self.assertIn("closeWindow", ok)
|
||||||
self.assertIn("wecom-jssdk", ok)
|
self.assertIn("wecom-jssdk", ok)
|
||||||
self.assertIn("jsapi-signature", ok)
|
self.assertIn("jsapi-signature", ok)
|
||||||
self.assertNotIn("window.close()", ok)
|
mobile = ok.split("function closeMobile()")[1].split("function closeDesktop()")[0]
|
||||||
|
desktop = ok.split("function closeDesktop()")[1].split("function boot()")[0]
|
||||||
|
self.assertNotIn("window.close()", mobile)
|
||||||
|
self.assertIn("window.close()", desktop)
|
||||||
self.assertNotIn("closeWindow", dead)
|
self.assertNotIn("closeWindow", dead)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,11 @@ class AttachmentUploadH5Tests(unittest.TestCase):
|
|||||||
self.assertIn("wecom-jssdk", ok)
|
self.assertIn("wecom-jssdk", ok)
|
||||||
self.assertIn("jsapi-signature", ok)
|
self.assertIn("jsapi-signature", ok)
|
||||||
self.assertIn("function isPhone()", ok)
|
self.assertIn("function isPhone()", ok)
|
||||||
self.assertNotIn("window.close()", ok)
|
self.assertIn("WeixinJSBridge.invoke", ok)
|
||||||
|
mobile = ok.split("function closeMobile()")[1].split("function closeDesktop()")[0]
|
||||||
|
desktop = ok.split("function closeDesktop()")[1].split("function boot()")[0]
|
||||||
|
self.assertNotIn("window.close()", mobile)
|
||||||
|
self.assertIn("window.close()", desktop)
|
||||||
self.assertNotIn("closeWindow", page)
|
self.assertNotIn("closeWindow", page)
|
||||||
self.assertNotIn("closeWindow", dead)
|
self.assertNotIn("closeWindow", dead)
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class TmsLandQueryTest(unittest.TestCase):
|
|||||||
got = assemble_land_query(facts)
|
got = assemble_land_query(facts)
|
||||||
self.assertTrue(got["ok"])
|
self.assertTrue(got["ok"])
|
||||||
out = got["outbound"]
|
out = got["outbound"]
|
||||||
self.assertEqual(out["landTransportType"], "CHINA_HK")
|
self.assertEqual(out["landTransportType"], "中港")
|
||||||
self.assertEqual(out["routeCategory"], "SOUTHEAST_ASIA")
|
self.assertEqual(out["routeCategory"], "SOUTHEAST_ASIA")
|
||||||
self.assertNotIn("landRouteCategory", out)
|
self.assertNotIn("landRouteCategory", out)
|
||||||
self.assertEqual(out["vehicleType"], "9米6")
|
self.assertEqual(out["vehicleType"], "9米6")
|
||||||
@@ -52,6 +52,7 @@ class TmsLandQueryTest(unittest.TestCase):
|
|||||||
got = assemble_land_query(facts)
|
got = assemble_land_query(facts)
|
||||||
self.assertTrue(got["ok"])
|
self.assertTrue(got["ok"])
|
||||||
out = got["outbound"]
|
out = got["outbound"]
|
||||||
|
self.assertEqual(out["landTransportType"], "中港")
|
||||||
self.assertNotIn("vehicleType", out)
|
self.assertNotIn("vehicleType", out)
|
||||||
self.assertNotIn("quantity", out)
|
self.assertNotIn("quantity", out)
|
||||||
|
|
||||||
|
|||||||
+8
-2
@@ -4,6 +4,7 @@ package org.jeecg.modules.inquiry.tms;
|
|||||||
* 陆运运输类型 / 线路类别出站:产品要求原文直传,不再翻成 TMS 英文枚举。
|
* 陆运运输类型 / 线路类别出站:产品要求原文直传,不再翻成 TMS 英文枚举。
|
||||||
* <p>
|
* <p>
|
||||||
* 职责:统一 trim;空串表示未填。工单/卡片/拉人本来就是中文,出站与之一致。
|
* 职责:统一 trim;空串表示未填。工单/卡片/拉人本来就是中文,出站与之一致。
|
||||||
|
* 中港整车、中港零担/集拼查价只传「中港」,工单仍留细类。
|
||||||
* 禁止:再把「跨境整车」写成 CROSS_BORDER_FTL;把运输分类、中港装载方式塞进出站。
|
* 禁止:再把「跨境整车」写成 CROSS_BORDER_FTL;把运输分类、中港装载方式塞进出站。
|
||||||
* 历史英文码若仍传入,原样放过(兼容旧快照),不做双向翻译。
|
* 历史英文码若仍传入,原样放过(兼容旧快照),不做双向翻译。
|
||||||
*/
|
*/
|
||||||
@@ -14,10 +15,15 @@ public final class TmsLandEnumMapper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param raw 销售中文(或历史英文码)
|
* @param raw 销售中文(或历史英文码)
|
||||||
* @return trim 后原文;空则 ""
|
* @return 中港两类收成「中港」;其余 trim 后原文;空则 ""
|
||||||
*/
|
*/
|
||||||
public static String transportType(String raw) {
|
public static String transportType(String raw) {
|
||||||
return trimOrEmpty(raw);
|
String text = trimOrEmpty(raw);
|
||||||
|
if ("中港整车".equals(text) || "中港零担/集拼".equals(text)) {
|
||||||
|
// zhonggang: 两类细类查价都只传「中港」
|
||||||
|
return "中港";
|
||||||
|
}
|
||||||
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+2
-2
@@ -18,8 +18,8 @@ import java.util.regex.Pattern;
|
|||||||
* 职责:把工单 facts 里的中文键写成 TMS 段;运输分类只留在工单,不进出站。
|
* 职责:把工单 facts 里的中文键写成 TMS 段;运输分类只留在工单,不进出站。
|
||||||
* 拼车/跨境集拼带体积重量;国内整车/跨境整车/中港零担带「车型/数量」一项再拆成出站车型与台数;
|
* 拼车/跨境集拼带体积重量;国内整车/跨境整车/中港零担带「车型/数量」一项再拆成出站车型与台数;
|
||||||
* 中港整车不带车型/数量。通关口岸有值才放。
|
* 中港整车不带车型/数量。通关口岸有值才放。
|
||||||
* 中港整车、中港零担/集拼:出站类型仍用销售中文「中港整车」「中港零担/集拼」(产品要求不做英文枚举映射)。
|
* 中港整车、中港零担/集拼:出站 landTransportType 只写「中港」,工单事实仍留细类。
|
||||||
* 类型/线路键名仍是 landTransportType / routeCategory,值用中文原文。
|
* 类型/线路键名仍是 landTransportType / routeCategory。除中港两类外,值用中文原文。
|
||||||
* 禁止:按空运要包装件数;把分类当查价条件;直连 TMS;再把中文翻成 CROSS_BORDER_*。
|
* 禁止:按空运要包装件数;把分类当查价条件;直连 TMS;再把中文翻成 CROSS_BORDER_*。
|
||||||
*/
|
*/
|
||||||
public final class TmsLandSegmentMapper {
|
public final class TmsLandSegmentMapper {
|
||||||
|
|||||||
+1
-1
@@ -151,7 +151,7 @@ public final class TmsV2RequestMapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 陆运出站:类型+线路用销售中文原文(产品要求不做英文枚举映射);线路字段名是 routeCategory。
|
* 陆运出站:类型+线路用销售中文;中港整车、中港零担/集拼收成「中港」。线路字段名是 routeCategory。
|
||||||
* 分类和中港装载即使误放在 source 也不抄走。
|
* 分类和中港装载即使误放在 source 也不抄走。
|
||||||
*/
|
*/
|
||||||
private static void applyLandFields(Map<String, Object> source, Map<String, Object> target) {
|
private static void applyLandFields(Map<String, Object> source, Map<String, Object> target) {
|
||||||
|
|||||||
+7
@@ -27,6 +27,13 @@ public class TmsLandEnumMapperTest {
|
|||||||
assertEquals("", TmsLandEnumMapper.routeCategory(" "));
|
assertEquals("", TmsLandEnumMapper.routeCategory(" "));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void hkTypesCollapseToZhonggang() {
|
||||||
|
assertEquals("中港", TmsLandEnumMapper.transportType("中港整车"));
|
||||||
|
assertEquals("中港", TmsLandEnumMapper.transportType("中港零担/集拼"));
|
||||||
|
assertEquals("中港集拼", TmsLandEnumMapper.transportType("中港集拼"));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void legacyEnglishCodesPassThrough() {
|
public void legacyEnglishCodesPassThrough() {
|
||||||
assertEquals("DOMESTIC_LTL", TmsLandEnumMapper.transportType("DOMESTIC_LTL"));
|
assertEquals("DOMESTIC_LTL", TmsLandEnumMapper.transportType("DOMESTIC_LTL"));
|
||||||
|
|||||||
+2
-2
@@ -46,7 +46,7 @@ public class TmsLandSegmentMapperTest {
|
|||||||
facts.put("车型/数量", "9米6/1");
|
facts.put("车型/数量", "9米6/1");
|
||||||
facts.put("体积", "99");
|
facts.put("体积", "99");
|
||||||
Map<String, Object> seg = TmsLandSegmentMapper.build(facts);
|
Map<String, Object> seg = TmsLandSegmentMapper.build(facts);
|
||||||
assertEquals("中港零担/集拼", seg.get("landTransportType"));
|
assertEquals("中港", seg.get("landTransportType"));
|
||||||
assertEquals("9米6", seg.get("vehicleType"));
|
assertEquals("9米6", seg.get("vehicleType"));
|
||||||
assertNull(seg.get("volumeCbm"));
|
assertNull(seg.get("volumeCbm"));
|
||||||
assertFalse(seg.containsKey("hkLoadType"));
|
assertFalse(seg.containsKey("hkLoadType"));
|
||||||
@@ -62,7 +62,7 @@ public class TmsLandSegmentMapperTest {
|
|||||||
facts.put("目的港", "香港");
|
facts.put("目的港", "香港");
|
||||||
facts.put("品名", "衣服");
|
facts.put("品名", "衣服");
|
||||||
Map<String, Object> seg = TmsLandSegmentMapper.build(facts);
|
Map<String, Object> seg = TmsLandSegmentMapper.build(facts);
|
||||||
assertEquals("中港整车", seg.get("landTransportType"));
|
assertEquals("中港", seg.get("landTransportType"));
|
||||||
assertNull(seg.get("vehicleType"));
|
assertNull(seg.get("vehicleType"));
|
||||||
assertNull(seg.get("quantity"));
|
assertNull(seg.get("quantity"));
|
||||||
java.util.List<String> missing = TmsLandSegmentMapper.missingQuery(
|
java.util.List<String> missing = TmsLandSegmentMapper.missingQuery(
|
||||||
|
|||||||
@@ -666,9 +666,11 @@ onUnmounted(() => document.removeEventListener("click", onDocClick));
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dash-route-menu {
|
.dash-route-menu {
|
||||||
|
/* 盖过图表区;宽度在 dashboard-prototype.css 里写成 360px,避免按按钮宽度收缩 */
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: calc(100% + 8px);
|
top: calc(100% + 8px);
|
||||||
|
z-index: 120;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dash-cost-footnote {
|
.dash-cost-footnote {
|
||||||
|
|||||||
@@ -43,10 +43,16 @@ body {
|
|||||||
padding: 16px 16px 40px !important;
|
padding: 16px 16px 40px !important;
|
||||||
gap: 12px !important;
|
gap: 12px !important;
|
||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
overflow-x: hidden;
|
/*
|
||||||
flex: 1 1 auto !important;
|
* 主区被锁成一屏。flex-basis 用 auto 时,格子会按内容把内容区撑高,
|
||||||
|
* 再被主区裁掉,页面上就没有滚动条,鼠标也滚不动。
|
||||||
|
* basis 取 0、高度先归零,再由 flex 撑满顶栏下方,多出来的内容在这里滚。
|
||||||
|
*/
|
||||||
|
flex: 1 1 0% !important;
|
||||||
|
height: 0 !important;
|
||||||
min-height: 0 !important;
|
min-height: 0 !important;
|
||||||
overflow: auto !important;
|
overflow-x: hidden !important;
|
||||||
|
overflow-y: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -127,6 +133,7 @@ body {
|
|||||||
padding: 0 14px !important;
|
padding: 0 14px !important;
|
||||||
gap: 12px !important;
|
gap: 12px !important;
|
||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
/* 允许用户下拉露出;业务 Teleport 区单独 overflow:hidden 防幽灵点击层 */
|
/* 允许用户下拉露出;业务 Teleport 区单独 overflow:hidden 防幽灵点击层 */
|
||||||
overflow: visible !important;
|
overflow: visible !important;
|
||||||
}
|
}
|
||||||
@@ -1070,6 +1077,7 @@ h6 {
|
|||||||
.admin-content:has(.ref-surface--metrics) {
|
.admin-content:has(.ref-surface--metrics) {
|
||||||
padding: 14px 14px 36px !important;
|
padding: 14px 14px 36px !important;
|
||||||
gap: 10px !important;
|
gap: 10px !important;
|
||||||
|
align-content: start !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---- 话术 ---- */
|
/* ---- 话术 ---- */
|
||||||
@@ -1523,3 +1531,37 @@ textarea.field.field-tall {
|
|||||||
background: #f8fbff !important;
|
background: #f8fbff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 分析看板比一屏高。整页被 html / 主区锁死时,内容区即使设了 overflow,
|
||||||
|
* 格子也会跟着内容长高,再被主区裁掉,滚轮没有可滚的对象。
|
||||||
|
* 看板单独放开文档滚动;列表页仍锁在一屏里,表格自己滚。
|
||||||
|
*/
|
||||||
|
html:has(.ref-surface--metrics),
|
||||||
|
body:has(.ref-surface--metrics) {
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 100% !important;
|
||||||
|
overflow-x: hidden !important;
|
||||||
|
overflow-y: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#app:has(.ref-surface--metrics),
|
||||||
|
.admin-shell:has(.ref-surface--metrics) {
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 100vh !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-stage:has(.ref-surface--metrics) {
|
||||||
|
height: auto !important;
|
||||||
|
max-height: none !important;
|
||||||
|
min-height: 100vh !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-content:has(.ref-surface--metrics) {
|
||||||
|
height: auto !important;
|
||||||
|
max-height: none !important;
|
||||||
|
flex: none !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -776,9 +776,13 @@
|
|||||||
color: #155eef;
|
color: #155eef;
|
||||||
}
|
}
|
||||||
.ref-route-filter__menu {
|
.ref-route-filter__menu {
|
||||||
position: fixed;
|
/* 必须用固定宽度。百分比会按「线路筛选」按钮的宽度算,面板只剩一字宽,中文被挤成竖排,全选也被裁掉。 */
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: calc(100% + 8px);
|
||||||
z-index: 120;
|
z-index: 120;
|
||||||
width: min(360px, calc(100% - 24px));
|
width: 360px;
|
||||||
|
max-width: calc(100vw - 48px);
|
||||||
border: 1px solid #dfe5ee;
|
border: 1px solid #dfe5ee;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@@ -797,12 +801,14 @@
|
|||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.ref-route-filter__menu-sub {
|
.ref-route-filter__menu-sub {
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.ref-route-filter__actions.tabs-pill {
|
.ref-route-filter__actions.tabs-pill {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
@@ -861,6 +867,7 @@
|
|||||||
}
|
}
|
||||||
.ref-route-chip__text {
|
.ref-route-chip__text {
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.month-range-picker {
|
.month-range-picker {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
Reference in New Issue
Block a user