表单验证

This commit is contained in:
sjl
2024-10-30 15:19:47 +08:00
parent f9bb15ad24
commit 0c2f59a0a7
21 changed files with 736 additions and 603 deletions

View File

@@ -4,247 +4,264 @@ import type { Resource } from "./interface"
const resourcedata = ref<Resource.ResResourceList[]>([
{
'id': '1',
'pid':'0',
'pids':'',
'name': '检测计划',
'code':'',
'path':'/plan/planList/index',
'icon':'',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
'type':0,
'remark': '检测计划描述',
'state':1,
},
{
'id': '2',
'name': '台账管理',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
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,
children:[{
'id': '21',
'name': '检测脚本',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '22',
'name': '被检设备',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '23',
'name': '误差体系',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},{
'id': '24',
'name': '检测源',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
}
]
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,
}]
},
{
'id': '3',
'name': '权限管理',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
id: '4',
pid:'0',
pids:'',
name: '系统配置',
code:'',
path:'/plan/planList/index',
icon:'',
sort:100,
type:0,
remark: '系统配置描述',
state:1,
children:[{
'id': '31',
'name': '用户管理',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '32',
'name': '角色管理',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '33',
'name': '菜单管理',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
}
]
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,
},]
},
{
'id': '4',
'name': '系统配置',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
id: '5',
pid:'0',
pids:'',
name: '日志管理',
code:'',
path:'/plan/planList/index',
icon:'',
sort:100,
type:0,
remark: '日志管理描述',
state:1,
},
{
id: '6',
pid:'0',
pids:'',
name: '统计分析',
code:'',
path:'/plan/planList/index',
icon:'',
sort:100,
type:0,
remark: '统计分析描述',
state:1,
},
{
id: '7',
pid:'0',
pids:'',
name: '示例',
code:'',
path:'/plan/planList/index',
icon:'',
sort:100,
type:0,
remark: '示例描述',
state:0,
children:[{
'id': '41',
'name': '通用配置',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '42',
'name': '数据字典',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '43',
'name': '报告模版',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},{
'id': '44',
'name': '版本注册',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
}
]
},
{
'id': '5',
'name': '日志管理',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '6',
'name': '统计分析',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '7',
'name': '示例',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
children:[{
'id': '71',
'name': '普通表格',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
},
{
'id': '72',
'name': '表格树',
'path':'/plan/planList/index',
'sort':100,
'type':'菜单',
'remark':'检测计划描述',
'route_Name':'route',
'create_Time': '2024-10-16 12:13:14',
'update_Time':'2024-10-16 12:13:14',
}
]
},
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,
}]
},
])
export default resourcedata