微调下拉框,数据库字段

This commit is contained in:
sjl
2024-10-30 19:07:41 +08:00
parent 18b9ef9e51
commit d2d4153114
12 changed files with 203 additions and 67 deletions

View File

@@ -3,8 +3,8 @@ import type {ErrorSystem} from "./interface"
const errordata = ref<ErrorSystem.ErrorSystemList[]>([
{
id: '1',
name: 'Q/GDW 1650.2- 2016',
standard_Name:'',
name: 'Q/GDW 1650.2-2016-A',
standard_Name:'Q/GDW 1650.2-2016',
standard_Time:'2016',
dev_Level:'A级',
enable:1,
@@ -12,8 +12,8 @@ const errordata = ref<ErrorSystem.ErrorSystemList[]>([
},
{
id: '2',
name: 'Q/GDW 1650.2- 2021',
standard_Name:'',
name: 'Q/GDW 1650.2-2021-A',
standard_Name:'Q/GDW 1650.2-2021',
standard_Time:'2021',
dev_Level:'A级',
enable:1,
@@ -21,8 +21,8 @@ const errordata = ref<ErrorSystem.ErrorSystemList[]>([
},
{
id: '3',
name: 'GBT 19862 - 2016',
standard_Name:'',
name: 'GBT 19862-2016-A',
standard_Name:'GBT 19862-2016',
standard_Time:'2016',
dev_Level:'A级',
enable:1,

View File

@@ -7,7 +7,7 @@ export namespace ErrorSystem {
standard_Name:string;//参照标准名称
standard_Time:string;//标准推行时间
dev_Level:string;//使用设备等级
enable:number;//状态0-不启用 1-启用
enable?:number;//状态0-不启用 1-启用
state:number;//0-删除 1-正常
create_By?:string;//创建用户
create_Time?:string;//创建时间

View File

@@ -62,7 +62,7 @@ const plandata = ref<Plan.PlanList[]>([
'error_Sys_Id':'Q/GDW 10650.2 - 2021',
'test_State':'检测完成',
'report_State':'部分生成',
'result':'符合',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',

View File

@@ -13,7 +13,7 @@ export namespace Resource {
path:string;//路径
icon?:string;//图标
sort:number;//排序
type:number;//资源类型0-菜单、1-按钮、2-公共资源、3-服务间调用资源
type?:number;//资源类型0-菜单、1-按钮、2-公共资源、3-服务间调用资源
remark?: string;//权限资源描述
state:number;//权限资源状态
create_By?:string;//创建人

View File

@@ -7,7 +7,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
'pid':'0',
'pids':'',
'name': '检测计划',
'code':'',
'code':'route',
'path':'/plan/planList/index',
'icon':'',
'sort':100,
@@ -20,7 +20,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'0',
pids:'',
name: '台账管理',
code:'',
code:'route',
path:'/machine',
icon:'',
sort:100,
@@ -32,11 +32,11 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'11',
pids:'',
name: '检测脚本',
code:'',
code:'route',
path:'/machine/testScript/index',
icon:'',
sort:100,
type:0,
type:1,
remark: '检测脚本描述',
state:1,
},
@@ -45,11 +45,11 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'22',
pids:'',
name: '被检设备',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
type:0,
type:1,
remark: '被检设备描述',
state:1,
},
@@ -58,11 +58,11 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'23',
pids:'',
name: '误差体系',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
type:0,
type:1,
remark: '误差体系描述',
state:1,
},
@@ -71,11 +71,11 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'24',
pids:'',
name: '检测源',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
type:0,
type:1,
remark: '检测源描述',
state:1,
}]
@@ -85,7 +85,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'0',
pids:'',
name: '权限管理',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -97,7 +97,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'1',
pids:'',
name: '用户管理',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -110,7 +110,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'2',
pids:'',
name: '角色管理',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -123,7 +123,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'3',
pids:'',
name: '菜单管理',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -137,7 +137,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'0',
pids:'',
name: '系统配置',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -149,7 +149,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'1',
pids:'',
name: '通用配置',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -162,7 +162,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'2',
pids:'',
name: '数据字典',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -175,7 +175,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'3',
pids:'',
name: '报告模版',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -188,7 +188,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'4',
pids:'',
name: '版本注册',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -202,7 +202,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'0',
pids:'',
name: '日志管理',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -215,7 +215,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'0',
pids:'',
name: '统计分析',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -228,7 +228,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'0',
pids:'',
name: '示例',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -240,7 +240,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'1',
pids:'',
name: '普通表格',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,
@@ -253,7 +253,7 @@ const resourcedata = ref<Resource.ResResourceList[]>([
pid:'1',
pids:'',
name: '表格树',
code:'',
code:'route',
path:'/plan/planList/index',
icon:'',
sort:100,

View File

@@ -45,22 +45,27 @@ const dictData: Dict[] = [
},
{
id: "3",
code: 'type',
code: 'resourceType',
label: '资源类型',
children: [
{
id: "1",
id: "0",
label: '菜单',
code: 0,
},
{
id: "1",
label: '按钮',
code: 1,
},
{
id: "2",
label: '按钮',
label: '公共资源',
code: 2,
},
{
id: "3",
label: '公共资源',
label: '服务间调用资源',
code: 3,
},
],
@@ -87,6 +92,128 @@ const dictData: Dict[] = [
},
],
},
{
id: "4",
code: 'roleType',
label: '角色类型',
children: [
{
id: "0",
label: '超级管理员',
code: 0,
},
{
id: "1",
label: '管理员',
code: 1,
},
{
id: "2",
label: '普通角色',
code: 2,
},
],
},
{
id: "4",
code: 'roleType',
label: '角色类型',
children: [
{
id: "0",
label: '超级管理员',
code: 0,
},
{
id: "1",
label: '管理员',
code: 1,
},
{
id: "2",
label: '普通角色',
code: 2,
},
],
},
{
id: "5",
code: 'planTestState',
label: '检测状态',
children: [
{
id: "0",
label: '未检',
code: '未检',
},
{
id: "1",
label: '检测中',
code: '检测中',
},
{
id: "2",
label: '检测完成',
code: '检测完成',
},
],
},
{
id: "6",
code: 'errorLevel',
label: '适用设备等级',
children: [
{
id: "0",
label: 'A级',
code: "A级",
},
{
id: "1",
label: 'S级',
code: 'S级',
},
],
},
{
id: "7",
code: 'planReportState',
label: '报告生成状态',
children: [
{
id: "0",
label: '未生成',
code: "未生成",
},
{
id: "1",
label: '部分生成',
code: '部分生成',
},
{
id: "2",
label: '全部生成',
code: '全部生成',
},
],
},
{
id: "6",
code: 'planResult',
label: '检测结果',
children: [
{
id: "0",
label: '符合',
code: "符合",
},
{
id: "1",
label: '不符合',
code: '不符合',
},
],
},
]