From 489d70271fc9b2ebec633afb4e5545b502df9fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Wed, 4 Dec 2024 08:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData2.js | 266 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 266 insertions(+) diff --git a/src/config/getData2.js b/src/config/getData2.js index 17cc54c..82bf0ff 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -1,3 +1,4 @@ +/* eslint-disable */ import {post} from '@config/http.js' // import store from '../vuex/store' @@ -134,6 +135,271 @@ export const updatePass = (newPass, oldPass) => post('api/users/updatePass', { // 用户登录获取菜单 export const sysMenuBuild = () => post('api/sysMenu/build', { }) +// export const sysMenuBuild = () => { +// let res = [ +// { +// "menuId": "1654807438270009344", +// "pid": "1324783485328", +// "label": "首页", +// "router": "", +// "index": "1", +// "children": [ +// { +// "menuId": "1654807784312672256", +// "pid": "1654807438270009344", +// "label": "首页", +// "router": "/index/home", +// "index": "1", +// "children": null, +// "title": "首页", +// "zhTitle": "首页", +// "enTitle": "Index", +// "inTitle": null, +// "zh_title": "首页", +// "en_title": "Index", +// "in_title": null +// } +// ], +// "title": "首页", +// "zhTitle": "首页", +// "enTitle": "Index", +// "inTitle": null, +// "zh_title": "首页", +// "en_title": "Index", +// "in_title": null +// }, +// { +// "menuId": "1654808014131171328", +// "pid": "1324783485328", +// "label": "任务", +// "router": "", +// "index": "2", +// "children": [ +// { +// "menuId": "1654808296076480512", +// "pid": "1654808014131171328", +// "label": "搬运起点", +// "router": "/index/carrypoint", +// "index": "1", +// "children": null, +// "title": "搬运起点", +// "zhTitle": "搬运起点", +// "enTitle": "Carry Point", +// "inTitle": null, +// "zh_title": "搬运起点", +// "en_title": "Carry\nPoint", +// "in_title": null +// } +// ], +// "title": "任务", +// "zhTitle": "任务", +// "enTitle": "Task", +// "inTitle": null, +// "zh_title": "任务", +// "en_title": "Task", +// "in_title": null +// }, +// { +// "menuId": "1654808791742550016", +// "pid": "1324783485328", +// "label": "车辆", +// "router": "", +// "index": "4", +// "children": [ +// { +// "menuId": "1654808864970903552", +// "pid": "1654808791742550016", +// "label": "车辆状态", +// "router": "/index/vehiclestatus", +// "index": "1", +// "children": null, +// "title": "车辆状态", +// "zhTitle": "车辆状态", +// "enTitle": "Vehicle State ", +// "inTitle": null, +// "zh_title": "车辆状态", +// "en_title": "Vehicle\nState", +// "in_title": null +// }, +// { +// "menuId": "1654808966481448960", +// "pid": "1654808791742550016", +// "label": "车辆控制", +// "router": "/index/vehiclecontrol", +// "index": "2", +// "children": null, +// "title": "车辆控制", +// "zhTitle": "车辆控制", +// "enTitle": "Vehicle Control", +// "inTitle": null, +// "zh_title": "车辆控制", +// "en_title": "Vehicle\nControl", +// "in_title": null +// }, +// { +// "menuId": "1654808966481448961", +// "pid": "1654808791742550016", +// "label": "恢复定位", +// "router": "/index/slam", +// "index": "3", +// "children": null, +// "title": "恢复定位", +// "zhTitle": "恢复定位", +// "enTitle": "Vehicle Control", +// "inTitle": null, +// "zh_title": "恢复定位", +// "en_title": "Vehicle\nControl", +// "in_title": null +// } +// ], +// "title": "车辆", +// "zhTitle": "车辆", +// "enTitle": "Vehicle", +// "inTitle": null, +// "zh_title": "车辆", +// "en_title": "Vehicle", +// "in_title": null +// }, +// { +// "menuId": "1654808657013116928", +// "pid": "1324783485328", +// "label": "故障", +// "router": "", +// "index": "3", +// "children": [ +// { +// "menuId": "1654808721102082048", +// "pid": "1654808657013116928", +// "label": "故障信息", +// "router": "/index/errorinfo", +// "index": "1", +// "children": null, +// "title": "故障信息", +// "zhTitle": "故障信息", +// "enTitle": "Fault Information", +// "inTitle": null, +// "zh_title": "故障信息", +// "en_title": "Fault\nInformation", +// "in_title": null +// } +// ], +// "title": "故障", +// "zhTitle": "故障", +// "enTitle": "Fault ", +// "inTitle": null, +// "zh_title": "故障", +// "en_title": "Fault", +// "in_title": null +// }, +// { +// "menuId": "1654809097821884416", +// "pid": "1324783485328", +// "label": "示教", +// "router": "/index/teach", +// "index": "5", +// "children": null, +// "title": "示教", +// "zhTitle": "示教", +// "enTitle": "Teach", +// "inTitle": null, +// "zh_title": "示教", +// "en_title": "Teach", +// "in_title": null +// }, +// { +// "menuId": "1664808014131171329", +// "pid": "1324783485328", +// "label": "系统", +// "router": "", +// "index": "6", +// "children": [ +// { +// "menuId": "1664808014131171330", +// "pid": "1664808014131171329", +// "label": "用户管理", +// "router": "/index/user", +// "index": "1", +// "children": null, +// "title": "用户管理", +// "zhTitle": "用户管理", +// "enTitle": "User Management", +// "inTitle": null, +// "zh_title": "用户管理", +// "en_title": "User\nManagement", +// "in_title": null +// }, +// { +// "menuId": "1664808014131171331", +// "pid": "1664808014131171329", +// "label": "角色管理", +// "router": "/index/role", +// "index": "2", +// "children": null, +// "title": "角色管理", +// "zhTitle": "角色管理", +// "enTitle": "Role Management", +// "inTitle": null, +// "zh_title": "角色管理", +// "en_title": "Role\nManagement", +// "in_title": null +// }, +// { +// "menuId": "1664808014131171335", +// "pid": "1664808014131171329", +// "label": "系统管理", +// "router": "/index/system", +// "index": "3", +// "children": null, +// "title": "系统管理", +// "zhTitle": "系统管理", +// "enTitle": "System Param", +// "inTitle": null, +// "zh_title": "系统管理", +// "en_title": "System\nParam", +// "in_title": null +// }, +// { +// "menuId": "1664808014131171334", +// "pid": "1664808014131171329", +// "label": "开发者选项", +// "router": "/index/developer", +// "index": "4", +// "children": null, +// "title": "开发者选项", +// "zhTitle": "开发者选项", +// "enTitle": "Developer Param", +// "inTitle": null, +// "zh_title": "开发者选项", +// "en_title": "Developer\nParam", +// "in_title": null +// }, +// { +// "menuId": "1664808014131171336", +// "pid": "1664808014131171329", +// "label": "远程支持", +// "router": "/index/remote", +// "index": "5", +// "children": null, +// "title": "远程支持", +// "zhTitle": "远程支持", +// "enTitle": "Remote Support", +// "inTitle": null, +// "zh_title": "远程支持", +// "en_title": "Remote\nSupport", +// "in_title": null +// } +// ], +// "title": "系统", +// "zhTitle": "系统", +// "enTitle": "System", +// "inTitle": null, +// "zh_title": "系统", +// "en_title": "System", +// "in_title": null +// } +// ] +// return res +// } // 用户退出 export const authLogout = () => post('auth/logout', {