From 359e4f9544878160198377c4f24d3a5a31d9a63a Mon Sep 17 00:00:00 2001
From: "15881625488@163.com" <15881625488@163.com>
Date: Wed, 4 Feb 2026 12:20:36 +0800
Subject: [PATCH] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?=
=?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=86=85=E5=AE=B9=E6=88=AA=E6=96=AD=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 9 ++++++++-
src/components/Template/BaseInfoFormPackage.vue | 2 ++
src/components/Template/CustomTable.vue | 2 ++
src/components/Template/Table.vue | 2 +-
src/views/business/comps/common/JcgjList.vue | 6 +++---
src/views/business/study/comp/tbbd/Xq.vue | 1 +
6 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 8601d19..81f7f87 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -314,7 +314,14 @@ export default {
margin-top: 10px;
}
}
-
+.no-break {
+ page-break-inside: avoid;
+ }
+/* 表格行不被分割 */
+ table, tr, td, th {
+ page-break-inside: avoid;
+ }
+
/** 基础信息设置tab **/
.edit-container {
diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue
index 27520d0..e224bfd 100644
--- a/src/components/Template/BaseInfoFormPackage.vue
+++ b/src/components/Template/BaseInfoFormPackage.vue
@@ -315,10 +315,12 @@ export default {
}
.flex1 {
+ page-break-inside: avoid;
flex: 1;
}
.flex {
+ page-break-inside: avoid;
display: flex;
}
diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue
index 077ae6e..c8a2f30 100644
--- a/src/components/Template/CustomTable.vue
+++ b/src/components/Template/CustomTable.vue
@@ -940,6 +940,7 @@ export default {
text-align: left;
vertical-align: middle;
border-right: 1px solid #ebeef5;
+ page-break-inside: avoid;
box-sizing: border-box;
}
@@ -959,6 +960,7 @@ export default {
.body-cell {
color: #606266;
+ page-break-inside: avoid;
background-color: #fff;
}
diff --git a/src/components/Template/Table.vue b/src/components/Template/Table.vue
index 91c525d..0545679 100644
--- a/src/components/Template/Table.vue
+++ b/src/components/Template/Table.vue
@@ -3,7 +3,7 @@