From 4cfce04955d0092055885ae8645279ccdf6f9ab4 Mon Sep 17 00:00:00 2001 From: wuzhihao Date: Fri, 30 Aug 2024 15:29:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=E5=BF=AB=E9=80=9F=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=A8=A1=E5=9D=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- src/views/layout/left-menu.vue | 2 +- src/views/quick-Search/quick-Search.vue | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 2ec5a90..562af30 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -168,7 +168,7 @@ 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是关键 + document.title = '基芯农育种' + '-' + to.meta.title // routes数组中--meta是关键 } if (token) { // ok next() diff --git a/src/views/layout/left-menu.vue b/src/views/layout/left-menu.vue index c475833..aa1824d 100644 --- a/src/views/layout/left-menu.vue +++ b/src/views/layout/left-menu.vue @@ -84,7 +84,7 @@ export default { return { activeIndex: '/', isCollapse: false, - system_name: '肉牛溯源系统', + system_name: '基芯农育种', logo: '', index: 0, menuList: [], // 菜单权限列表 diff --git a/src/views/quick-Search/quick-Search.vue b/src/views/quick-Search/quick-Search.vue index df47ba2..6512d5c 100644 --- a/src/views/quick-Search/quick-Search.vue +++ b/src/views/quick-Search/quick-Search.vue @@ -135,7 +135,7 @@ export default { return { loading: false, showtable: false, - dialogVisible: false, + dialogVisible: true, searchForm: { a: '', b: '', @@ -214,7 +214,9 @@ export default { detailClick() { this.$router.push('/phylogeneticAnalysis/evolutionaryTree') }, - report() {}, + report() { + this.dialogVisible = true + }, // 搜索 searchClick() { this.loading = true From 6bb0947da9e230f4960290462ae03105af232497 Mon Sep 17 00:00:00 2001 From: wuzhihao Date: Fri, 30 Aug 2024 15:32:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 268 ++++++++++++++++++++++---------------------- 1 file changed, 134 insertions(+), 134 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index eac333b..666df26 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,144 +7,144 @@ 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: '/', + 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: '/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: '/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: '/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: () => - 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' } - }, - ] - } + 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) => { @@ -162,6 +162,6 @@ router.beforeEach((to, from, next) => { next('/login') } next('/login') - } -}) +} +) export default router