From c85261c55d3d38469af55cdad8010141448048da Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 10 Apr 2025 16:18:55 +0800
Subject: [PATCH] feat: 降本增效和弹窗样式

---
 src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue |  134 ++++++++++++++++++++++----------------------
 src/views/Home/HomeRight/Synergy.vue                                          |    2 
 src/views/TaskManage/TaskIntermediateContent/initPointWayline.js              |    2 
 3 files changed, 68 insertions(+), 70 deletions(-)

diff --git a/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue b/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue
index ac2107b..0e1ca6e 100644
--- a/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue
+++ b/src/views/Home/HomeLeft/InspectionRaskDetails/InspectionRaskDetailsDialog.vue
@@ -1,8 +1,7 @@
  <!--  巡检任务情况-详情 -->
 <template>
 	<el-dialog
-		
-		class="data-dialog"
+		class="inspection-rask-details-dialog"
 		v-model="isShowDetailsDialog"
 		:width="pxToRem(1000)"
 		:close-on-click-modal="false"
@@ -340,18 +339,6 @@
 	border: 1px solid #1479ef !important;
 	z-index: 1;
 }
-:deep(.data-dialog .el-dialog__header) {
-	/* 头部 */
-
-	width: 1270px;
-	height: 47px;
-	margin-bottom: 14px;
-	background: url('/src/assets/images/home/homeLeft/inspection-vector.png') no-repeat center;
-	background-size: 100% 100%;
-	font-weight: bold;
-	font-size: 16px;
-	line-height: 47px;
-}
 .el-table {
 	color: #fff;
 	--el-table-border-color: var(--el-border-color-lighter);
@@ -417,8 +404,8 @@
 	cursor: pointer;
 }
 </style>
-<style>
-.data-dialog {
+<style lang="scss">
+.inspection-rask-details-dialog {
 	width: 1270px;
 	height: 856px;
 	background: #0f1929;
@@ -435,60 +422,71 @@
 			rgba(27, 148, 255, 1)
 		)
 		2 2;
-}
+	/* 头部 */
+	.el-dialog__header {
+		width: 1270px;
+		height: 47px;
+		margin-bottom: 14px;
+		background: url('/src/assets/images/home/homeLeft/inspection-vector.png') no-repeat center;
+		background-size: 100% 100%;
+		font-weight: bold;
+		font-size: 16px;
+		line-height: 47px;
+	}
 
-.el-dialog .el-dialog__header {
-	/* margin: 0px !important; */
-	padding: 0px !important;
-	padding-left: 0px !important;
-}
-/* 头部 */
-.el-dialog__title {
-	width: 112px;
-	height: 19px;
-	font-family: Segoe UI, Segoe UI;
-	font-weight: bold;
-	font-size: 16px;
-	line-height: 16px;
-	text-shadow: 0px 0px 5px rgba(154, 218, 255, 0.6);
-	text-align: left;
-	font-style: normal;
-	text-transform: none;
-	background: linear-gradient(90deg, #fbfdff 0%, #86d4ff 100%);
-	margin-left: 16px;
-	-webkit-background-clip: text; /* 背景被裁剪成文字的前景色 */
-	-webkit-text-fill-color: transparent; /* 文字填充颜色变透明 */
-}
-.el-table__inner-wrapper:before {
-	height: 0 !important;
-}
-.el-table .warning-row {
-	--el-table-tr-bg-color: rgba(22, 43, 74, 0.79);
-}
-.el-table .warning-row::after {
-	position: absolute;
-	content: '';
-	left: 0;
-	width: 100%;
-	border-bottom: 1px solid;
+	.el-dialog .el-dialog__header {
+		/* margin: 0px !important; */
+		padding: 0px !important;
+		padding-left: 0px !important;
+	}
+	/* 头部 */
+	.el-dialog__title {
+		width: 112px;
+		height: 19px;
+		font-family: Segoe UI, Segoe UI;
+		font-weight: bold;
+		font-size: 16px;
+		line-height: 16px;
+		text-shadow: 0px 0px 5px rgba(154, 218, 255, 0.6);
+		text-align: left;
+		font-style: normal;
+		text-transform: none;
+		background: linear-gradient(90deg, #fbfdff 0%, #86d4ff 100%);
+		margin-left: 16px;
+		-webkit-background-clip: text; /* 背景被裁剪成文字的前景色 */
+		-webkit-text-fill-color: transparent; /* 文字填充颜色变透明 */
+	}
+	.el-table__inner-wrapper:before {
+		height: 0 !important;
+	}
+	.el-table .warning-row {
+		--el-table-tr-bg-color: rgba(22, 43, 74, 0.79);
+	}
+	.el-table .warning-row::after {
+		position: absolute;
+		content: '';
+		left: 0;
+		width: 100%;
+		border-bottom: 1px solid;
 
-	border-image: linear-gradient(90deg, rgba(25, 162, 255, 0) 10%, rgba(20, 125, 202, 1) 50%, rgba(25, 162, 255, 0) 90%)
-		2 2 2 2;
-}
-.el-table .success-row {
-	--el-table-tr-bg-color: #0b1d38;
-}
-.el-table .success-row::after {
-	position: absolute;
-	content: '';
-	left: 0;
-	width: 100%;
-	border-bottom: 1px solid;
+		border-image: linear-gradient(90deg, rgba(25, 162, 255, 0) 10%, rgba(20, 125, 202, 1) 50%, rgba(25, 162, 255, 0) 90%)
+			2 2 2 2;
+	}
+	.el-table .success-row {
+		--el-table-tr-bg-color: #0b1d38;
+	}
+	.el-table .success-row::after {
+		position: absolute;
+		content: '';
+		left: 0;
+		width: 100%;
+		border-bottom: 1px solid;
 
-	border-image: linear-gradient(90deg, rgba(25, 162, 255, 0) 10%, rgba(20, 125, 202, 1) 79%, rgba(25, 162, 255, 0) 90%)
-		2 2 2 2;
-}
-.el-scrollbar__thumb {
-	background: #13c6ff !important;
+		border-image: linear-gradient(90deg, rgba(25, 162, 255, 0) 10%, rgba(20, 125, 202, 1) 79%, rgba(25, 162, 255, 0) 90%)
+			2 2 2 2;
+	}
+	.el-scrollbar__thumb {
+		background: #13c6ff !important;
+	}
 }
 </style>
\ No newline at end of file
diff --git a/src/views/Home/HomeRight/Synergy.vue b/src/views/Home/HomeRight/Synergy.vue
index 040448e..a14b7fd 100644
--- a/src/views/Home/HomeRight/Synergy.vue
+++ b/src/views/Home/HomeRight/Synergy.vue
@@ -22,7 +22,7 @@
 
 const getStatisticalData = () => {
   optimizeCostEfficiency().then((res) => {
-    if (res.data.code !== 200) return;
+    if (res.data.code !== 0) return;
     let result = res.data.data
     list.value[0].value = result.replaced_manual_times;
     list.value[1].value = result.saved_vehicle_kilometers;
diff --git a/src/views/TaskManage/TaskIntermediateContent/initPointWayline.js b/src/views/TaskManage/TaskIntermediateContent/initPointWayline.js
index fcabe59..6844c05 100644
--- a/src/views/TaskManage/TaskIntermediateContent/initPointWayline.js
+++ b/src/views/TaskManage/TaskIntermediateContent/initPointWayline.js
@@ -34,6 +34,6 @@
   };
   // 在地图上画线
   const drawWayline = (xmlJson) => {
-    const { Folder } = xmlJson
+    const points = xmlJson?.['Folder']?.['Placemark']
   };
 };
\ No newline at end of file

--
Gitblit v1.9.3