From 181ba783749158da79009d5d4b6767a73cd3a5a9 Mon Sep 17 00:00:00 2001
From: LiuJiaNan <15703339975@163.com>
Date: Fri, 27 Mar 2026 10:04:28 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=AA=E4=BA=BA=E8=BD=A6?=
=?UTF-8?q?=E8=BE=86=E5=A2=9E=E5=8A=A0=E4=B8=A4=E8=BE=86=E8=BD=A6=E9=99=90?=
=?UTF-8?q?=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ImportAndExportPortInfo/PersonalVehicle/List/index.js | 4 ++++
.../StockPersonnelAndVehicles/VehicleManagement/List/index.js | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/PersonalVehicle/List/index.js b/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/PersonalVehicle/List/index.js
index e80757b..9cd68c2 100644
--- a/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/PersonalVehicle/List/index.js
+++ b/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/PersonalVehicle/List/index.js
@@ -43,6 +43,10 @@ function List(props) {
icon={()}
type="primary"
onClick={() => {
+ if (tableProps.dataSource.length >= 2) {
+ message.warning("最多添加两辆车");
+ return;
+ }
props.history.push("./add");
}}
>
diff --git a/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/StockPersonnelAndVehicles/VehicleManagement/List/index.js b/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/StockPersonnelAndVehicles/VehicleManagement/List/index.js
index 4b62a1a..7df331b 100644
--- a/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/StockPersonnelAndVehicles/VehicleManagement/List/index.js
+++ b/src/pages/Container/Supervision/FirstLevelDoor/ImportAndExportPortInfo/StockPersonnelAndVehicles/VehicleManagement/List/index.js
@@ -58,6 +58,10 @@ function List(props) {
icon={()}
type="primary"
onClick={() => {
+ if (tableProps.dataSource.length >= 2) {
+ message.warning("最多添加两辆车");
+ return;
+ }
props.history.push("./add");
}}
>