From 1a83abe8b5f5edf1791358a4759b58f426f55b35 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 17:51:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E7=89=A9=E5=93=81=E7=A7=8D=E7=AE=A1?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Hamburger/index.vue | 2 +-
src/components/cropSelection/index.vue | 62 ++++++
src/main.js | 2 +
src/router/index.js | 14 ++
src/views/basicData/cropVariety/index.vue | 246 ++++++++++++++++++++++
5 files changed, 325 insertions(+), 1 deletion(-)
create mode 100644 src/components/cropSelection/index.vue
create mode 100644 src/views/basicData/cropVariety/index.vue
diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue
index 991e996..ee7bbdb 100644
--- a/src/components/Hamburger/index.vue
+++ b/src/components/Hamburger/index.vue
@@ -74,7 +74,7 @@ const menuList = ref([
label: '基础数据管理',icon:'data', children: [
{label: '育种基地管理',href:'/basicData/breedingBase'},
{label: '数据采集设备管理',href:'/basicData/dataGather'},
- {label: '作物品种管理'},
+ {label: '作物品种管理',href:'/basicData/cropVariety'},
]
},
{
diff --git a/src/components/cropSelection/index.vue b/src/components/cropSelection/index.vue
new file mode 100644
index 0000000..2aced6f
--- /dev/null
+++ b/src/components/cropSelection/index.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index e500236..a867074 100644
--- a/src/main.js
+++ b/src/main.js
@@ -40,6 +40,7 @@ import Editor from "@/components/Editor"
import LeftDrawer from "@/components/LeftDrawer"
import titleDivider from "@/components/titleDivider"
import baseSelection from "@/components/baseSelection"
+import cropSelection from "@/components/cropSelection"
// 文件上传组件
import FileUpload from "@/components/FileUpload"
// 图片上传组件
@@ -88,6 +89,7 @@ app.component('Editor', Editor)
app.component('LeftDrawer', LeftDrawer)
app.component('titleDivider', titleDivider)
app.component('baseSelection', baseSelection)
+app.component('cropSelection', cropSelection)
app.use(VueAMap)
app.use(router)
app.use(store)
diff --git a/src/router/index.js b/src/router/index.js
index fa531d2..2ef7323 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -196,6 +196,20 @@ export const constantRoutes = [
}
]
},
+ {
+ path: '/basicData',
+ component: Layout,
+ hidden: true,
+ redirect: 'noredirect',
+ children: [
+ {
+ path: 'cropVariety',
+ component: () => import('@/views/basicData/cropVariety/index.vue'),
+ name: 'cropVariety',
+ meta: { title: '作物品种管理' }
+ }
+ ]
+ },
]
// 动态路由,基于用户权限动态去加载
diff --git a/src/views/basicData/cropVariety/index.vue b/src/views/basicData/cropVariety/index.vue
new file mode 100644
index 0000000..2e9ca11
--- /dev/null
+++ b/src/views/basicData/cropVariety/index.vue
@@ -0,0 +1,246 @@
+
+
+
+
+
+
+
+
+
+
+
+ 当前作物:{{currentCrop.cropName || '请选择作物'}}
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 导出Excel
+ 新增品种
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+