From 5feae67e1710141f19c6bfad2ddabde206701508 Mon Sep 17 00:00:00 2001 From: "30830569@qq.com" <> Date: Tue, 15 Nov 2022 09:48:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=86=9C=E4=BD=9C?= =?UTF-8?q?=E7=89=A9=E4=BA=A7=E9=87=8F----=E5=9F=BA=E5=9C=B0=E9=9C=80?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crop-yields/base-yields/BaseDrawer.vue | 95 ++++++++++++++++++- .../base/crop-yields/base-yields/base.data.ts | 82 ++++++++-------- 2 files changed, 136 insertions(+), 41 deletions(-) diff --git a/src/views/base/crop-yields/base-yields/BaseDrawer.vue b/src/views/base/crop-yields/base-yields/BaseDrawer.vue index 4370af8b..f168cb56 100644 --- a/src/views/base/crop-yields/base-yields/BaseDrawer.vue +++ b/src/views/base/crop-yields/base-yields/BaseDrawer.vue @@ -11,26 +11,63 @@ + + + + diff --git a/src/views/main/water-quality/components/FormDrawer.vue b/src/views/main/water-quality/components/FormDrawer.vue index f8358128..028e5642 100644 --- a/src/views/main/water-quality/components/FormDrawer.vue +++ b/src/views/main/water-quality/components/FormDrawer.vue @@ -66,7 +66,7 @@ 3: 'Ⅲ级预警', 4: 'Ⅳ级预警', } - const roulsDate = ref(null) + const roulsDate = ref(null) const Title = computed(() => { if (!roulsDate.value) return [] return Object.keys(roulsDate.value.value) diff --git a/src/views/main/water-quality/index.vue b/src/views/main/water-quality/index.vue index ca942910..1c1e6f67 100644 --- a/src/views/main/water-quality/index.vue +++ b/src/views/main/water-quality/index.vue @@ -87,40 +87,26 @@ 预警数据统计 -
+
-
-
- +
+ -
{{ item.lable }}
-
- -
@@ -169,13 +155,12 @@ time: undefined, //时间 time_interval: 'day', }) - const baseDate = ref([]) + const baseDate = ref([]) const pointDate = ref([]) const statisData = ref({}) // 预警数量 const earlyNums = ref({}) - // 选中 - const activeKey = ref('chlorine') + interface EarlyWarningItem { icon: String title: String @@ -209,10 +194,7 @@ }) return arr }) - const currentActiveLable = computed( - () => tagMenus.find((e) => e.value === activeKey.value)?.lable ?? '', - ) - const chartData = computed(() => statisData.value[activeKey.value]) + const extra = computed(() => { const name1 = baseDate.value?.find((e: any) => e.id === formState.base_id)?.name const name2 = pointDate.value?.find((e: any) => e.value === formState.device_id)?.label ?? '' @@ -336,10 +318,7 @@ const handleSuccess = () => { message.success('操作成功') } - // - const onChangeTag = (e: string) => { - activeKey.value = e - } + onMounted(() => { getBase() }) diff --git a/src/views/main/water-quality/index1.vue b/src/views/main/water-quality/index1.vue new file mode 100644 index 00000000..eeab77e0 --- /dev/null +++ b/src/views/main/water-quality/index1.vue @@ -0,0 +1,352 @@ + + + + +