路由调整
This commit is contained in:
parent
3430a6309c
commit
f8dee855bd
|
@ -31,7 +31,7 @@ const DEFAULT_CONFIG = {
|
||||||
|
|
||||||
//布局 默认:default | 通栏:header | 经典:menu | 功能坞:dock
|
//布局 默认:default | 通栏:header | 经典:menu | 功能坞:dock
|
||||||
//dock将关闭标签和面包屑栏
|
//dock将关闭标签和面包屑栏
|
||||||
LAYOUT: 'default',
|
LAYOUT: 'header',
|
||||||
|
|
||||||
//菜单是否折叠
|
//菜单是否折叠
|
||||||
MENU_IS_COLLAPSE: false,
|
MENU_IS_COLLAPSE: false,
|
||||||
|
|
|
@ -32,7 +32,7 @@ const routes = [
|
||||||
"path": "/home",
|
"path": "/home",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "首页",
|
"title": "首页",
|
||||||
"icon": "el-icon-eleme-filled",
|
"icon": "el-icon-house",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"children": [
|
"children": [
|
||||||
|
@ -46,6 +46,16 @@ const routes = [
|
||||||
},
|
},
|
||||||
"component": "home"
|
"component": "home"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "bigScreen",
|
||||||
|
"path": "/bigScreen",
|
||||||
|
"meta": {
|
||||||
|
"title": "驾驶舱",
|
||||||
|
"icon": "el-icon-platform",
|
||||||
|
"fullpage": true
|
||||||
|
},
|
||||||
|
"component": "bigScreen"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "userCenter",
|
"name": "userCenter",
|
||||||
"path": "/usercenter",
|
"path": "/usercenter",
|
||||||
|
@ -57,11 +67,131 @@ const routes = [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "ecm",
|
||||||
|
"path": "/ecm",
|
||||||
|
"meta": {
|
||||||
|
"title": "事件",
|
||||||
|
"icon": "el-icon-goods",
|
||||||
|
"type": "menu"
|
||||||
|
},
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "event",
|
||||||
|
"path": "/ecm/event",
|
||||||
|
"meta": {
|
||||||
|
"title": "事件列表",
|
||||||
|
"icon": "el-icon-menu",
|
||||||
|
},
|
||||||
|
"component": "ecm/event"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "opm",
|
||||||
|
"path": "/opm",
|
||||||
|
"meta": {
|
||||||
|
"title": "作业",
|
||||||
|
"icon": "el-icon-goods",
|
||||||
|
"type": "menu"
|
||||||
|
},
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "opm",
|
||||||
|
"path": "/opm/operation",
|
||||||
|
"meta": {
|
||||||
|
"title": "作业列表",
|
||||||
|
"icon": "el-icon-menu",
|
||||||
|
},
|
||||||
|
"component": "opm/operation"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rpm",
|
||||||
|
"path": "/rpm",
|
||||||
|
"meta": {
|
||||||
|
"title": "相关方",
|
||||||
|
"icon": "el-icon-goods",
|
||||||
|
"type": "menu"
|
||||||
|
},
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "rpm",
|
||||||
|
"path": "/rpm/rparty",
|
||||||
|
"meta": {
|
||||||
|
"title": "相关方列表",
|
||||||
|
"icon": "el-icon-menu",
|
||||||
|
},
|
||||||
|
"component": "rpm/rparty"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vm",
|
||||||
|
"path": "/vm",
|
||||||
|
"meta": {
|
||||||
|
"title": "访客",
|
||||||
|
"icon": "el-icon-goods",
|
||||||
|
"type": "menu"
|
||||||
|
},
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "vm",
|
||||||
|
"path": "/vm/visit",
|
||||||
|
"meta": {
|
||||||
|
"title": "来访项目",
|
||||||
|
"icon": "el-icon-menu",
|
||||||
|
},
|
||||||
|
"component": "vm/visit"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "am",
|
||||||
|
"path": "/am",
|
||||||
|
"meta": {
|
||||||
|
"title": "区域",
|
||||||
|
"icon": "el-icon-goods",
|
||||||
|
"type": "menu"
|
||||||
|
},
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "am",
|
||||||
|
"path": "/am/area",
|
||||||
|
"meta": {
|
||||||
|
"title": "区域列表",
|
||||||
|
"icon": "el-icon-menu",
|
||||||
|
},
|
||||||
|
"component": "am/area"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "em",
|
||||||
|
"path": "/em",
|
||||||
|
"meta": {
|
||||||
|
"title": "设备",
|
||||||
|
"icon": "el-icon-goods",
|
||||||
|
"type": "menu"
|
||||||
|
},
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "am",
|
||||||
|
"path": "/am/em",
|
||||||
|
"meta": {
|
||||||
|
"title": "门禁通道",
|
||||||
|
"icon": "el-icon-menu",
|
||||||
|
},
|
||||||
|
"component": "am/em"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "hrm",
|
"name": "hrm",
|
||||||
"path": "/hrm",
|
"path": "/hrm",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "人员管理",
|
"title": "人事",
|
||||||
"icon": "el-icon-user",
|
"icon": "el-icon-user",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
|
@ -72,729 +202,59 @@ const routes = [
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "企业员工",
|
"title": "企业员工",
|
||||||
"icon": "el-icon-menu",
|
"icon": "el-icon-menu",
|
||||||
"affix": true
|
|
||||||
},
|
},
|
||||||
"component": "hrm/employee"
|
"component": "hrm/employee"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "vab",
|
"name": "sys",
|
||||||
"path": "/vab",
|
"path": "/sys",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "组件",
|
"title": "系统",
|
||||||
"icon": "el-icon-takeaway-box",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/vab/mini",
|
|
||||||
"name": "minivab",
|
|
||||||
"meta": {
|
|
||||||
"title": "原子组件",
|
|
||||||
"icon": "el-icon-magic-stick",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/mini"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/iconfont",
|
|
||||||
"name": "iconfont",
|
|
||||||
"meta": {
|
|
||||||
"title": "扩展图标",
|
|
||||||
"icon": "el-icon-orange",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/iconfont"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/data",
|
|
||||||
"name": "vabdata",
|
|
||||||
"meta": {
|
|
||||||
"title": "Data 数据展示",
|
|
||||||
"icon": "el-icon-histogram",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/vab/chart",
|
|
||||||
"name": "chart",
|
|
||||||
"meta": {
|
|
||||||
"title": "图表 Echarts",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/chart"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/statistic",
|
|
||||||
"name": "statistic",
|
|
||||||
"meta": {
|
|
||||||
"title": "统计数值",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/statistic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/video",
|
|
||||||
"name": "scvideo",
|
|
||||||
"meta": {
|
|
||||||
"title": "视频播放器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/video"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/qrcode",
|
|
||||||
"name": "qrcode",
|
|
||||||
"meta": {
|
|
||||||
"title": "二维码",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/qrcode"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/form",
|
|
||||||
"name": "vabform",
|
|
||||||
"meta": {
|
|
||||||
"title": "Form 数据录入",
|
|
||||||
"icon": "el-icon-edit",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/vab/tableselect",
|
|
||||||
"name": "tableselect",
|
|
||||||
"meta": {
|
|
||||||
"title": "表格选择器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/tableselect"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/formtable",
|
|
||||||
"name": "formtable",
|
|
||||||
"meta": {
|
|
||||||
"title": "表单表格",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/formtable"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/selectFilter",
|
|
||||||
"name": "selectFilter",
|
|
||||||
"meta": {
|
|
||||||
"title": "分类筛选器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/selectFilter"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/filterbar",
|
|
||||||
"name": "filterBar",
|
|
||||||
"meta": {
|
|
||||||
"title": "过滤器v2",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/filterBar"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/upload",
|
|
||||||
"name": "upload",
|
|
||||||
"meta": {
|
|
||||||
"title": "上传",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/upload"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/select",
|
|
||||||
"name": "scselect",
|
|
||||||
"meta": {
|
|
||||||
"title": "异步选择器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/select"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/iconselect",
|
|
||||||
"name": "iconSelect",
|
|
||||||
"meta": {
|
|
||||||
"title": "图标选择器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/iconselect"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/cron",
|
|
||||||
"name": "cron",
|
|
||||||
"meta": {
|
|
||||||
"title": "Cron规则生成器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/cron"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/editor",
|
|
||||||
"name": "editor",
|
|
||||||
"meta": {
|
|
||||||
"title": "富文本编辑器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/editor"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/codeeditor",
|
|
||||||
"name": "codeeditor",
|
|
||||||
"meta": {
|
|
||||||
"title": "代码编辑器",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/codeeditor"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/feedback",
|
|
||||||
"name": "vabfeedback",
|
|
||||||
"meta": {
|
|
||||||
"title": "Feedback 反馈",
|
|
||||||
"icon": "el-icon-mouse",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/vab/drag",
|
|
||||||
"name": "drag",
|
|
||||||
"meta": {
|
|
||||||
"title": "拖拽排序",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/drag"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/contextmenu",
|
|
||||||
"name": "contextmenu",
|
|
||||||
"meta": {
|
|
||||||
"title": "右键菜单",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/contextmenu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/cropper",
|
|
||||||
"name": "cropper",
|
|
||||||
"meta": {
|
|
||||||
"title": "图像剪裁",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/cropper"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/fileselect",
|
|
||||||
"name": "fileselect",
|
|
||||||
"meta": {
|
|
||||||
"title": "资源库选择器(弃用)",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/fileselect"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/dialog",
|
|
||||||
"name": "dialogExtend",
|
|
||||||
"meta": {
|
|
||||||
"title": "弹窗扩展",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/dialog"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/others",
|
|
||||||
"name": "vabothers",
|
|
||||||
"meta": {
|
|
||||||
"title": "Others 其他",
|
|
||||||
"icon": "el-icon-more-filled",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/vab/print",
|
|
||||||
"name": "print",
|
|
||||||
"meta": {
|
|
||||||
"title": "打印",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/print"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/watermark",
|
|
||||||
"name": "watermark",
|
|
||||||
"meta": {
|
|
||||||
"title": "水印",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/watermark"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/importexport",
|
|
||||||
"name": "importexport",
|
|
||||||
"meta": {
|
|
||||||
"title": "文件导出导入",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/importexport"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/list",
|
|
||||||
"name": "list",
|
|
||||||
"meta": {
|
|
||||||
"title": "Table 数据列表",
|
|
||||||
"icon": "el-icon-fold",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/vab/table/base",
|
|
||||||
"name": "tableBase",
|
|
||||||
"meta": {
|
|
||||||
"title": "基础数据列表",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/table/base"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/table/thead",
|
|
||||||
"name": "tableThead",
|
|
||||||
"meta": {
|
|
||||||
"title": "多级表头",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/table/thead"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/table/column",
|
|
||||||
"name": "tableCustomColumn",
|
|
||||||
"meta": {
|
|
||||||
"title": "动态列",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/table/column"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/table/remote",
|
|
||||||
"name": "tableRemote",
|
|
||||||
"meta": {
|
|
||||||
"title": "远程排序过滤",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/table/remote"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/workflow",
|
|
||||||
"name": "workflow",
|
|
||||||
"meta": {
|
|
||||||
"title": "工作流设计器",
|
|
||||||
"icon": "el-icon-share",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/workflow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/vab/formrender",
|
|
||||||
"name": "formRender",
|
|
||||||
"meta": {
|
|
||||||
"title": "动态表单(Beta)",
|
|
||||||
"icon": "el-icon-message-box",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "vab/form"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "template",
|
|
||||||
"path": "/template",
|
|
||||||
"meta": {
|
|
||||||
"title": "模板",
|
|
||||||
"icon": "el-icon-files",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/template/layout",
|
|
||||||
"name": "layoutTemplate",
|
|
||||||
"meta": {
|
|
||||||
"title": "布局",
|
|
||||||
"icon": "el-icon-grid",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/template/layout/blank",
|
|
||||||
"name": "blank",
|
|
||||||
"meta": {
|
|
||||||
"title": "空白模板",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/layout/blank"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/layout/layoutTCB",
|
|
||||||
"name": "layoutTCB",
|
|
||||||
"meta": {
|
|
||||||
"title": "上中下布局",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/layout/layoutTCB"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/layout/layoutLCR",
|
|
||||||
"name": "layoutLCR",
|
|
||||||
"meta": {
|
|
||||||
"title": "左中右布局",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/layout/layoutLCR"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/list",
|
|
||||||
"name": "list",
|
|
||||||
"meta": {
|
|
||||||
"title": "列表",
|
|
||||||
"icon": "el-icon-document",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/template/list/crud",
|
|
||||||
"name": "listCrud",
|
|
||||||
"meta": {
|
|
||||||
"title": "CRUD",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/list/crud",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/template/list/crud/detail/:id?",
|
|
||||||
"name": "listCrud-detail",
|
|
||||||
"meta": {
|
|
||||||
"title": "新增/编辑",
|
|
||||||
"hidden": true,
|
|
||||||
"active": "/template/list/crud",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/list/crud/detail"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/list/tree",
|
|
||||||
"name": "listTree",
|
|
||||||
"meta": {
|
|
||||||
"title": "左树右表",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/list/tree"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/list/tab",
|
|
||||||
"name": "listTab",
|
|
||||||
"meta": {
|
|
||||||
"title": "分类表格",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/list/tab"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/list/son",
|
|
||||||
"name": "listSon",
|
|
||||||
"meta": {
|
|
||||||
"title": "子母表",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/list/son"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/list/widthlist",
|
|
||||||
"name": "widthlist",
|
|
||||||
"meta": {
|
|
||||||
"title": "定宽列表",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/list/width"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/template/other",
|
|
||||||
"name": "other",
|
|
||||||
"meta": {
|
|
||||||
"title": "其他",
|
|
||||||
"icon": "el-icon-folder",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/template/other/stepform",
|
|
||||||
"name": "stepform",
|
|
||||||
"meta": {
|
|
||||||
"title": "分步表单",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "template/other/stepform"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "other",
|
|
||||||
"path": "/other",
|
|
||||||
"meta": {
|
|
||||||
"title": "其他",
|
|
||||||
"icon": "el-icon-more-filled",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/other/directive",
|
|
||||||
"name": "directive",
|
|
||||||
"meta": {
|
|
||||||
"title": "指令",
|
|
||||||
"icon": "el-icon-price-tag",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "other/directive"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/other/viewTags",
|
|
||||||
"name": "viewTags",
|
|
||||||
"meta": {
|
|
||||||
"title": "标签操作",
|
|
||||||
"icon": "el-icon-files",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "other/viewTags",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/other/fullpage",
|
|
||||||
"name": "fullpage",
|
|
||||||
"meta": {
|
|
||||||
"title": "整页路由",
|
|
||||||
"icon": "el-icon-monitor",
|
|
||||||
"fullpage": true,
|
|
||||||
"hidden": true,
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "other/fullpage"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/other/verificate",
|
|
||||||
"name": "verificate",
|
|
||||||
"meta": {
|
|
||||||
"title": "表单验证",
|
|
||||||
"icon": "el-icon-open",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "other/verificate"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/other/loadJS",
|
|
||||||
"name": "loadJS",
|
|
||||||
"meta": {
|
|
||||||
"title": "异步加载JS",
|
|
||||||
"icon": "el-icon-location-information",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "other/loadJS"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/link",
|
|
||||||
"name": "link",
|
|
||||||
"meta": {
|
|
||||||
"title": "外部链接",
|
|
||||||
"icon": "el-icon-link",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "https://baidu.com",
|
|
||||||
"name": "百度",
|
|
||||||
"meta": {
|
|
||||||
"title": "百度",
|
|
||||||
"type": "link"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "https://www.google.cn",
|
|
||||||
"name": "谷歌",
|
|
||||||
"meta": {
|
|
||||||
"title": "谷歌",
|
|
||||||
"type": "link"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/iframe",
|
|
||||||
"name": "Iframe",
|
|
||||||
"meta": {
|
|
||||||
"title": "Iframe",
|
|
||||||
"icon": "el-icon-position",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "https://v3.cn.vuejs.org",
|
|
||||||
"name": "vue3",
|
|
||||||
"meta": {
|
|
||||||
"title": "VUE 3",
|
|
||||||
"type": "iframe"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "https://element-plus.gitee.io",
|
|
||||||
"name": "elementplus",
|
|
||||||
"meta": {
|
|
||||||
"title": "Element Plus",
|
|
||||||
"type": "iframe"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "https://lolicode.gitee.io/scui-doc",
|
|
||||||
"name": "scuidoc",
|
|
||||||
"meta": {
|
|
||||||
"title": "SCUI文档",
|
|
||||||
"type": "iframe"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "test",
|
|
||||||
"path": "/test",
|
|
||||||
"meta": {
|
|
||||||
"title": "实验室",
|
|
||||||
"icon": "el-icon-mouse",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/test/autocode",
|
|
||||||
"name": "autocode",
|
|
||||||
"meta": {
|
|
||||||
"title": "代码生成器",
|
|
||||||
"icon": "sc-icon-code",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "test/autocode/index",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"path": "/test/autocode/table",
|
|
||||||
"name": "autocode-table",
|
|
||||||
"meta": {
|
|
||||||
"title": "CRUD代码生成",
|
|
||||||
"hidden": true,
|
|
||||||
"active": "/test/autocode",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "test/autocode/table"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/test/codebug",
|
|
||||||
"name": "codebug",
|
|
||||||
"meta": {
|
|
||||||
"title": "异常处理",
|
|
||||||
"icon": "sc-icon-bug-line",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "test/codebug"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "setting",
|
|
||||||
"path": "/setting",
|
|
||||||
"meta": {
|
|
||||||
"title": "配置",
|
|
||||||
"icon": "el-icon-setting",
|
"icon": "el-icon-setting",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"path": "/setting/system",
|
"path": "/sys/user",
|
||||||
"name": "system",
|
|
||||||
"meta": {
|
|
||||||
"title": "系统设置",
|
|
||||||
"icon": "el-icon-tools",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "setting/system"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/setting/user",
|
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "用户管理",
|
"title": "账户管理",
|
||||||
"icon": "el-icon-user-filled",
|
"icon": "el-icon-user-filled",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"component": "setting/user"
|
"component": "sys/user"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/setting/role",
|
"path": "/sys/role",
|
||||||
"name": "role",
|
"name": "role",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "角色管理",
|
"title": "角色管理",
|
||||||
"icon": "el-icon-notebook",
|
"icon": "el-icon-notebook",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"component": "setting/role"
|
"component": "sys/role"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/setting/dept",
|
"path": "/sys/dept",
|
||||||
"name": "dept",
|
"name": "dept",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "部门管理",
|
"title": "部门管理",
|
||||||
"icon": "sc-icon-organization",
|
"icon": "sc-icon-organization",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"component": "setting/dept"
|
"component": "sys/dept"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/setting/dic",
|
"path": "/sys/dict",
|
||||||
"name": "dic",
|
"name": "dict",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "字典管理",
|
"title": "字典管理",
|
||||||
"icon": "el-icon-document",
|
"icon": "el-icon-document",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"component": "setting/dic"
|
"component": "sys/dict"
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "/setting/table",
|
|
||||||
"name": "tableSetting",
|
|
||||||
"meta": {
|
|
||||||
"title": "表格列管理",
|
|
||||||
"icon": "el-icon-scale-to-original",
|
|
||||||
"type": "menu"
|
|
||||||
},
|
|
||||||
"component": "setting/table"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/setting/menu",
|
"path": "/setting/menu",
|
||||||
|
@ -807,48 +267,56 @@ const routes = [
|
||||||
"component": "setting/menu"
|
"component": "setting/menu"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/setting/task",
|
"path": "/sys/task",
|
||||||
"name": "task",
|
"name": "task",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "计划任务",
|
"title": "计划任务",
|
||||||
"icon": "el-icon-alarm-clock",
|
"icon": "el-icon-alarm-clock",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"component": "setting/task"
|
"component": "sys/task"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/setting/client",
|
"name": "ops",
|
||||||
"name": "client",
|
"path": "/ops",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "应用管理",
|
"title": "运维",
|
||||||
"icon": "el-icon-help-filled",
|
"icon": "el-icon-user",
|
||||||
"type": "menu"
|
"type": "menu"
|
||||||
},
|
},
|
||||||
"component": "setting/client"
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "menu",
|
||||||
|
"path": "/ops/menu",
|
||||||
|
"meta": {
|
||||||
|
"title": "菜单管理",
|
||||||
|
"icon": "el-icon-fold",
|
||||||
|
},
|
||||||
|
"component": "ops/menu"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/setting/log",
|
|
||||||
"name": "log",
|
"name": "log",
|
||||||
|
"path": "/ops/log",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "系统日志",
|
"title": "请求日志",
|
||||||
"icon": "el-icon-warning",
|
"icon": "el-icon-fold",
|
||||||
"type": "menu"
|
|
||||||
},
|
},
|
||||||
"component": "setting/log"
|
"component": "ops/log_request"
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/other/about",
|
"name": "monitor",
|
||||||
"name": "about",
|
"path": "/ops/monitor",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "关于",
|
"title": "服务监控",
|
||||||
"icon": "el-icon-info-filled",
|
"icon": "el-icon-fold",
|
||||||
"type": "menu"
|
},
|
||||||
|
"component": "ops/monitor"
|
||||||
},
|
},
|
||||||
"component": "other/about"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
export default routes;
|
export default routes;
|
||||||
|
|
|
@ -4,16 +4,16 @@ export default {
|
||||||
pageSize: 20, //表格每一页条数
|
pageSize: 20, //表格每一页条数
|
||||||
parseData: function (res) {
|
parseData: function (res) {
|
||||||
return {
|
return {
|
||||||
data: res.data,
|
data: res,
|
||||||
rows: res.data.rows, //分析行数据字段结构
|
rows: res.results, //分析行数据字段结构
|
||||||
total: res.data.total, //分析总数字段结构
|
total: res.count, //分析总数字段结构
|
||||||
msg: res.message, //分析描述字段结构
|
// msg: res.message, //分析描述字段结构
|
||||||
code: res.code //分析状态字段结构
|
// code: res.code //分析状态字段结构
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
request: {
|
request: {
|
||||||
page: 'page', //规定当前分页字段
|
page: 'page', //规定当前分页字段
|
||||||
pageSize: 'pageSize', //规定一页条数字段
|
pageSize: 'page_size', //规定一页条数字段
|
||||||
keyword: 'keyword' //规定搜索字段
|
keyword: 'keyword' //规定搜索字段
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
|
@ -131,8 +131,11 @@ export default {
|
||||||
});
|
});
|
||||||
this.$message.success("Login Success 登录成功");
|
this.$message.success("Login Success 登录成功");
|
||||||
this.islogin = false;
|
this.islogin = false;
|
||||||
} catch (err) {console.log(err);}
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
this.islogin = false;
|
||||||
|
console.log(err);}
|
||||||
|
} catch (err) {
|
||||||
|
this.islogin = false;
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
// var res = await this.$API.auth.token.post(data)
|
// var res = await this.$API.auth.token.post(data)
|
||||||
|
|
Loading…
Reference in New Issue