From 5bbcdadbb201985f7bafcc60bd679d9e6f0e4229 Mon Sep 17 00:00:00 2001 From: guoshipeng <3194674006@qq.com> Date: Mon, 12 Dec 2022 13:24:57 +0800 Subject: [PATCH] 1.浑南区走航车报告下载;2.菜单分配可以选择某个子菜单,但必须选择实时风场页面;3.空气质量报告模板更新; --- src/views/charts/index.vue | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/charts/index.vue b/src/views/charts/index.vue index 6ccbfaa..31fb437 100644 --- a/src/views/charts/index.vue +++ b/src/views/charts/index.vue @@ -18,8 +18,8 @@ style="margin-left: 20px" > <el-option - v-for="item in newSensor" - :key="item.value" + v-for="(item, index) in newSensor" + :key="index" :label="item.label" :value="item.value" /> @@ -168,7 +168,6 @@ } // ������������������������������������������ this.getSensor() - console.log(this.newMac1) }, // ������dataType��������������� select1(nv, ov) { @@ -267,13 +266,11 @@ }) .then((res) => { // console.log('������������������������������') - console.log(res) const data = res.data let lockLength = 0 for (let i = 0; i < data.length; i++) { for (let j = 0; j < data[i].deviceData.length; j++) { - console.log(data[i].deviceData); - if (res.data[0].deviceData.length == 1) { + if (res.data[0].deviceData.length === 1) { if (lockLength < data[i].deviceData.length) { newLineChartData.series.push({ data: [], @@ -303,7 +300,7 @@ data[i].deviceData[j].sensorValue ) - + } newLineChartData.xAxis.push(data[i].time) -- Gitblit v1.8.0