Files
pqs-9100_client/frontend/src/api/plan/planData.ts

485 lines
10 KiB
TypeScript
Raw Normal View History

2024-10-29 11:17:04 +08:00
import type {Plan} from "./interface"
2024-11-07 13:22:51 +08:00
/**
* Dict
* id: 唯一标识
* label: 名称
*/
interface Dict {
id: string;
label: string;
}
const dictPattern: Dict[] = [
{
id: "0",
label: '数字',
},
{
id: "1",
label: '模拟',
},
{
id: "2",
label: '比对',
},
]
const dictTestState: Dict[] = [
{
id: "0",
label: '未检',
},
{
id: "1",
label: '检测中',
},
{
id: "2",
label: '检测完成',
},
]
const dictReportState: Dict[] = [
{
id: "0",
label: '未生成',
},
{
id: "1",
label: '部分生成',
},
{
id: "2",
label: '全部生成',
},
]
const dictResult: Dict[] = [
{
id: "0",
label: '符合',
},
{
id: "1",
label: '不符合',
},
]
//全部检测计划名称与ID
const testPlanDataList: Dict[] = [
{
id: "1",
label: '模拟检测计划1',
},
{
id: "2",
label: '模拟检测计划2',
},
{
id: "3",
label: '模拟检测计划3',
},
]
//全部数据源名称与ID
const testSoureDataList: Dict[] = [
{
id: "1",
label: '实时数据',
},
{
id: "2",
label: '分钟统计数据最大值',
},
{
id: "3",
label: '分钟统计数据最小值',
},
{
id: "4",
label: '分钟统计数据平均值',
},
{
id: "5",
label: '分钟统计数据CP95值',
},
{
id: "6",
label: '录波数据',
},
]
//全部检测脚本名称与ID
const testScriptDataList: Dict[] = [
{
id: "1",
label: '国网入网检测脚本(单影响量-模拟式)',
},
{
id: "2",
label: '国网入网检测脚本Q/GDW 10650.4 - 2021) 模拟式',
},
{
id: "3",
label: '国网入网检测脚本Q/GDW 1650.4 - 2016) 模拟式',
},
{
id: "4",
label: 'GBT 19862 - 2016 模拟式',
},
{
id: "5",
label: '北京比对检测脚本',
},
]
//全部误差体系名称与ID
const testErrSystDataList: Dict[] = [
{
id: "1",
label: 'Q/GDW 1650.2- 2016',
},
{
id: "2",
label: 'Q/GDW 10650.2 - 2021',
},
{
id: "3",
label: 'GBT 19862 - 2016',
},
]
//父计划ID及名称
const testFatherPlanList: Dict[] = [
{
id: "1",
label: '检测计划1',
},
{
id: "2",
label: '检测子计划2',
},
{
id: "3",
label: '检测子计划1-2',
},
]
//检测源ID及名称
const sourceDataList: Dict[] = [
{
id: "1",
2024-12-05 15:25:49 +08:00
label: '标准源-FLUKE.6100A电能功率标准源-1',
},
{
id: "2",
2024-12-05 15:25:49 +08:00
label: '标准源-ANGLI-FP2高性能数字信号源-1',
},
{
id: "3",
2024-12-05 15:25:49 +08:00
label: '标准源-DKLN-1电能质量测试分析仪智能检定装置-1',
},
{
id: "4",
2024-12-05 15:25:49 +08:00
label: '标准源-PQC600A高精度电能功率标准源-1',
},
{
id: "5",
2024-12-05 15:25:49 +08:00
label: '高精度设备-PQV-520便携式电能质量监测装置-1',
},
{
id: "6",
2024-12-05 15:25:49 +08:00
label: '高精度设备-PQV-520便携式电能质量监测装置-2',
},
{
id: "7",
2024-12-05 15:25:49 +08:00
label: '高精度设备-PQV-520便携式电能质量监测装置-3',
},
{
id: "8",
2024-12-05 15:25:49 +08:00
label: '高精度设备-PQV-520便携式电能质量监测装置-4',
},
]
//被检设备ID及名称
const deviceDataList: Dict[] = [
{
id: "1",
2024-12-04 10:20:55 +08:00
label: '240001',
},
{
id: "2",
2024-12-04 10:20:55 +08:00
label: '240002',
},
{
id: "3",
2024-12-04 10:20:55 +08:00
label: '240003',
},
{
id: "4",
2024-12-04 10:20:55 +08:00
label: '240004',
},
{
id: "5",
2024-12-04 10:20:55 +08:00
label: '240005',
},
{
id: "6",
2024-12-04 10:20:55 +08:00
label: '240006',
},
{
id: "7",
2024-12-04 10:20:55 +08:00
label: '240007',
},
{
id: "8",
2024-12-04 10:20:55 +08:00
label: '240008',
},
]
2024-12-04 10:20:55 +08:00
// const deviceDataList: Dict[] = [
// {
// id: "1",
// label: '模拟装置1',
// },
// {
// id: "2",
// label: '模拟装置2',
// },
// {
// id: "3",
// label: '模拟装置3',
// },
// {
// id: "4",
// label: '模拟装置4',
// },
// {
// id: "5",
// label: '中电送检装置',
// },
// {
// id: "6",
// label: '易司拓测试装置',
// },
// {
// id: "7",
// label: '山大电力测试装置1',
// },
// {
// id: "8",
// label: '山大电力测试装置2',
// },
// ]
2024-11-08 13:09:06 +08:00
const planData = ref<Plan.PlanAndSourceBO[]>([
{
'id': '1',
2024-12-04 09:44:26 +08:00
'name': '沧州110kV东光站装置送检',
2024-11-08 13:09:06 +08:00
'pattern':'1',
"source_Id" : ['1'],
2024-12-05 15:25:49 +08:00
"testSourceName":'标准源-FLUKE.6100A电能功率标准源-1',
2024-11-20 21:30:05 +08:00
'dataSource_Id':['1'],
'dataSource_Ids':'实时数据',
2024-11-08 13:09:06 +08:00
'script_Id':'1',
'error_Sys_Id':'1',
'test_State':'1',
'report_State':'1',
'result':'1',
},
{
'id': '2',
2024-12-04 09:44:26 +08:00
'name': '邯郸2台安徽振兴终端送检',
2024-11-08 13:09:06 +08:00
'pattern':'1',
"source_Id" : ['5','6','7','8'],
2024-12-05 15:25:49 +08:00
"testSourceName":'高精度设备-PQV-520便携式电能质量监测装置-1',
2024-11-08 13:09:06 +08:00
'father_Plan_Id':'1',
2024-12-04 09:44:26 +08:00
'dataSource_Id':['1'],
'dataSource_Ids':'实时数据',
2024-11-08 13:09:06 +08:00
'script_Id':'2',
'error_Sys_Id':'2',
'test_State':'2',
'report_State':'2',
'result':'0',
"testSourceList":[
2024-12-05 15:25:49 +08:00
'高精度设备-PQV-520便携式电能质量监测装置-2','高精度设备-PQV-520便携式电能质量监测装置-3','高精度设备-PQV-520便携式电能质量监测装置-4'
]
2024-11-08 13:09:06 +08:00
},
{
'id': '3',
2024-12-04 10:20:55 +08:00
'name': '浙江分布式光伏电能质量试点',
2024-11-08 13:09:06 +08:00
'pattern':'1',
"source_Id" : ['3'],
2024-12-05 15:25:49 +08:00
"testSourceName":'标准源-DKLN-1电能质量测试分析仪智能检定装置-1',
2024-11-08 13:09:06 +08:00
'father_Plan_Id':'1',
2024-11-20 21:30:05 +08:00
'dataSource_Id':['1'],
'dataSource_Ids':'实时数据',
2024-12-04 10:20:55 +08:00
'script_Id':'4',
2024-11-08 13:09:06 +08:00
'error_Sys_Id':'3',
'test_State':'1',
'report_State':'1',
'result':'1',
},
2024-10-29 11:17:04 +08:00
])
2024-11-08 13:09:06 +08:00
// const planData = ref<Plan.PlanBO[]>([
// {
// 'id': '1',
// 'name': '检测计划1',
// 'pattern':'1',
// 'dataSource_Id':'1',
// 'script_Id':'1',
// 'error_Sys_Id':'1',
// 'test_State':'1',
// 'report_State':'1',
// 'result':'1',
// },
// {
// 'id': '2',
// 'name': '检测子计划2',
// 'pattern':'1',
// 'father_Plan_Id':'1',
// 'dataSource_Id':'2',
// 'script_Id':'2',
// 'error_Sys_Id':'2',
// 'test_State':'2',
// 'report_State':'2',
// 'result':'0',
// },
// {
// 'id': '3',
// 'name': '检测子计划1-2',
// 'pattern':'1',
// 'father_Plan_Id':'1',
// 'dataSource_Id':'3',
// 'script_Id':'3',
// 'error_Sys_Id':'3',
// 'test_State':'1',
// 'report_State':'1',
// 'result':'1',
// },
// ])
2024-10-29 11:17:04 +08:00
2024-11-07 13:22:51 +08:00
// const plandata = ref<Plan.PlanList[]>([
// {
// 'id': '1',
// 'name': '检测计划1',
// 'pattern':'模拟式',
// 'father_Plan_Id':'/',
// 'dataSource_Id':'分钟统计数据最大值',
// 'script_Id':'国网入网检测脚本(单影响量-模拟式)',
// 'error_Sys_Id':'Q/GDW 1650.2- 2016',
// 'test_State':'未检',
// 'report_State':'未生成',
// 'result':'符合',
// 'state': 1,
// 'create_By':'',
// 'create_Time':'',
// 'update_By':'',
// 'update_Time':'',
// },
// {
// 'id': '2',
// 'name': '检测子计划1-1',
// 'pattern':'模拟式',
// 'father_Plan_Id':'检测计划1',
// 'dataSource_Id':'分钟统计数据最大值',
// 'script_Id':'国网入网检测脚本(单影响量-模拟式)',
// 'error_Sys_Id':'Q/GDW 1650.2- 2016',
// 'test_State':'未检',
// 'report_State':'未生成',
// 'result':'符合',
// 'state': 1,
// 'create_By':'',
// 'create_Time':'',
// 'update_By':'',
// 'update_Time':'',
// },
// {
// 'id': '3',
// 'name': '检测子计划1-2',
// 'pattern':'模拟式',
// 'father_Plan_Id':'检测计划1',
// 'dataSource_Id':'分钟统计数据最大值',
// 'script_Id':'国网入网检测脚本(单影响量-模拟式)',
// 'error_Sys_Id':'Q/GDW 1650.2- 2016',
// 'test_State':'未检',
// 'report_State':'未生成',
// 'result':'符合',
// 'state': 1,
// 'create_By':'',
// 'create_Time':'',
// 'update_By':'',
// 'update_Time':'',
// },
// {
// 'id': '4',
// 'name': '检测计划2',
// 'pattern':'模拟式',
// 'father_Plan_Id':'/',
// 'dataSource_Id':'分钟统计数据最小值',
// 'script_Id':'国网入网检测脚本(单影响量-模拟式)',
// 'error_Sys_Id':'Q/GDW 10650.2 - 2021',
// 'test_State':'检测完成',
// 'report_State':'部分生成',
// 'result':'不符合',
// 'state': 1,
// 'create_By':'',
// 'create_Time':'',
// 'update_By':'',
// 'update_Time':'',
// },
// {
// 'id': '5',
// 'name': '检测计划3',
// 'pattern':'模拟式',
// 'father_Plan_Id':'/',
// 'dataSource_Id':'分钟统计数据最大值',
// 'script_Id':'/',
// 'error_Sys_Id':'/',
// 'test_State':'未检',
// 'report_State':'未生成',
// 'result':'符合',
// 'state': 1,
// 'create_By':'',
// 'create_Time':'',
// 'update_By':'',
// 'update_Time':'',
// },
// {
// 'id': '6',
// 'name': '检测子计划4',
// 'pattern':'模拟式',
// 'father_Plan_Id':'/',
// 'dataSource_Id':'分钟统计数据CP95值',
// 'script_Id':'国网入网检测脚本(单影响量-模拟式)',
// 'error_Sys_Id':'Q/GDW 1650.2- 2016',
// 'test_State':'未检',
// 'report_State':'未生成',
// 'result':'符合',
// 'state': 1,
// 'create_By':'',
// 'create_Time':'',
// 'update_By':'',
// 'update_Time':'',
// },
// {
// 'id': '7',
// 'name': '检测子计划4-1',
// 'pattern':'模拟式',
// 'father_Plan_Id':'检测计划4',
// 'dataSource_Id':'分钟统计数据CP95值',
// 'script_Id':'国网入网检测脚本(单影响量-模拟式)',
// 'error_Sys_Id':'Q/GDW 1650.2- 2016',
// 'test_State':'未检',
// 'report_State':'未生成',
// 'result':'符合',
// 'state': 1,
// 'create_By':'',
// 'create_Time':'',
// 'update_By':'',
// 'update_Time':'',
// },
// ])
export {planData,dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,sourceDataList,deviceDataList,testSoureDataList,testScriptDataList,testErrSystDataList,testFatherPlanList}