From 7b1293cec33b47680f08756bd1f8518d3cb1a729 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期三, 01 一月 2025 22:33:32 +0800
Subject: [PATCH] 新增对比色

---
 src/views/satellitetelemetry/component/SatelliteManage.vue |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/views/satellitetelemetry/component/SatelliteManage.vue b/src/views/satellitetelemetry/component/SatelliteManage.vue
index 75ba069..35f74ce 100644
--- a/src/views/satellitetelemetry/component/SatelliteManage.vue
+++ b/src/views/satellitetelemetry/component/SatelliteManage.vue
@@ -22,6 +22,14 @@
         >
           {{ dataVisible ? '闅愯棌鏁版嵁' : '鏄剧ず鏁版嵁' }}
         </el-button>
+        <el-button
+          type="primary"
+          class="el-button-custom"
+          size="small"
+          @click="handleColorClick"
+        >
+          {{ isStandardColor ? '缁樺埗瀵规瘮鑹�' : '缁樺埗鏍囧噯鑹�' }}
+        </el-button>
         <el-table
           :data="gridDataList"
           table-layout="fixed"
@@ -98,8 +106,9 @@
 
 const rankVisible = ref(true);
 const dataVisible = ref(true);
+const isStandardColor = ref(true)
 
-const emits = defineEmits(['search', 'rowClick', 'showRank', 'showData']);
+const emits = defineEmits(['search', 'rowClick', 'showRank', 'showData', 'changeColor']);
 
 // 鏌ヨ缃戞牸淇℃伅鍜岄仴鎰熸暟鎹粍
 function onSearch(options) {
@@ -116,6 +125,11 @@
   emits('showData', dataVisible.value);
 }
 
+function handleColorClick() {
+  isStandardColor.value = !isStandardColor.value
+  emits('changeColor', isStandardColor.value);
+}
+
 function handleRowClick(row, col, event) {
   emits('rowClick', row);
 }

--
Gitblit v1.9.3