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 @@ + + + + +