diff --git a/public/favicon.ico b/public/favicon.ico index 0ccdd32..be7684d 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html index ceb3973..ce329d3 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - + <%= htmlWebpackPlugin.options.title %> diff --git a/public/title.ico b/public/title.ico new file mode 100644 index 0000000..be7684d Binary files /dev/null and b/public/title.ico differ diff --git a/src/assets/img/e.png b/src/assets/img/e.png new file mode 100644 index 0000000..5fa37b9 Binary files /dev/null and b/src/assets/img/e.png differ diff --git a/src/assets/img/gongzhu.png b/src/assets/img/gongzhu.png new file mode 100644 index 0000000..5de7986 Binary files /dev/null and b/src/assets/img/gongzhu.png differ diff --git a/src/assets/img/huoji.png b/src/assets/img/huoji.png new file mode 100644 index 0000000..87b7f1a Binary files /dev/null and b/src/assets/img/huoji.png differ diff --git a/src/assets/img/ji.png b/src/assets/img/ji.png new file mode 100644 index 0000000..4c31de6 Binary files /dev/null and b/src/assets/img/ji.png differ diff --git a/src/assets/img/lv.png b/src/assets/img/lv.png new file mode 100644 index 0000000..d70f411 Binary files /dev/null and b/src/assets/img/lv.png differ diff --git a/src/assets/img/muzhu.png b/src/assets/img/muzhu.png new file mode 100644 index 0000000..15b9306 Binary files /dev/null and b/src/assets/img/muzhu.png differ diff --git a/src/assets/img/niu.png b/src/assets/img/niu.png new file mode 100644 index 0000000..bff21c1 Binary files /dev/null and b/src/assets/img/niu.png differ diff --git a/src/assets/img/ya.png b/src/assets/img/ya.png new file mode 100644 index 0000000..2c7385d Binary files /dev/null and b/src/assets/img/ya.png differ diff --git a/src/assets/img/yang.png b/src/assets/img/yang.png new file mode 100644 index 0000000..b3fe8c5 Binary files /dev/null and b/src/assets/img/yang.png differ diff --git a/src/assets/img/zhu.png b/src/assets/img/zhu.png new file mode 100644 index 0000000..2b1602c Binary files /dev/null and b/src/assets/img/zhu.png differ diff --git a/src/router/index.js b/src/router/index.js index d5e64af..a0194af 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,114 +7,166 @@ import local from '../utils/local' Vue.use(VueRouter) const routes = [ - { - path: '/login', - component: Login, - meta: { title: '登录', activeMenu: '/login' } - }, - { - path: '/', - component: Layout, - redirect: '/disease-resistance/disease-resistance', - meta: { title: '首页', activeMenu: '/disease-resistance/disease-resistance' } - }, - { - // 遗传病风险 - path: '/disease-resistance', - component: Layout, - children: [ - { - path: '/disease-resistance/disease-resistance', - component: () => - import('../views/disease-resistance/disease-resistance.vue'), - meta: { title: '遗传病风险', activeMenu: '/disease-resistance/disease-resistance' } - } - ] - }, - { - // 基因管理 - path: '/geneMgmt', - component: Layout, - children: [ - { - path: '/geneMgmt/SPN', - component: () => - import('../views/geneMgmt/SPN.vue'), - meta: { title: 'SPN位点管理', activeMenu: '/geneMgmt/SPN' } - }, - { - path: '/geneMgmt/SPNPanel', - component: () => - import('../views/geneMgmt/SPNPanel.vue'), - meta: { title: 'SPN Panel位点管理', activeMenu: '/geneMgmt/SPNPanel' } - }, - { - path: '/geneMgmt/sequence', - component: () => - import('../views/geneMgmt/sequence.vue'), - meta: { title: '原始测序数据', activeMenu: '/geneMgmt/sequence' } - } - ] - }, + { + path: '/login', + component: Login, + meta: { title: '登录', activeMenu: '/login' } + }, + { + // 首页 + path: '/index', + component: Layout, + children: [ + { + path: '/index/index', + component: () => + import('../views/index/index.vue'), + meta: { title: '首页', activeMenu: '/index/index' } + } + ] + }, + { + // 遗传病风险 + path: '/disease-resistance', + component: Layout, + children: [ + { + path: '/disease-resistance/disease-resistance', + component: () => + import('../views/disease-resistance/disease-resistance.vue'), + meta: { title: '遗传病风险', activeMenu: '/disease-resistance/disease-resistance' } + } + ] + }, + { + // 基因管理 + path: '/geneMgmt', + component: Layout, + children: [ + { + path: '/geneMgmt/SPN', + component: () => + import('../views/geneMgmt/SPN.vue'), + meta: { title: 'SPN位点管理', activeMenu: '/geneMgmt/SPN' } + }, + { + path: '/geneMgmt/SPNPanel', + component: () => + import('../views/geneMgmt/SPNPanel.vue'), + meta: { title: 'SPN Panel位点管理', activeMenu: '/geneMgmt/SPNPanel' } + }, + { + path: '/geneMgmt/sequence', + component: () => + import('../views/geneMgmt/sequence.vue'), + meta: { title: '原始测序数据', activeMenu: '/geneMgmt/sequence' } + } + ] + }, - { - // 繁育管理 - path: '/breedMgmt', - component: Layout, - children: [ - { - path: '/breedMgmt/BLUP', - component: () => - import('../views/breedMgmt/BLUP.vue'), - meta: { title: 'BLUP', activeMenu: '/breedMgmt/BLUP' } - }, - { - path: '/breedMgmt/paternityTest', - component: () => - import('../views/breedMgmt/paternityTest.vue'), - meta: { title: '亲子鉴定', activeMenu: '/breedMgmt/paternityTest' } - }, - { - path: '/breedMgmt/lineage', - component: () => - import('../views/breedMgmt/lineage.vue'), - meta: { title: '血统管理', activeMenu: '/breedMgmt/lineage' } - } - ] - }, + { + // 繁育管理 + path: '/breedMgmt', + component: Layout, + children: [ + { + path: '/breedMgmt/BLUP', + component: () => + import('../views/breedMgmt/BLUP.vue'), + meta: { title: 'BLUP', activeMenu: '/breedMgmt/BLUP' } + }, + { + path: '/breedMgmt/paternityTest', + component: () => + import('../views/breedMgmt/paternityTest.vue'), + meta: { title: '亲子鉴定', activeMenu: '/breedMgmt/paternityTest' } + }, + { + path: '/breedMgmt/lineage', + component: () => + import('../views/breedMgmt/lineage.vue'), + meta: { title: '血统管理', activeMenu: '/breedMgmt/lineage' } + } + ] + }, - { - // 进化分析 - path: '/phylogeneticAnalysis', - component: Layout, - children: [ - { - path: '/phylogeneticAnalysis/evolutionaryTree', - component: () => - import('../views/phylogeneticAnalysis/evolutionaryTree.vue'), - meta: { title: '进化树', activeMenu: '/phylogeneticAnalysis/evolutionaryTree' } - }, - ] - }, + { + // 进化分析 + path: '/phylogeneticAnalysis', + component: Layout, + children: [ + { + path: '/phylogeneticAnalysis/evolutionaryTree', + component: () => + import('../views/phylogeneticAnalysis/evolutionaryTree.vue'), + meta: { title: '进化树', activeMenu: '/phylogeneticAnalysis/evolutionaryTree' } + }, + ] + }, + { + // 档案信息 + path: '/archive-information', + component: Layout, + children: [ + { + path: '/archive-information/archive-information', + component: () => + import('../views/archive-information/archive-information.vue'), + meta: { title: '档案信息', activeMenu: '/archive-information/archive-information' } + } + ] + }, + { + // 快速查询 + path: '/quick-Search/quick-Search', + component: Layout, + children: [ + { + path: '/quick-Search/quick-Search', + component: () => + import('../views/quick-Search/quick-Search.vue'), + meta: { title: '快速查询', activeMenu: '/quick-Search/quick-Search' } + } + ] + }, + { + // 品种资源 + path: '/variety-resources', + component: Layout, + children: [ + { + path: '/variety-resources/variety-resources', + component: () => + import('../views/variety-resources/variety-resources.vue'), + meta: { title: '品种资源', activeMenu: '/variety-resources/variety-resources' } + }, + { + path: '/variety-resources/pig-list', + component: () => + import('../views/variety-resources/pig-list.vue'), + meta: { title: '品种猪', activeMenu: '/variety-resources/pig-list' } + }, + ] + } ] const router = new VueRouter({ - routes + routes }) // 前置路由守卫 router.beforeEach((to, from, next) => { - // to到哪里取 from 从哪里来 next 放行 - const token = local.get('token_sd') - if (to.meta.title) { // 修改总标题 - document.title = '肉牛溯源系统' + '-' + to.meta.title // routes数组中--meta是关键 - } - if (token) { // ok - next() - } else { // no - if (to.path === '/login') { - next() + const token = local.get('token_sd') + if (to.meta.title) { // 修改总标题 + document.title = '基芯农育种' + '-' + to.meta.title // routes数组中--meta是关键 } - next('/login') - } -}) + if (token) { // ok + next() + } else { // no + if (to.path === '/login') { + next() + } + } +} + // next('/login') +) export default router diff --git a/src/views/archive-information/archive-information.vue b/src/views/archive-information/archive-information.vue new file mode 100644 index 0000000..d9592e3 --- /dev/null +++ b/src/views/archive-information/archive-information.vue @@ -0,0 +1,429 @@ + + + + + \ No newline at end of file diff --git a/src/views/breedMgmt/BLUP.vue b/src/views/breedMgmt/BLUP.vue index 94f52e2..4c2ac26 100644 --- a/src/views/breedMgmt/BLUP.vue +++ b/src/views/breedMgmt/BLUP.vue @@ -66,15 +66,15 @@ > - + + 查看 + +
+
若尔盖养殖场
+
+
+
总资源展示
+
+ +
+
+
+
+
+
综合育种植
+
+
+ +
+
群体育种值趋势图
+
+
+
+
平均育种值
+
+
+
+
平均育种值
+
132
+
+
+
+ +
+
+
+
+
+
系谱分析
+
+ + +
+
+
+
遗传病风险警告
+
+
+ +
+
+ 群体遗传比风险概率图 +
+
+
+ + + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/views/layout/left-menu.vue b/src/views/layout/left-menu.vue index d747963..d6a77fc 100644 --- a/src/views/layout/left-menu.vue +++ b/src/views/layout/left-menu.vue @@ -11,8 +11,8 @@ @@ -23,6 +23,10 @@ :default-active="activeIndex" :unique-opened="true" > + + + 首页 + 遗传病风险 @@ -62,6 +66,18 @@ > + + + 档案信息 + + + + 快速查询 + + + + 品种资源 + @@ -72,7 +88,7 @@ export default { return { activeIndex: '/', isCollapse: false, - system_name: '肉牛溯源系统', + system_name: '基芯农育种', logo: '', index: 0, menuList: [], // 菜单权限列表 @@ -117,7 +133,7 @@ export default { .logo { max-width: 220px; - height: 80px; + height: 72px; color: #fff; font-size: 25px; font-weight: bold; diff --git a/src/views/login/login.vue b/src/views/login/login.vue index aae075a..f283e7c 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -3,7 +3,7 @@ @@ -11,7 +11,7 @@