| | |
| | | > |
| | | {{ 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" |
| | |
| | | align="center" |
| | | width="50" |
| | | /> |
| | | <!-- <el-table-column type="expand"> |
| | | <template #default="props"> |
| | | |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | prop="dataTime" |
| | | label="时间" |
| | |
| | | |
| | | 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) { |
| | |
| | | emits('showData', dataVisible.value); |
| | | } |
| | | |
| | | function handleColorClick() { |
| | | isStandardColor.value = !isStandardColor.value |
| | | emits('changeColor', isStandardColor.value); |
| | | } |
| | | |
| | | function handleRowClick(row, col, event) { |
| | | emits('rowClick', row); |
| | | } |