From fedaef2ff7b15be381af0169084c659dbb598838 Mon Sep 17 00:00:00 2001 From: yys <47@gamerwa.com> Date: Tue, 14 Apr 2026 11:31:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E8=AE=A2=E5=8D=95=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=88=97=E5=AE=BD=EF=BC=8C=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E5=A6=82=E6=9E=9C=E6=98=AF=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=E5=8F=AA=E6=98=BE=E7=A4=BA=E4=B8=AD=E6=96=87=E6=88=96?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=EF=BC=8C=E6=B5=AE=E7=AA=97=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=AE=8C=E6=95=B4=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-ui/src/views/ai/order/index.vue | 140 ++++++++++++++++++++------ 1 file changed, 107 insertions(+), 33 deletions(-) diff --git a/admin-ui/src/views/ai/order/index.vue b/admin-ui/src/views/ai/order/index.vue index 77085bb..e41693b 100644 --- a/admin-ui/src/views/ai/order/index.vue +++ b/admin-ui/src/views/ai/order/index.vue @@ -93,17 +93,17 @@ - + - - - + + + - - + + - + - - - + + + 32 ? "…" : "") : "—"; + }, + /** 已知火山错误码后附中文说明(括号),导出等场景可用 */ + volcFailureCodeWithHint(code) { + const c = String(code || "").trim(); + if (!c) return ""; + const hint = this.volcTaskErrorHintForCode(c); return hint ? `${c}(${hint})` : c; }, /** result 为火山回调失败写入的 VideoTaskError JSON 时解析为 { code, message } */ @@ -557,19 +594,56 @@ export default { height: auto; } -.order-result-error { - text-align: left; - max-width: 280px; - margin: 0 auto; - font-size: 12px; - line-height: 1.45; - color: #c45656; +.order-result-error-wrap { + display: inline-block; } -.order-result-error-line { +.order-result-error-compact { + display: inline-block; + max-width: 200px; + margin: 0 auto; + font-size: 12px; + line-height: 1.35; + color: #c45656; + cursor: help; + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + vertical-align: middle; +} + +.order-result-error-tooltip-body { + max-width: 420px; + text-align: left; + line-height: 1.5; + font-size: 12px; +} + +.order-result-error-tooltip-row { + margin-bottom: 6px; +} + +.order-result-error-tooltip-row:last-child { + margin-bottom: 0; +} + +.order-result-error-tooltip-row--msg .order-result-error-tooltip-v { + display: block; + margin-top: 2px; + white-space: pre-wrap; word-break: break-word; } +.order-result-error-tooltip-k { + font-weight: 600; + color: #fde2e2; +} + +.order-result-error-tooltip-v { + color: #fff; +} + .text-ellipsis-two-lines { /* 必须设置宽度(继承表格列宽,也可手动指定) */ width: 100%;