From 68ba3376731aa7a5760ba5fce1dc6ba0c80982b4 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 03 一月 2025 17:28:18 +0800 Subject: [PATCH] 调整网格文本样式 --- 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