From ecd324fdc99264629f9cf136deda31dd4d8ac38c Mon Sep 17 00:00:00 2001 From: WuYongJie Date: Tue, 10 Nov 2026 16:23:38 +0800 Subject: [PATCH] Simplify batch disposal and remove deployment confirmation gate --- AGENTS.md | 2 +- .../src/components/BatchDisposalDialog.vue | 580 +++++++++++++++--- .../src/components/DisposalAssetPicker.vue | 110 ++-- 3 files changed, 534 insertions(+), 158 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 65dd7c2..9ed925e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,7 +39,7 @@ - 本项目内所有子代理默认统一使用 `gpt-5.4`。 - 所有 `worker` 类子代理固定使用 `gpt-5.4 + xhigh` 思考等级。 - `explorer` / 其他子代理思考等级按任务复杂度选择,但最低不得低于 `medium`。 -- 只有涉及线上、真实数据、密钥账号、证书、付费资源、不可逆操作时才暂停确认。 +- 只有涉及真实数据、密钥账号、证书、付费资源、不可逆操作时才暂停确认。 ## 3. 前端规则 diff --git a/frontend/src/components/BatchDisposalDialog.vue b/frontend/src/components/BatchDisposalDialog.vue index de309ce..c3c473a 100644 --- a/frontend/src/components/BatchDisposalDialog.vue +++ b/frontend/src/components/BatchDisposalDialog.vue @@ -7,117 +7,235 @@ @cancel.prevent="close" @keydown.tab="keepDialogTabFocus" > -
-
-

{{ dialogHeading }}

-

{{ picking ? '搜索并勾选一项或多项资产,然后预检。' : '预览并选择要申请的资产。提交后进入报废审批。' }}

+ +
+
+

+ {{ dialogHeading }} +

+

+ {{ fileName || 'Excel / CSV' }} +

+
+
+ + -
- -
- - {{ fileName }} -
-

支持 Excel、CSV,清单需包含“编码”“资产编码”或“设备编码”列。

-
+ diff --git a/frontend/src/components/DisposalAssetPicker.vue b/frontend/src/components/DisposalAssetPicker.vue index cc599ba..3d09b7c 100644 --- a/frontend/src/components/DisposalAssetPicker.vue +++ b/frontend/src/components/DisposalAssetPicker.vue @@ -1,69 +1,67 @@