云端上传版本
This commit is contained in:
@ -100,36 +100,34 @@
|
||||
@opened="initCharts"
|
||||
direction="rtl"
|
||||
>
|
||||
|
||||
<!-- <div v-if="activeDevice" class="drawer-content">-->
|
||||
<!-- <div class="info-banner">-->
|
||||
<!-- <el-descriptions :column="isMobile ? 1 : 4" border size="small">-->
|
||||
<!-- <el-descriptions-item label="设备名称">{{ formatDisplayName(activeDevice.name) }}</el-descriptions-item>-->
|
||||
<!-- <el-descriptions-item label="当前状态">-->
|
||||
<!-- <el-tag size="small" :style="getStatusTagStyle(activeDevice)">{{ getStatusLabel(activeDevice) }}</el-tag>-->
|
||||
<!-- </el-descriptions-item>-->
|
||||
<!-- <el-descriptions-item label="数据时间">{{ activeDevice.latest_time }}</el-descriptions-item>-->
|
||||
<!-- <el-descriptions-item label="检查时间">{{ activeDevice.check_time }}</el-descriptions-item>-->
|
||||
<!-- </el-descriptions>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="visual-section">-->
|
||||
<!-- <h3 class="section-title">-->
|
||||
<!-- <el-icon><DataLine /></el-icon>-->
|
||||
<!-- {{ is106Site ? '光谱能量分布 (完整原始数据)' : '高光谱传感器数据 (Up/Down Spec)' }}-->
|
||||
<!-- </h3>-->
|
||||
<!-- <div v-if="currentChartModules.length === 0" class="empty-hint"><el-empty description="暂无有效的图表数据" /></div>-->
|
||||
<!-- <div v-for="(module, index) in currentChartModules" :key="index" class="chart-container">-->
|
||||
<!-- <div class="chart-header" v-if="is106Site">-->
|
||||
<!-- <div class="tag-group">-->
|
||||
<!-- <span class="module-tag">型号: {{ module.model }}</span>-->
|
||||
<!-- <span class="sn-tag">SN: {{ module.sn }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div :id="'chart-' + index" class="echart-box" :class="{ 'no-header': !is106Site }"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<sidevueold></sidevueold>
|
||||
<div v-if="activeDevice" class="drawer-content">
|
||||
<div class="info-banner">
|
||||
<el-descriptions :column="isMobile ? 1 : 4" border size="small">
|
||||
<el-descriptions-item label="设备名称">{{ formatDisplayName(activeDevice.name) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="当前状态">
|
||||
<el-tag size="small" :style="getStatusTagStyle(activeDevice)">{{ getStatusLabel(activeDevice) }}</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="数据时间">{{ activeDevice.latest_time }}</el-descriptions-item>
|
||||
<el-descriptions-item label="检查时间">{{ activeDevice.check_time }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
<div class="visual-section">
|
||||
<h3 class="section-title">
|
||||
<el-icon><DataLine /></el-icon>
|
||||
{{ is106Site ? '光谱能量分布 (完整原始数据)' : '高光谱传感器数据 (Up/Down Spec)' }}
|
||||
</h3>
|
||||
<div v-if="currentChartModules.length === 0" class="empty-hint"><el-empty description="暂无有效的图表数据" /></div>
|
||||
<div v-for="(module, index) in currentChartModules" :key="index" class="chart-container">
|
||||
<div class="chart-header" v-if="is106Site">
|
||||
<div class="tag-group">
|
||||
<span class="module-tag">型号: {{ module.model }}</span>
|
||||
<span class="sn-tag">SN: {{ module.sn }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div :id="'chart-' + index" class="echart-box" :class="{ 'no-header': !is106Site }"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-drawer>
|
||||
</div>
|
||||
</template>
|
||||
@ -140,7 +138,7 @@ import axios from 'axios'
|
||||
import * as echarts from 'echarts'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { Loading, CircleCheck, Refresh, DataLine } from '@element-plus/icons-vue'
|
||||
import sidevueold from "./sidevueold.vue"
|
||||
|
||||
// --- 响应式布局状态 ---
|
||||
const windowWidth = ref(window.innerWidth)
|
||||
const isMobile = computed(() => windowWidth.value < 768)
|
||||
|
||||
Reference in New Issue
Block a user