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