当前位置:网站首页>Map processing background management menu data
Map processing background management menu data
2022-07-24 09:05:00 【wwf1225】
1. file index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="./index.js"></script>
</body>
</html>
2. file index.js:
let data = [
{
id: "13",
createdAt: "2021-07-17 23:32:16",
updatedAt: "2021-07-17 23:32:16",
title: " Inquire about ",
parentId: "12",
type: 2,
typeLabel: " Button ",
permission: "SysRole:retrieve",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564280197120",
name: "1550072564280197120",
meta: { title: " Inquire about ", affix: false, icon: null },
idStr: "13",
},
{
id: "18",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Inquire about ",
parentId: "17",
type: 2,
typeLabel: " Button ",
permission: "SysUser:retrieve",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564280197121",
name: "1550072564280197121",
meta: { title: " Inquire about ", affix: false, icon: null },
idStr: "18",
},
{
id: "43",
createdAt: "2021-07-17 23:32:21",
updatedAt: "2021-07-17 23:32:21",
title: " Inquire about ",
parentId: "42",
type: 2,
typeLabel: " Button ",
permission: "SysLog:retrieve",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564284391424",
name: "1550072564284391424",
meta: { title: " Inquire about ", affix: false, icon: null },
idStr: "43",
},
{
id: "50",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Map home page ",
parentId: null,
type: 0,
typeLabel: " Catalog ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564284391425",
name: "1550072564284391425",
meta: { title: " Map home page ", affix: false, icon: null },
idStr: "50",
},
{
id: "51",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Browse ",
parentId: "50",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564284391426",
meta: { title: " Browse ", affix: false, icon: null },
idStr: "51",
},
{
id: "58",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Information display ",
parentId: "57",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564284391427",
meta: { title: " Information display ", affix: false, icon: null },
idStr: "58",
},
{
id: "66",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Data collection ",
parentId: "65",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564284391428",
meta: { title: " Data collection ", affix: false, icon: null },
idStr: "66",
},
{
id: "67",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Start ",
parentId: "66",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564288585728",
name: "1550072564288585728",
meta: { title: " Start ", affix: false, icon: null },
idStr: "67",
},
{
id: "70",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Receiver data ",
parentId: "69",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564288585729",
meta: { title: " Receiver data ", affix: false, icon: null },
idStr: "70",
},
{
id: "71",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Browse ",
parentId: "70",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564288585730",
name: "1550072564288585730",
meta: { title: " Browse ", affix: false, icon: null },
idStr: "71",
},
{
id: "74",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Browse ",
parentId: "73",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564288585731",
name: "1550072564288585731",
meta: { title: " Browse ", affix: false, icon: null },
idStr: "74",
},
{
id: "80",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Browse ",
parentId: "79",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564288585732",
name: "1550072564288585732",
meta: { title: " Browse ", affix: false, icon: null },
idStr: "80",
},
{
id: "83",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Point selection ",
parentId: "82",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564288585733",
meta: { title: " Point selection ", affix: false, icon: null },
idStr: "83",
},
{
id: "91",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Browse ",
parentId: "90",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 1,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564292780032",
name: "1550072564292780032",
meta: { title: " Browse ", affix: false, icon: null },
idStr: "91",
},
{
id: "12",
createdAt: "2021-07-17 23:32:16",
updatedAt: "2021-07-17 23:32:16",
title: " Role permissions ",
parentId: "1",
type: 1,
typeLabel: " menu ",
permission: "SysRole",
icon: "http://58.57.119.9:8989/visual_map_file/shezhitianchong.svg",
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "@/views/permissionManage/index.vue",
externalLink: null,
path: "/@/views/permissionManage/index.vue",
name: "1550072564292780033",
meta: {
title: " Role permissions ",
affix: false,
icon: "http://58.57.119.9:8989/visual_map_file/shezhitianchong.svg",
},
idStr: "12",
},
{
id: "14",
createdAt: "2021-07-17 23:32:16",
updatedAt: "2021-07-17 23:32:16",
title: " newly added ",
parentId: "12",
type: 2,
typeLabel: " Button ",
permission: "SysRole:create",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564292780034",
name: "1550072564292780034",
meta: { title: " newly added ", affix: false, icon: null },
idStr: "14",
},
{
id: "19",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " newly added ",
parentId: "17",
type: 2,
typeLabel: " Button ",
permission: "SysUser:create",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564292780035",
name: "1550072564292780035",
meta: { title: " newly added ", affix: false, icon: null },
idStr: "19",
},
{
id: "52",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Search for ",
parentId: "50",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564292780036",
meta: { title: " Search for ", affix: false, icon: null },
idStr: "52",
},
{
id: "57",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Receiver ",
parentId: null,
type: 0,
typeLabel: " Catalog ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564296974336",
name: "1550072564296974336",
meta: { title: " Receiver ", affix: false, icon: null },
idStr: "57",
},
{
id: "59",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Information Editor ",
parentId: "57",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564296974337",
meta: { title: " Information Editor ", affix: false, icon: null },
idStr: "59",
},
{
id: "64",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " export ",
parentId: "62",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564296974338",
name: "1550072564296974338",
meta: { title: " export ", affix: false, icon: null },
idStr: "64",
},
{
id: "68",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Start calculating ",
parentId: "66",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564296974339",
name: "1550072564296974339",
meta: { title: " Start calculating ", affix: false, icon: null },
idStr: "68",
},
{
id: "72",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " export ",
parentId: "70",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564296974340",
name: "1550072564296974340",
meta: { title: " export ", affix: false, icon: null },
idStr: "72",
},
{
id: "73",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Location data ",
parentId: "69",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564296974341",
meta: { title: " Location data ", affix: false, icon: null },
idStr: "73",
},
{
id: "75",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " export ",
parentId: "73",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564301168640",
name: "1550072564301168640",
meta: { title: " export ", affix: false, icon: null },
idStr: "75",
},
{
id: "81",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " download ",
parentId: "79",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564301168641",
name: "1550072564301168641",
meta: { title: " download ", affix: false, icon: null },
idStr: "81",
},
{
id: "84",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " select by circling the candidates' names ",
parentId: "82",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564301168642",
meta: { title: " select by circling the candidates' names ", affix: false, icon: null },
idStr: "84",
},
{
id: "92",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Upload ",
parentId: "90",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 2,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564301168643",
name: "1550072564301168643",
meta: { title: " Upload ", affix: false, icon: null },
idStr: "92",
},
{
id: "17",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " User management ",
parentId: "1",
type: 1,
typeLabel: " menu ",
permission: "SysUser",
icon: "http://58.57.119.9:8989/visual_map_file/yonghu.svg",
sort: 3,
status: 1,
statusLabel: " Enable ",
component: "@/views/permissionManage/index.vue",
externalLink: null,
path: "/@/views/permissionManage/index.vue",
name: "1550072564301168644",
meta: {
title: " User management ",
affix: false,
icon: "http://58.57.119.9:8989/visual_map_file/yonghu.svg",
},
idStr: "17",
},
{
id: "22",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Enable / Ban ( user )",
parentId: "17",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564301168645",
name: "1550072564301168645",
meta: { title: " Enable / Ban ( user )", affix: false, icon: null },
idStr: "22",
},
{
id: "23",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Enable / Ban ( role )",
parentId: "12",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564305362944",
name: "1550072564305362944",
meta: { title: " Enable / Ban ( role )", affix: false, icon: null },
idStr: "23",
},
{
id: "53",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " legend ",
parentId: "50",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564305362945",
meta: { title: " legend ", affix: false, icon: null },
idStr: "53",
},
{
id: "60",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Add a new point ",
parentId: "57",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564305362946",
meta: { title: " Add a new point ", affix: false, icon: null },
idStr: "60",
},
{
id: "65",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Data collection ",
parentId: null,
type: 0,
typeLabel: " Catalog ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564305362947",
name: "1550072564305362947",
meta: { title: " Data collection ", affix: false, icon: null },
idStr: "65",
},
{
id: "76",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Start calculating ",
parentId: "73",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564305362948",
name: "1550072564305362948",
meta: { title: " Start calculating ", affix: false, icon: null },
idStr: "76",
},
{
id: "79",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Collect data ",
parentId: "69",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564309557248",
meta: { title: " Collect data ", affix: false, icon: null },
idStr: "79",
},
{
id: "86",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Frame selection ",
parentId: "82",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564309557249",
meta: { title: " Frame selection ", affix: false, icon: null },
idStr: "86",
},
{
id: "93",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Show / hide ",
parentId: "90",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 3,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564309557250",
name: "1550072564309557250",
meta: { title: " Show / hide ", affix: false, icon: null },
idStr: "93",
},
{
id: "16",
createdAt: "2021-07-17 23:32:16",
updatedAt: "2021-07-17 23:32:16",
title: " edit ",
parentId: "12",
type: 2,
typeLabel: " Button ",
permission: "SysRole:update",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564309557251",
name: "1550072564309557251",
meta: { title: " edit ", affix: false, icon: null },
idStr: "16",
},
{
id: "21",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " edit ",
parentId: "17",
type: 2,
typeLabel: " Button ",
permission: "SysUser:update",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564309557252",
name: "1550072564309557252",
meta: { title: " edit ", affix: false, icon: null },
idStr: "21",
},
{
id: "54",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Map switching ",
parentId: "50",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564309557253",
meta: { title: " Map switching ", affix: false, icon: null },
idStr: "54",
},
{
id: "61",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Data download ",
parentId: "57",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564313751552",
meta: { title: " Data download ", affix: false, icon: null },
idStr: "61",
},
{
id: "69",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Data query ",
parentId: null,
type: 0,
typeLabel: " Catalog ",
permission: "",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564313751553",
name: "1550072564313751553",
meta: { title: " Data query ", affix: false, icon: null },
idStr: "69",
},
{
id: "77",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Check the heat map ",
parentId: "73",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564313751554",
name: "1550072564313751554",
meta: { title: " Check the heat map ", affix: false, icon: null },
idStr: "77",
},
{
id: "87",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Polygon selection ",
parentId: "82",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564313751555",
meta: { title: " Polygon selection ", affix: false, icon: null },
idStr: "87",
},
{
id: "94",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " see ",
parentId: "90",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 4,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564313751556",
name: "1550072564313751556",
meta: { title: " see ", affix: false, icon: null },
idStr: "94",
},
{
id: "15",
createdAt: "2021-07-17 23:32:16",
updatedAt: "2021-07-17 23:32:16",
title: " Delete ",
parentId: "12",
type: 2,
typeLabel: " Button ",
permission: "SysRole:delete",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564317945856",
name: "1550072564317945856",
meta: { title: " Delete ", affix: false, icon: null },
idStr: "15",
},
{
id: "20",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Delete ",
parentId: "17",
type: 2,
typeLabel: " Button ",
permission: "SysUser:delete",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564317945857",
name: "1550072564317945857",
meta: { title: " Delete ", affix: false, icon: null },
idStr: "20",
},
{
id: "55",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Perspective switching ",
parentId: "50",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564317945858",
meta: { title: " Perspective switching ", affix: false, icon: null },
idStr: "55",
},
{
id: "62",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Alarm query ",
parentId: "57",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564317945859",
meta: { title: " Alarm query ", affix: false, icon: null },
idStr: "62",
},
{
id: "78",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Change type ",
parentId: "73",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564317945860",
name: "1550072564317945860",
meta: { title: " Change type ", affix: false, icon: null },
idStr: "78",
},
{
id: "82",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Map tools ",
parentId: null,
type: 0,
typeLabel: " Catalog ",
permission: "",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564317945861",
name: "1550072564317945861",
meta: { title: " Map tools ", affix: false, icon: null },
idStr: "82",
},
{
id: "88",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " ranging ",
parentId: "82",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564322140160",
meta: { title: " ranging ", affix: false, icon: null },
idStr: "88",
},
{
id: "95",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " edit ",
parentId: "90",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 5,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564322140161",
name: "1550072564322140161",
meta: { title: " edit ", affix: false, icon: null },
idStr: "95",
},
{
id: "1",
createdAt: "2021-06-01 17:16:48",
updatedAt: "2021-06-02 17:14:16",
title: " System management ",
parentId: null,
type: 0,
typeLabel: " Catalog ",
permission: "Sys",
icon: null,
sort: 6,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564322140162",
name: "1550072564322140162",
meta: { title: " System management ", affix: false, icon: null },
idStr: "1",
},
{
id: "45",
createdAt: "2021-07-17 23:39:41",
updatedAt: "2021-07-17 23:39:41",
title: " Reset a user's password ",
parentId: "17",
type: 2,
typeLabel: " Button ",
permission: "SysUser:resetPassword",
icon: null,
sort: 6,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564322140163",
name: "1550072564322140163",
meta: { title: " Reset a user's password ", affix: false, icon: null },
idStr: "45",
},
{
id: "48",
createdAt: "2022-06-29 19:17:33",
updatedAt: "2022-06-29 19:17:38",
title: " Bind the relationship between roles and menus ",
parentId: "12",
type: 2,
typeLabel: " Button ",
permission: "SysRole:bindMenus",
icon: null,
sort: 6,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564322140164",
name: "1550072564322140164",
meta: { title: " Bind the relationship between roles and menus ", affix: false, icon: null },
idStr: "48",
},
{
id: "56",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Information is explicit and implicit ",
parentId: "50",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 6,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564322140165",
meta: { title: " Information is explicit and implicit ", affix: false, icon: null },
idStr: "56",
},
{
id: "63",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Browse ",
parentId: "62",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 6,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564326334464",
name: "1550072564326334464",
meta: { title: " Browse ", affix: false, icon: null },
idStr: "63",
},
{
id: "89",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Measuring surface ",
parentId: "82",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 6,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564326334465",
meta: { title: " Measuring surface ", affix: false, icon: null },
idStr: "89",
},
{
id: "96",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Delete ",
parentId: "90",
type: 2,
typeLabel: " Button ",
permission: "",
icon: null,
sort: 6,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564326334466",
name: "1550072564326334466",
meta: { title: " Delete ", affix: false, icon: null },
idStr: "96",
},
{
id: "47",
createdAt: "2021-07-17 23:40:47",
updatedAt: "2021-07-17 23:41:15",
title: " Kick a user offline ",
parentId: "17",
type: 2,
typeLabel: " Button ",
permission: "SysUser:kickOut",
icon: null,
sort: 7,
status: 1,
statusLabel: " Enable ",
component: "LAYOUT",
externalLink: null,
path: "/1550072564326334467",
name: "1550072564326334467",
meta: { title: " Kick a user offline ", affix: false, icon: null },
idStr: "47",
},
{
id: "90",
createdAt: "2021-07-17 23:32:17",
updatedAt: "2021-07-17 23:32:17",
title: " Layer import ",
parentId: "82",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 7,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564326334468",
meta: { title: " Layer import ", affix: false, icon: null },
idStr: "90",
},
{
id: "42",
createdAt: "2021-07-17 23:32:21",
updatedAt: "2021-07-17 23:32:21",
title: " system log ",
parentId: "1",
type: 1,
typeLabel: " menu ",
permission: "SysLog",
icon: "http://58.57.119.9:8989/visual_map_file/rizhi.svg",
sort: 8,
status: 1,
statusLabel: " Enable ",
component: "@/views/logManage/index.vue",
externalLink: null,
path: "/@/views/logManage/index.vue",
name: "1550072564326334469",
meta: {
title: " system log ",
affix: false,
icon: "http://58.57.119.9:8989/visual_map_file/rizhi.svg",
},
idStr: "42",
},
{
id: "44",
createdAt: "2021-07-17 23:37:26",
updatedAt: "2021-07-17 23:38:28",
title: " Change the current user password ",
parentId: "1",
type: 1,
typeLabel: " menu ",
permission: "",
icon: null,
sort: 9,
status: 1,
statusLabel: " Enable ",
component: null,
externalLink: null,
path: null,
name: "1550072564330528768",
meta: { title: " Change the current user password ", affix: false, icon: null },
idStr: "44",
},
];
// console.log('data==',data);
// Encapsulation method , Introduce the use of
// export function menu2Tree(items: any) {
// const data = JSON.parse(JSON.stringify(items)) // Deep copy does not change the source data
// const result = []
// if (!Array.isArray(data)) {
// return result
// }
// data.forEach((item) => {
// delete item.children
// })
// const map = {}
// data.forEach((item) => {
// map[item.id] = item
// })
// console.log('map==',map);
// data.forEach((item) => {
// const parent = map[item.parentId]
// if (parent) {
// ;(parent.children || (parent.children = [])).push(item)
// } else {
// // @ts-ignore
// result.push(item)
// }
// })
// console.log('result', result)
// return result
// }
const result = []
data.forEach((item) => {
delete item.children
})
const map = {}
data.forEach((item) => {
map[item.id] = item
})
// obtain id Of map object
console.log('map==',map);
data.forEach((item) => {
// according to map Object selection parentId The data of
const parent = map[item.parentId]
console.log('parent==',parent);
// If there is parentId Description belongs to child node ,push To children In the array , If it doesn't exist parentId Description is the top-level parent node , direct push To the end result in
if (parent) {
;(parent.children || (parent.children = [])).push(item)
} else {
// @ts-ignore
result.push(item)
}
})
// Get the final data
console.log('result', result)
边栏推荐
- Detailed sequence traversal of leetcode102 binary tree
- The solution of [an error occurred while trying to create a file in the destination directory: access denied] is prompted when installing the software
- [FFH] openharmony gnawing paper growth plan -- Application of cjson in traditional c/s model
- Unity C tool class arrayhelper
- Asyncdata cross domain error after nuxt route switching
- Unity解决Package Manager“You seem to be offline”
- 03_ UE4 advanced_ illumination
- pip3 带源安装大全
- SQL problem summary
- After watching the documentary "pirate treasure on Adak Island", I thought of the lost treasure in Chinese history
猜你喜欢

Taking advantage of the momentum, oceanbase promotes the lean growth of digital payment

Android系统安全 — 5.3-APK V2签名介绍

What is the component customization event we are talking about?

The detailed process of building discuz forum is easy to understand
![Typora prompt [this beta version of typora is expired, please download and install a new version]](/img/76/eb4ac7e717198a1bf613e8e71f9330.png)
Typora prompt [this beta version of typora is expired, please download and install a new version]

来阿里一年后我迎来了第一次工作变动....

Porting boa server on imx6ull

redis学习一redis介绍及NIO原理介绍

Super complete summary: how to operate files in go language

Asyncdata cross domain error after nuxt route switching
随机推荐
03_ UE4 advanced_ illumination
剑指 Offer II 024. 反转链表
Pulse netizens have a go interview question, can you answer it correctly?
After watching the documentary "pirate treasure on Adak Island", I thought of the lost treasure in Chinese history
Tiflash source code reading (V) deltatree storage engine design and implementation analysis - Part 2
林业调查巡检数据采集解决方案
Interviewer: man, how much do you know about the read-write lock of go language?
How can tiktok transport videos not be streaming limited?
[translation] integration challenges in microservice architecture using grpc and rest
Android系统安全 — 5.3-APK V2签名介绍
Android system security - 5.2-apk V1 signature introduction
The difference between & &, | and |
Realize page return to parent directory based on cookies
Tiktok shop platform will take disciplinary measures against sellers who violate rules and policies
Tiktok 16 popular categories, tiktok popular products to see which one you are suitable for?
Problems and abuse of protocol buffers
Why is TCP a triple handshake
Houdini 笔记
& 和 &&、| 和 || 的区别
What is the "age limit" on tiktok and how to solve it?