diff --git a/frontend/src/api/check/interface/index.ts b/frontend/src/api/check/interface/index.ts index 02fa7ce..8890c11 100644 --- a/frontend/src/api/check/interface/index.ts +++ b/frontend/src/api/check/interface/index.ts @@ -1,6 +1,6 @@ export namespace CheckData { export interface DataCheck { - testScriptName: string, + scriptName: string, errorSysName: string, dataRule: string, deviceName: string, diff --git a/frontend/src/api/plan/autoTest.json b/frontend/src/api/plan/autoTest.json index 7812c02..b5702b3 100644 --- a/frontend/src/api/plan/autoTest.json +++ b/frontend/src/api/plan/autoTest.json @@ -1,227 +1,194 @@ { - "code": "A0000", - "data": [ + "code": "A0000", + "data": [ + { + "id": "1", + "pid": "0", + "name": "频率准确度检测", + "children": [ { - "id": "0", - "name": "频率准确度检测", - "children": [ - { - "pid": 0, - "id": "0-1", - "name": "额定工作条件下的检测", - "children": [ - { - "scriptIdx":1, - "isChildNode":true, - "pid": "0-1", - "id": "0-1-1", - "name": "输入:频率 42.5Hz..." - }, - { - "scriptIdx":2, - "isChildNode":true, - "pid": "0-1", - "id": "0-1-2", - "name": "输入:频率 50.0Hz..." - }, - { - "scriptIdx":3, - "isChildNode":true, - "pid": "0-1", - "id": "0-1-3", - "name": "输入:频率 50.05Hz...." - } - ] - }, - { - "pid": 0, - "id": "0-2", - "name": "电压对频率测量的影响", - "children": [ - { - "scriptIdx":4, - "isChildNode":true, - "pid": "0-2", - "id": "0-2-1", - "name": "输入:频率 50.05Hz Ua =10%Un..." - }, - { - "scriptIdx":5, - "isChildNode":true, - "pid": "0-2", - "id": "0-2-1", - "name": "输入:频率 51.05Hz Ua =10%Un..." - }, - { - "scriptIdx":6, - "isChildNode":true, - "pid": "0-2", - "id": "0-2-2", - "name": "输入:频率 52.05Hz Ua =10%Un..." - } - ] - }, - { - "pid": 0, - "id": "0-3", - "name": "谐波对频率测量的影响", - "children": [ - { - "scriptIdx":7, - "isChildNode":true, - "pid": "0-3", - "id": "0-3-1", - "name": "输入:频率 50.05Hz Ua =100%Un..." - } - ] - } - ] + "id": "1-1", + "pid": "1", + "name": "额定工作条件下的检测", + "children": [ + { + "id": "1-1-1", + "pid": "1-1", + "name": "输入:频率 42.5Hz..." + }, + { + "id": "1-1-2", + "pid": "1-1", + "name": "输入:频率 50.0Hz..." + }, + { + "id": "1-1-3", + "pid": "1-1", + "name": "输入:频率 50.05Hz...." + } + ] }, { - "id": "1", - "name": "电压准确度检测", - "children": [ - { - "pid": 1, - "id": "1-1", - "name": "额定工作条件下的检测", - "children": [ - { - "scriptIdx":8, - "isChildNode":true, - "pid": "1-1", - "id": "1-1-1", - "name": "输入:频率 42.5Hz..." - }, - { - "scriptIdx":9, - "isChildNode":true, - "pid": "1-1", - "id": "1-1-2", - "name": "输入:频率 50.0Hz..." - }, - { - "scriptIdx":10, - "isChildNode":true, - "pid": "1-1", - "id": "1-1-3", - "name": "输入:频率 50.05Hz..." - } - ] - }, - { - "pid": 0, - "id": "1-2", - "name": "电压对频率测量的影响", - "children": [ - { - "scriptIdx":11, - "isChildNode":true, - "pid": "1-2", - "id": "1-2-1", - "name": "输入:频率 50.05Hz Ua =10%Un..." - }, - { - "scriptIdx":12, - "isChildNode":true, - "pid": "1-2", - "id": "1-2-1", - "name": "输入:频率 51.05Hz Ua =10%Un..." - }, - { - "scriptIdx":13, - "isChildNode":true, - "pid": "1-2", - "id": "1-2-2", - "name": "输入:频率 52.05Hz Ua =10%Un..." - } - ] - }, - { - "pid": 0, - "id": "0-3", - "name": "谐波对频率测量的影响", - "children": [ - { - "scriptIdx":14, - "isChildNode":true, - "pid": "0-3", - "id": "0-3-1", - "name": "输入:频率 50.05Hz Ua =100%Un..." - } - ] - } - ] + "id": "1-2", + "pid": "1", + "name": "电压对频率测量的影响", + "children": [ + { + "id": "1-2-1", + "pid": "1-2", + "name": "输入:频率 50.05Hz Ua =10%Un..." + }, + { + "id": "1-2-1", + "pid": "1-2", + "name": "输入:频率 51.05Hz Ua =10%Un..." + }, + { + "id": "1-2-2", + "pid": "1-2", + "name": "输入:频率 52.05Hz Ua =10%Un..." + } + ] }, - { - "id": "2", - "name": "谐波准确度检测", - "children": [ - { - "pid": 2, - "id": "2-1", - "name": "额定工作条件下的检测", - "children": [ - { - "scriptIdx":15, - "pid": "2-1", - "id": "2-1-1", - "name": "输入:频率 42.5Hz..." - }, - { - "scriptIdx":16, - "pid": "2-1", - "id": "2-1-2", - "name": "输入:频率 50.0Hz..." - }, - { - "scriptIdx":17, - "pid": "2-1", - "id": "2-1-3", - "name": "输入:频率 50.05Hz..." - } - ] - }, - { - "pid": 2, - "id": "2-2", - "name": "电压对频率测量的影响", - "children": [ - { - "scriptIdx":18, - "pid": "2-2", - "id": "2-2-1", - "name": "输入:频率 50.05Hz Ua =10%Un..." - }, - { - "scriptIdx":19, - "pid": "2-2", - "id": "2-2-1", - "name": "输入:频率 51.05Hz Ua =10%Un..." - }, - { - "scriptIdx":20, - "pid": "2-2", - "id": "2-2-2", - "name": "输入:频率 52.05Hz Ua =10%Un..." - } - ] - }, - { - "pid": 2, - "id": "2-3", - "name": "谐波对频率测量的影响", - "children": [ - { - "scriptIdx":21, - "pid": "2-3", - "id": "2-3-1", - "name": "输入:频率 50.05Hz Ua =100%Un..." - } - ] - } - ] + "id": "1-3", + "pid": "1", + "name": "谐波对频率测量的影响", + "children": [ + { + "id": "1-3-1", + "pid": "1-3", + "name": "输入:频率 50.05Hz Ua =100%Un..." + } + ] } - ] - } \ No newline at end of file + ] + }, + { + "id": "2", + "pid": "0", + "name": "电压准确度检测", + "children": [ + { + "pid": "2", + "id": "2-1", + "name": "额定工作条件下的检测", + "children": [ + { + "id": "2-1-1", + "pid": "2-1", + "name": "输入:频率 42.5Hz..." + }, + { + "id": "2-1-2", + "pid": "2-1", + "name": "输入:频率 50.0Hz..." + }, + { + "id": "2-1-3", + "pid": "2-1", + "name": "输入:频率 50.05Hz..." + } + ] + }, + { + "pid": "2", + "id": "2-2", + "name": "电压对频率测量的影响", + "children": [ + { + "id": "2-2-1", + "pid": "2-2", + "name": "输入:频率 50.05Hz Ua =10%Un..." + }, + { + "id": "2-2-1", + "pid": "2-2", + "name": "输入:频率 51.05Hz Ua =10%Un..." + }, + { + "id": "2-2-2", + "pid": "2-2", + "name": "输入:频率 52.05Hz Ua =10%Un..." + } + ] + }, + { + "pid": "2", + "id": "2-3", + "name": "谐波对频率测量的影响", + "children": [ + { + "id": "2-3-1", + "pid": "2-3", + "name": "输入:频率 50.05Hz Ua =100%Un..." + } + ] + } + ] + }, + { + "id": "3", + "pid": "0", + "name": "谐波准确度检测", + "children": [ + { + "id": "3-1", + "pid": "3", + "name": "额定工作条件下的检测", + "children": [ + { + "id": "3-1-1", + "pid": "3-1", + "name": "输入:频率 42.5Hz..." + }, + { + "id": "3-1-2", + "pid": "3-1", + "name": "输入:频率 50.0Hz..." + }, + { + "id": "3-1-3", + "pid": "3-1", + "name": "输入:频率 50.05Hz..." + } + ] + }, + { + "id": "3-2", + "pid": "3", + "name": "电压对频率测量的影响", + "children": [ + { + "id": "3-2-1", + "pid": "3-2", + "name": "输入:频率 50.05Hz Ua =10%Un..." + }, + { + "id": "3-2-1", + "pid": "3-2", + "name": "输入:频率 51.05Hz Ua =10%Un..." + }, + { + "id": "3-2-2", + "pid": "3-2", + "name": "输入:频率 52.05Hz Ua =10%Un..." + } + ] + }, + { + "id": "3-3", + "pid": "3", + "name": "谐波对频率测量的影响", + "children": [ + { + "id": "3-3-1", + "pid": "3-3", + "name": "输入:频率 50.05Hz Ua =100%Un..." + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index 9708690..de52d08 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -5,7 +5,7 @@