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

489 lines
10 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type {Plan} from "./interface"
/**
* 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: "2",
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",
label: '标准源-FLUKE.6100A电能功率标准源-1',
},
{
id: "2",
label: '标准源-ANGLI-FP2高性能数字信号源-1',
},
{
id: "3",
label: '标准源-DKLN-1电能质量测试分析仪智能检定装置-1',
},
{
id: "4",
label: '标准源-PQC600A高精度电能功率标准源-1',
},
{
id: "5",
label: '高精度设备-PQV-520便携式电能质量监测装置-1',
},
{
id: "6",
label: '高精度设备-PQV-520便携式电能质量监测装置-2',
},
{
id: "7",
label: '高精度设备-PQV-520便携式电能质量监测装置-3',
},
{
id: "8",
label: '高精度设备-PQV-520便携式电能质量监测装置-4',
},
]
//被检设备ID及名称
const deviceDataList: Dict[] = [
{
id: "1",
label: '240001',
},
{
id: "2",
label: '240002',
},
{
id: "3",
label: '240003',
},
{
id: "4",
label: '240004',
},
{
id: "5",
label: '240005',
},
{
id: "6",
label: '240006',
},
{
id: "7",
label: '240007',
},
{
id: "8",
label: '240008',
},
]
// 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',
// },
// ]
const planData = ref<Plan.PlanAndSourceBO[]>([
{
'id': '1',
'name': '沧州110kV东光站装置送检',
'pattern':'1',
"source_Id" : ['1'],
"testSourceName":'标准源-FLUKE.6100A电能功率标准源-1',
'dataSource_Id':['1'],
'dataSource_Ids':'实时数据',
'script_Id':'1',
'error_Sys_Id':'1',
'test_State':'1',
'report_State':'1',
'result':'1',
},
{
'id': '2',
'name': '邯郸2台安徽振兴终端送检',
'pattern':'1',
"source_Id" : ['5','6','7','8'],
"testSourceName":'高精度设备-PQV-520便携式电能质量监测装置-1',
'father_Plan_Id':'1',
'dataSource_Id':['1'],
'dataSource_Ids':'实时数据',
'script_Id':'2',
'error_Sys_Id':'2',
'test_State':'2',
'report_State':'2',
'result':'0',
"testSourceList":[
'高精度设备-PQV-520便携式电能质量监测装置-2','高精度设备-PQV-520便携式电能质量监测装置-3','高精度设备-PQV-520便携式电能质量监测装置-4'
]
},
{
'id': '3',
'name': '浙江分布式光伏电能质量试点',
'pattern':'1',
"source_Id" : ['3'],
"testSourceName":'标准源-DKLN-1电能质量测试分析仪智能检定装置-1',
'father_Plan_Id':'1',
'dataSource_Id':['1'],
'dataSource_Ids':'实时数据',
'script_Id':'4',
'error_Sys_Id':'3',
'test_State':'1',
'report_State':'1',
'result':'1',
},
])
// 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',
// },
// ])
// 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}