From fdba2ee15b60620d27d79dd2313c168f811626e0 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 27 Jan 2026 18:11:47 +0800
Subject: [PATCH] feat:调整宽度

---
 applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue b/applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue
index 3a6844a..f25db98 100644
--- a/applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue
+++ b/applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue
@@ -183,10 +183,21 @@
 const tableData = ref([]) // 附件表格数据
 // 文件移除
 const handleFileRemove = (file, fileList) => {
+console.log('删除文件', fileList);
+uploadedFiles.value = fileList
 	// 从已上传文件列表中移除对应文件
-	if (file.response && file.response.attachId) {
-		uploadedFiles.value = uploadedFiles.value.filter(item => item.attachId !== file.response.attachId)
-	}
+	// if (file.response && file.response.attachId) {
+	// 	// uploadedFiles.value = uploadedFiles.value.filter(item => item.attachId !== file.response.attachId)
+	// 	// 找到 id=1 的对象的索引
+	// 	const index = uploadedFiles.value.findIndex(item => item.attachId !== file.response.attachId)
+
+	// 	// 如果找到了,移除该对象
+	// 	if (index !== -1) {
+	// 		uploadedFiles.value.splice(index, 1)
+	// 	}
+	// 	console.log('删除文件', uploadedFiles.value);
+
+	// }
 	// 清空响应数据
 	if (responseData.value && responseData.value.attachId === file.response?.attachId) {
 		responseData.value = null
@@ -410,7 +421,7 @@
 const approvedByTheReview = () => {
 	if (uploadedFiles.value.length === 0) {
 		return ElMessage.warning('请上传数据')
-	}
+	}	
 	// 从 uploadedFiles.value 中提取所有 attachId
 	const id = uploadedFiles.value.map(file => file.attachId)
 	submitting.value = true
@@ -492,4 +503,6 @@
 :deep(.el-upload-list) {
 	margin-top: 10px;
 }
+.el-upload-list__item.is-success:focus .el-upload-list__item-status-label, .el-upload-list__item.is-success:hover .el-upload-list__item-status-label{
+display: none !important;}
 </style>

--
Gitblit v1.9.3