From 38e4af7ca9d1c60c4976f690aba2153ce0907b46 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 06 Dec 2025 16:05:11 +0800
Subject: [PATCH] feat:更新使用vue3表格如果数据为空,统一增加空图

---
 src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue b/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
index c0b5e80..bc543ab 100644
--- a/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
+++ b/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -85,9 +85,19 @@
 						<el-button icon="el-icon-view" type="text" @click="handleDetail(scope.row)">查看</el-button>
 					</template>
 				</el-table-column>
+        <template #empty>
+          <el-empty
+            class="custom-empty"
+            :image-size="100"
+          >
+            <template #description>
+              <span class="custom-text">暂无数据</span>
+            </template>
+          </el-empty>
+        </template>
 			</el-table>
 		</div>
-		<div class="pagination">
+		<div class="pagination" v-if="jobListData.length > 0">
 			<el-pagination class="ztzf-pagination" popper-class="custom-pagination-dropdown" background
 				:page-sizes="[10, 20, 30, 40, 50, 100]" :size="size" v-model:current-page="jobListParams.current"
 				v-model:page-size="jobListParams.size" layout="total, sizes, prev, pager, next, jumper" :total="total"
@@ -298,7 +308,22 @@
 		flex: 1;
 		margin-top: 18px;
 		overflow: auto;
+    :deep(.el-scrollbar__view) {
+      height: 100%;
+    }
+    :deep(.el-table--fit,.el-scrollbar__view) {
+      height: 100%;
+    }
 	}
+
+  .custom-empty {
+    //font-family: Source Han Sans CN, Source Han Sans CN;
+    //margin-top: 15%;
+    //.custom-text {
+    //  color: #fff;
+    //  font-size: 16px;
+    //}
+  }
 
 	.btnItem {
 		height: 27px;
@@ -344,6 +369,7 @@
 
 	:deep(.el-pagination) {
 		display: flex;
+    padding: 20px 0;
 		justify-content: right;
 	}
 

--
Gitblit v1.9.3