vue-route(三)后台管理路由配置
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router);
const _import_ = file = > () = > import('../pages/' + file + '.vue');
const asyncRouterMap = [];
const constantRouterMap = [
{
path: '/login',
name: 'Login',
component: _import_('Login/index'),
meta: {
title: "登 录",
auth: false
},
},
{
path: '/',
name: 'Home',
component: _import_('Home'),
redirect: {
name: 'Index'
},
children: [
{
path: 'index',
name: 'Index',
component: _import_('Index/index'),
meta: {
title: "工作台",
auth: true,
crumbs: [{
name: '概况'
}, {
name: '工作台'
}]
}
},
{
path: 'register',
name: 'Register',
component: _import_('Register/index'),
meta: {
title: "挂号记录",
auth: true,
crumbs: [{
name: '就诊管理'
}, {
name: '挂号记录'
}]
}
},
{
path: 'register/refundmoney',
name: 'RefundMoney',
component: _import_('Register/RefundMoney/index'),
meta: {
title: "挂号详情",
auth: true,
crumbs: [{
name: '就诊管理'
}, {
name: '挂号记录'
}]
},
},
{
path: 'doctor',
name: 'doctor',
component: _import_('Doctor/index'),
meta: {
title: "医生列表",
auth: true,
crumbs: [{
name: '医生管理'
}, {
name: '医生管理'
}]
},
},
{
path: 'doctor/supervise',
name: 'DoctorSupervise',
component: _import_('Doctor/supervise/index'),
meta: {
title: "医生信息",
auth: true,
crumbs: [{
name: '医生管理'
}, {
name: '医生管理'
}]
},
},
{
path: 'doctor/editdoctor',
name: 'EditDoctor',
component: _import_('Doctor/edidoctor/editdoctor'),
meta: {
title: "编辑医生信息",
auth: true,
crumbs: [{
name: '医生管理'
}, {
name: '医生管理'
}]
},
},
{
path: 'doctor/scheduling',
name: 'doctorScheduling',
component: _import_('Doctor/scheduling/index'),
meta: {
title: "修改医生排班",
auth: true,
crumbs: [{
name: '医生管理'
}, {
name: '排班管理'
}]
},
},
{
path: 'depart',
name: 'depart',
component: _import_('Department/index'),
meta: {
title: "科室管理列表",
auth: true,
crumbs: [{
name: '医院管理'
}, {
name: '科室管理'
}]
},
},
{
path: 'depart/edit',
name: 'DepartEdit',
component: _import_('Department/Edit/index'),
meta: {
title: "编辑科室信息",
auth: true,
crumbs: [{
name: '医院管理'
}, {
name: '科室管理'
}]
},
},
{
path: 'patient',
name: 'Patient',
component: _import_('Patient/index'),
meta: {
title: "就诊人管理",
auth: true,
crumbs: [{
name: '就诊人管理'
}, {
name: '就诊人管理'
}]
},
},
{
path: 'patient/info',
name: 'Info',
component: _import_('Patient/Info/index'),
meta: {
title: "就诊人信息",
auth: true,
crumbs: [{
name: '就诊人管理'
}, {
name: '就诊人管理'
}]
},
},
{
path: 'scheduling',
name: 'Scheduling',
component: _import_('Scheduling/index'),
meta: {
title: "排班列表",
auth: true,
crumbs: [{
name: '医生管理'
}, {
name: '排班管理'
}]
},
},
{
path: 'scheduling/edit',
name: 'SchedulingEdit',
component: _import_('Scheduling/Edit/index'),
meta: {
title: "排班编辑",
auth: true,
crumbs: [{
name: '医生管理'
}, {
name: '排班管理'
}]
},
},
{
path: 'service',
name: 'Service',
component: _import_('Service/index'),
meta: {
title: "服务管理",
auth: true,
crumbs: [{
name: '医院管理'
}, {
name: '服务管理'
}]
},
},
{
path: 'service/edit',
name: 'ServiceEdit',
component: _import_('Service/Edit/index'),
meta: {
title: "编辑服务",
auth: true,
crumbs: [{
name: '医院管理'
}, {
name: '服务管理'
}]
},
}
]
},
{
path: '/404',
name: '404',
component: _import_('Error/index'),
meta: {
title: "请求页面未找到",
auth: false
},
},
{
path: '*',
meta: {
title: "请求页面未找到",
auth: false
},
redirect: '/404'
}
];
const router = new Router({
mode: 'hash',
base: process.env.BASE_URL,
routes: constantRouterMap,
linkActiveClass: "router-link-active",
});
export default router
vue-route(三)后台管理路由配置的更多相关文章
- vue中实现后台管理路由标签页
<template> <section> <div class="navTabList el-tabs__nav-scroll" id="t ...
- 写了一个vue+antdv的后台管理模板
1,项目简介 写在前面===>这是一个vue+antdv的后台管理模板 项目地址: https://github.com/BaiFangZi/vue-antd-manage 1.1,概述 最 ...
- vue+elementui搭建后台管理界面(5递归生成侧栏路由)
有一个菜单树,顶层菜单下面有多个子菜单,子菜单下还有子菜单... 这时候就要用递归处理 1 定义多级菜单 修改 src/router/index.js 的 / 路由 { path: '/', redi ...
- Solr后台管理界面配置
配置来源 https://stackoverflow.com/questions/28043957/how-to-set-apache-solr-admin-password 注意:配置用户名密码后 ...
- vue新建项目之标准路由配置--父子嵌套界面
配置路由所有用到的地方总共四步或者说四处 1.index.js(src--router--index.js) 父子界面嵌套---需要配置子路由 import Vue from 'vue' import ...
- vue+elementui搭建后台管理界面(7 vuex和mockjs的使用)
将权限管理应用到系统,首先做好登录, 点击登录按钮后,触发以下动作 vuex 中的 login 动作,设置 cookie vuex 中的 getuserinfo , 获取权限.用户名.头像等 由于目前 ...
- vue+elementui搭建后台管理界面(2首页)
1 会话存储 使用html5的 sessionStorage 对象临时保存会话 // 保存会话 sessionStorage.setItem('user', username) // 删除会话 ses ...
- vue+elementui搭建后台管理界面
1 会话存储 使用html5的 sessionStorage 对象临时保存会话 // 保存会话 sessionStorage.setItem('user', username) // 删除会话 ses ...
- Vue脚手架的搭建和路由配置
随机推荐
- [BZOJ4010]菜肴制作
Description 知名美食家小 A被邀请至ATM 大酒店,为其品评菜肴. ATM 酒店为小 A 准备了 N 道菜肴,酒店按照为菜肴预估的质量从高到低给予 1到N的顺序编号,预估质量最高的菜肴编号 ...
- java httpUtil
public class HttpUtils { public static String getContent(String url, Map<String, String> heads ...
- Django Nginx配置
1.安装uwsgi.flup.djangowget http://www.saddi.com/software/flup/dist/flup-1.0.2.tar.gz 2.项目创建和配置2.1.创建项 ...
- hadoop安装时报错 /usr/local/hadoop-2.6.0-stable/hadoop-2.6.0-src/hadoop-hdfs-project/hadoop-hdfs/target/findbugsXml.xml does not exist
安装时报错:Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (site) on project ...
- 关于Vue的component制作dialog组件
其实原理很简单,兴个粟子, 点击按钮出现 dialog 弹出杠, 将dialog做成一个组件,components/dialog.vue 就是在components里面新建一个vue.将这个vue做为 ...
- Java循环语句之 do...while
do...while 循环与 while 循环语法有些类似,但执行过程差别比较大. 语法: 执行过程: <1>. 先执行一遍循环操作,然后判断循环条件是否成立 <2>. 如果条 ...
- Android自定义view-CircleSeekbar
自定义view练手,效果图如下:实现功能 可设置圆环颜色和线宽及触摸后的颜色和线宽 可设置圆环内圈显示的文本内容及字体大小.颜色 可设置触摸点的图片 可设置触摸的有效范围 源码git ...
- php-fpm: 某项目网站频繁出现503问题解决( WARNING: [pool www] server reached pm.max_children setting (50), consider raising it)
服务是nginx+php-fpm配置, 在运行过一段时间后,会经常出现: WARNING: [pool www] server reached pm.max_children setting (50) ...
- 20165332实验四 Android开发基础
20165332 实验四 Android程序设计 一.实验报告封面 课程:Java程序设计 班级:1653班 姓名:延亿卓 学号:20165332 指导教师:娄嘉鹏 实验日期:2018年5月14日 实 ...
- python中enumerate()函数用法
python中enumerate()函数用法 先出一个题目:1.有一 list= [1, 2, 3, 4, 5, 6] 请打印输出:0, 1 1, 2 2, 3 3, 4 4, 5 5, 6 打印输 ...