From 28f428180885b4718c676f4815c8d8f96c6add43 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期五, 22 三月 2024 14:20:29 +0800
Subject: [PATCH] 功能调整

---
 src/components/tool/value-table.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue
index c8bce0f..889071c 100644
--- a/src/components/tool/value-table.vue
+++ b/src/components/tool/value-table.vue
@@ -36,30 +36,30 @@
 	}
 </style>
 <style>
-	.value-table .highlight-warning-row-border td {
+	/* .value-table .highlight-warning-row-border td {
 		border-top: 2px solid #ffcd29;
 		border-bottom: 2px solid #ffcd29;
-	}
+	} */
 
 	.value-table .highlight-warning-row-border td:first-child {
-		border-left: 2px solid #ffcd29;
+		border-left: 4px solid #ffcd29;
 	}
 
 	.value-table .highlight-warning-row-border td:last-child {
-		border-right: 2px solid #ffcd29;
+		border-right: 4px solid #ffcd29;
 	}
 
-	.value-table .highlight-danger-row-border td {
+	/* .value-table .highlight-danger-row-border td {
 		border-top: 2px solid red;
 		border-bottom: 2px solid red;
-	}
+	} */
 
 	.value-table .highlight-danger-row-border td:first-child {
-		border-left: 2px solid red;
+		border-left: 4px solid red;
 	}
 
 	.value-table .highlight-danger-row-border td:last-child {
-		border-right: 2px solid red;
+		border-right: 4px solid red;
 	}
 
 	.value-table .el-upload {
@@ -340,6 +340,7 @@
 				uploadDia: false,
 				token: null,
 				fileList: [],
+				init: true
 			}
 		},
 		watch: {
@@ -355,7 +356,9 @@
 		mounted() {
 			this.data = this.componentData
 			this.dataCopy = this.HaveJson(this.componentData)
-			this.selectList()
+			if(this.data.init===undefined||this.data.init===true){
+				this.selectList()
+			}
 			this.token = {
 				'token': sessionStorage.getItem('token')
 			}
@@ -583,7 +586,7 @@
 					}
 				}
 				val.field.forEach(a => {
-					if (JSON.stringify(this.upData[a]) == undefined) {
+					if (JSON.stringify(this.upData[a]) === undefined) {
 						this.upHead.push({
 							value: a.split('=')[0],
 							label: a.split('=')[1]

--
Gitblit v1.9.3