From b87b2befa85bd085f40dc5aa7ea9bfbc17d807e5 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 10 一月 2025 17:15:02 +0800 Subject: [PATCH] 1. 调整了网格内文本的展示方式和样式; 2. 省去了单个网格4个顶点坐标的计算逻辑,交由后端完成; --- src/views/satellitetelemetry/component/SatelliteManage.vue | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/src/views/satellitetelemetry/component/SatelliteManage.vue b/src/views/satellitetelemetry/component/SatelliteManage.vue index 75ba069..cfa584a 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" @@ -42,6 +50,11 @@ align="center" width="50" /> + <!-- <el-table-column type="expand"> + <template #default="props"> + + </template> + </el-table-column> --> <el-table-column prop="dataTime" label="鏃堕棿" @@ -98,8 +111,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 +130,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