From 96da92e9056c9c02e77867998424d623261daab0 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 25 七月 2024 15:09:32 +0800 Subject: [PATCH] 1. 添加地图罗盘的显隐 2. 修复数据表格中O3数据列实际显示NO2的值的问题 3. 优化风向的中文描述 --- src/components/search/OptionDevice.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/components/search/OptionDevice.vue b/src/components/search/OptionDevice.vue index d63fe7c..6fc1b0a 100644 --- a/src/components/search/OptionDevice.vue +++ b/src/components/search/OptionDevice.vue @@ -2,7 +2,7 @@ <el-form-item label="璁惧"> <el-select :model-value="modelValue" - @change="handleChange" + @update:model-value="handleChange" placeholder="璁惧" size="small" class="w-120" @@ -31,10 +31,11 @@ deviceList() { const t = this.type ? this.type : '0a'; return [1, 2, 3].map((v) => { - const text = `${t}000000000${v}`; + const label = `${this.getDeviceType(t)}璁惧${v}鍙穈; + const value = `${t}000000000${v}`; return { - label: text, - value: text + label: label, + value: value }; }); } @@ -49,6 +50,18 @@ methods: { handleChange(value) { this.$emit('update:modelValue', value); + }, + getDeviceType(t) { + switch (t) { + case '0a': + return '杞﹁浇'; + case '0b': + return '鏃犱汉鏈�'; + case '0c': + return '鏃犱汉鑸�'; + default: + return '杞﹁浇'; + } } }, mounted() { -- Gitblit v1.9.3