From a0e69726a7aab12ac78da281a5ce8921e1eacbba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B4=BE=E8=82=83?= <15833576927@163.com>
Date: Tue, 21 May 2024 11:02:36 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=97=E5=88=97=E8=A1=A8=E5=AE=8C?=
=?UTF-8?q?=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/baseSelection/index.vue | 18 +-
src/layout/components/Navbar.vue | 2 +-
src/views/system/base/baseTable.vue | 580 +++++++------------------
src/views/system/base/massifForm.vue | 3 +-
src/views/system/base/massifMap.vue | 6 +
5 files changed, 163 insertions(+), 446 deletions(-)
diff --git a/src/components/baseSelection/index.vue b/src/components/baseSelection/index.vue
index 7d7bf6e..a447664 100644
--- a/src/components/baseSelection/index.vue
+++ b/src/components/baseSelection/index.vue
@@ -2,18 +2,18 @@
import useSettingsStore from "@/store/modules/settings.js";
const baseList = ref([
- {id: 1, baseName: '广西农投基地'},
- {id: 2, baseName: '广西农垦基地'},
- {id: 4, baseName: '基地3'},
- {id: 3, baseName: '基地4'},
- {id: 5, baseName: '种植资源圃1'},
- {id: 6, baseName: '种植资源圃2'},
+ {baseId: 1, baseName: '广西农投基地'},
+ {baseId: 2, baseName: '广西农垦基地'},
+ {baseId: 4, baseName: '基地3'},
+ {baseId: 3, baseName: '基地4'},
+ {baseId: 5, baseName: '种植资源圃1'},
+ {baseId: 6, baseName: '种植资源圃2'},
])
const route = useRoute();
onMounted(()=>{
if (route.query.baseId){
baseList.value.forEach(item => {
- if (item.id === Number(route.query.baseId)){
+ if (item.baseId === Number(route.query.baseId)){
clickBase(item)
}
})
@@ -36,8 +36,8 @@ const clickBase = (item) => {