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 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', }, ] const planData = ref([ { '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':'2', }, { 'id': '3', 'name': '检测子计划1-2', 'pattern':'1', 'father_Plan_Id':'1', 'dataSource_Id':'3', 'script_Id':'3', 'error_Sys_Id':'3', 'test_State':'3', 'report_State':'3', 'result':'3', }, ]) // const plandata = ref([ // { // '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,testSoureDataList,testScriptDataList,testErrSystDataList}