菜单权限配置

This commit is contained in:
shijing 2023-12-19 16:55:41 +08:00
parent 1a45a24d7c
commit bd24a20f3b
1 changed files with 27 additions and 26 deletions

View File

@ -655,7 +655,7 @@ const routes = [
"meta": { "meta": {
"title": "物料产品", "title": "物料产品",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["mtm"] "perms": ["material"]
}, },
"component": "mtm/materials" "component": "mtm/materials"
}, },
@ -665,7 +665,7 @@ const routes = [
"meta": { "meta": {
"title": "工段管理", "title": "工段管理",
"icon": "el-icon-grid", "icon": "el-icon-grid",
"perms": ["mtm"] "perms": ["mgroup"]
}, },
"component": "mtm/mgroup" "component": "mtm/mgroup"
}, },
@ -675,7 +675,7 @@ const routes = [
"meta": { "meta": {
"title": "加工路线", "title": "加工路线",
"icon": "el-icon-share", "icon": "el-icon-share",
"perms": ["mtm"] "perms": ["route"]
}, },
"component": "mtm/route" "component": "mtm/route"
}, },
@ -777,7 +777,8 @@ const routes = [
"meta": { "meta": {
"title": "生产执行", "title": "生产执行",
"icon": "el-icon-grid", "icon": "el-icon-grid",
"type": "menu" "type": "menu",
"perms": ["wpm"]
}, },
"children": [ "children": [
{ {
@ -883,7 +884,7 @@ const routes = [
"meta": { "meta": {
"title": "其他日志", "title": "其他日志",
"icon": "el-icon-grid", "icon": "el-icon-grid",
"perms": ["wpm"] "perms": ["otherlog"]
}, },
"component": "wpm/otherlog" "component": "wpm/otherlog"
} }
@ -906,7 +907,7 @@ const routes = [
"meta": { "meta": {
"title": "入厂检验", "title": "入厂检验",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["qm"] "perms": ["itest"]
}, },
"component": "qm/income" "component": "qm/income"
}, },
@ -916,7 +917,7 @@ const routes = [
"meta": { "meta": {
"title": "首件检验", "title": "首件检验",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["qm"] "perms": ["ftest"]
}, },
"component": "qm/first" "component": "qm/first"
}, },
@ -926,7 +927,7 @@ const routes = [
"meta": { "meta": {
"title": "过程检验", "title": "过程检验",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["qm"] "perms": ["ptest"]
}, },
"component": "qm/process" "component": "qm/process"
}, },
@ -936,7 +937,7 @@ const routes = [
"meta": { "meta": {
"title": "性能检验", "title": "性能检验",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["qm"] "perms": ["btest"]
}, },
"component": "qm/behavior" "component": "qm/behavior"
}, },
@ -946,7 +947,7 @@ const routes = [
"meta": { "meta": {
"title": "成品检验", "title": "成品检验",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["qm"] "perms": ["producttest"]
}, },
"component": "qm/product" "component": "qm/product"
} }
@ -969,7 +970,7 @@ const routes = [
"meta": { "meta": {
"title": "仓库管理", "title": "仓库管理",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["inm"] "perms": ["warehouse"]
}, },
"component": "inm/warehouse" "component": "inm/warehouse"
}, },
@ -998,7 +999,7 @@ const routes = [
"meta": { "meta": {
"title": "出入库记录", "title": "出入库记录",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["good"] "perms": ["good_mio"]
}, },
"component": "inm/good_mio" "component": "inm/good_mio"
}, },
@ -1029,7 +1030,7 @@ const routes = [
"meta": { "meta": {
"title": "出入库记录", "title": "出入库记录",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["halfgood"] "perms": ["halfgood_mio"]
}, },
"component": "inm/halfgood_mio" "component": "inm/halfgood_mio"
}, },
@ -1060,7 +1061,7 @@ const routes = [
"meta": { "meta": {
"title": "出入库记录", "title": "出入库记录",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["mainso"] "perms": ["mainso_mio"]
}, },
"component": "inm/mainso_mio" "component": "inm/mainso_mio"
}, },
@ -1091,30 +1092,30 @@ const routes = [
"meta": { "meta": {
"title": "出入库记录", "title": "出入库记录",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["helpso"] "perms": ["helpso_mio"]
}, },
"component": "inm/helpso_mio" "component": "inm/helpso_mio"
}, },
] ]
}, },
{ // {
"name": "materialbatch", // "name": "materialbatch",
"path": "/inm/materialbatch", // "path": "/inm/materialbatch",
"meta": { // "meta": {
"title": "物料批次", // "title": "物料批次",
"icon": "el-icon-cellphone", // "icon": "el-icon-cellphone",
"perms": ["inm"] // "perms": ["inm"]
}, // },
"component": "inm/materialbatch" // "component": "inm/materialbatch"
}, // },
{ {
"name": "mio", "name": "mio",
"path": "/inm/mio", "path": "/inm/mio",
"meta": { "meta": {
"title": "出入库记录", "title": "出入库记录",
"icon": "el-icon-cellphone", "icon": "el-icon-cellphone",
"perms": ["inm"] "perms": ["mio"]
}, },
"component": "inm/mio" "component": "inm/mio"
}, },