2024-10-17 15:09:27 +08:00
|
|
|
import { HomeFilled, Operation } from "@element-plus/icons-vue"
|
|
|
|
|
import type { Resource } from "./interface"
|
|
|
|
|
|
|
|
|
|
const resourcedata = ref<Resource.ResResourceList[]>([
|
|
|
|
|
{
|
|
|
|
|
'id': '1',
|
2024-10-30 15:19:47 +08:00
|
|
|
'pid':'0',
|
|
|
|
|
'pids':'',
|
2024-10-17 15:09:27 +08:00
|
|
|
'name': '检测计划',
|
2024-10-30 15:19:47 +08:00
|
|
|
'code':'',
|
2024-10-17 15:09:27 +08:00
|
|
|
'path':'/plan/planList/index',
|
2024-10-30 15:19:47 +08:00
|
|
|
'icon':'',
|
2024-10-28 08:39:09 +08:00
|
|
|
'sort':100,
|
2024-10-30 15:19:47 +08:00
|
|
|
'type':0,
|
|
|
|
|
'remark': '检测计划描述',
|
|
|
|
|
'state':1,
|
2024-10-17 15:09:27 +08:00
|
|
|
},
|
|
|
|
|
{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '2',
|
|
|
|
|
pid:'0',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '台账管理',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/machine',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '台账管理描述',
|
|
|
|
|
state:1,
|
|
|
|
|
children:[{
|
|
|
|
|
id: '21',
|
|
|
|
|
pid:'11',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '检测脚本',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/machine/testScript/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '检测脚本描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '22',
|
|
|
|
|
pid:'22',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '被检设备',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '被检设备描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '23',
|
|
|
|
|
pid:'23',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '误差体系',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '误差体系描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '24',
|
|
|
|
|
pid:'24',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '检测源',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '检测源描述',
|
|
|
|
|
state:1,
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '3',
|
|
|
|
|
pid:'0',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '权限管理',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '权限管理描述',
|
|
|
|
|
state:1,
|
2024-10-17 15:09:27 +08:00
|
|
|
children:[{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '31',
|
|
|
|
|
pid:'1',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '用户管理',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '用户管理描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '32',
|
|
|
|
|
pid:'2',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '角色管理',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '角色管理描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '33',
|
|
|
|
|
pid:'3',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '菜单管理',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '菜单管理描述',
|
|
|
|
|
state:1,
|
|
|
|
|
}]
|
2024-10-17 15:09:27 +08:00
|
|
|
},
|
|
|
|
|
{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '4',
|
|
|
|
|
pid:'0',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '系统配置',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '系统配置描述',
|
|
|
|
|
state:1,
|
2024-10-17 15:09:27 +08:00
|
|
|
children:[{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '41',
|
|
|
|
|
pid:'1',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '通用配置',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '通用配置描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '42',
|
|
|
|
|
pid:'2',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '数据字典',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '数据字典描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '43',
|
|
|
|
|
pid:'3',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '报告模版',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '报告模版描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '44',
|
|
|
|
|
pid:'4',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '版本注册',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '版本注册描述',
|
|
|
|
|
state:1,
|
|
|
|
|
},]
|
2024-10-17 15:09:27 +08:00
|
|
|
},
|
|
|
|
|
{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '5',
|
|
|
|
|
pid:'0',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '日志管理',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '日志管理描述',
|
|
|
|
|
state:1,
|
2024-10-17 15:09:27 +08:00
|
|
|
},
|
|
|
|
|
{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '6',
|
|
|
|
|
pid:'0',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '统计分析',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '统计分析描述',
|
|
|
|
|
state:1,
|
2024-10-17 15:09:27 +08:00
|
|
|
},
|
|
|
|
|
{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '7',
|
|
|
|
|
pid:'0',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '示例',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '示例描述',
|
|
|
|
|
state:0,
|
2024-10-17 15:09:27 +08:00
|
|
|
children:[{
|
2024-10-30 15:19:47 +08:00
|
|
|
id: '71',
|
|
|
|
|
pid:'1',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '普通表格',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '普通表格描述',
|
|
|
|
|
state:0,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: '71',
|
|
|
|
|
pid:'1',
|
|
|
|
|
pids:'',
|
|
|
|
|
name: '表格树',
|
|
|
|
|
code:'',
|
|
|
|
|
path:'/plan/planList/index',
|
|
|
|
|
icon:'',
|
|
|
|
|
sort:100,
|
|
|
|
|
type:0,
|
|
|
|
|
remark: '表格树描述',
|
|
|
|
|
state:0,
|
|
|
|
|
}]
|
|
|
|
|
},
|
2024-10-17 15:09:27 +08:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
export default resourcedata
|