From 9804baf8a36326857e68f673acb6a6cfbacc1a60 Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Thu, 7 Nov 2024 20:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E9=A6=96=E9=A1=B5=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=B8=8D=E5=90=8C=E5=85=A5=E5=8F=A3=E7=9A=84=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=89=E6=8B=A9=E7=8A=B6=E6=80=81=E5=92=8C=E7=A6=81?= =?UTF-8?q?=E6=AD=A2=E9=80=89=E6=8B=A9=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/device/deviceData.ts | 81 +++- frontend/src/api/plan/planData.ts | 26 +- frontend/src/api/plan/planList.ts | 1 + frontend/src/api/plan/static.json | 16 +- frontend/src/views/home/components/table.vue | 445 ++++++++++++------ frontend/src/views/home/tabs/dashboard.vue | 31 +- .../plan/planList/components/devPopup.vue | 4 +- .../planList/components/devSelectPopup.vue | 2 +- .../plan/planList/components/planPopup.vue | 8 +- .../plan/planList/components/sourcePopup.vue | 4 +- frontend/src/views/plan/planList/index.vue | 21 +- 11 files changed, 425 insertions(+), 214 deletions(-) diff --git a/frontend/src/api/device/deviceData.ts b/frontend/src/api/device/deviceData.ts index 4eb1849..20439fd 100644 --- a/frontend/src/api/device/deviceData.ts +++ b/frontend/src/api/device/deviceData.ts @@ -1,10 +1,10 @@ const data = [ { id: 'device1', - devicename:"模拟装置1", + deviceName:"模拟装置1", deviceType:"PQS882B4电能质量监测装置", deviceChannels:"4", - Planname: "沧州220kV留古等4座变电站电能质量检测", + planName: "沧州220kV留古等4座变电站电能质量检测", deviceUn: "57.74", deviceIn: "5", deviceCompany: "南京灿能电力自动化股份有限公司", @@ -12,10 +12,10 @@ const data = [ }, { id: 'device2', - devicename:"模拟装置2", + deviceName:"模拟装置2", deviceType:"PQS882A电能质量监测装置", deviceChannels:"1", - Planname: "邯郸220kV团城站等4座站电能质量检测", + planName: "邯郸220kV团城站等4座站电能质量检测", deviceUn: "57.74", deviceIn: "5", deviceCompany: "南京灿能电力自动化股份有限公司", @@ -23,10 +23,10 @@ const data = [ }, { id: 'device3', - devicename:"模拟装置3", + deviceName:"模拟装置3", deviceType:"PQS882A电能质量监测装置", deviceChannels:"1", - Planname: "衡水冀州光伏电站配套出口工程", + planName: "衡水冀州光伏电站配套出口工程", deviceUn: "57.74", deviceIn: "1", deviceCompany: "南京灿能电力自动化股份有限公司", @@ -34,10 +34,10 @@ const data = [ }, { id: 'device4', - devicename:"模拟装置4", + deviceName:"模拟装置4", deviceType:"PMC-680M-22-22-00-115ANBC电能质量监测装置", deviceChannels:"4", - Planname: "深圳市中电软件有限公司委托送检", + planName: "深圳市中电软件有限公司委托送检", deviceUn: "57.74", deviceIn: "5", deviceCompany: "深圳中电电力技术股份有限公司", @@ -48,7 +48,7 @@ const data = [ const plan_devicedata = [ { id: '1', //装置序号ID - name: '设备1', //设备名称 + name: '模拟装置1', //设备名称 dev_Type: 'PQS882A',//设备类型 dev_Chns: 1, //设备通道数 check_Result: '合格', //检测结果 @@ -59,7 +59,7 @@ const data = [ }, { id: '2', //装置序号ID - name: '设备2', //设备名称 + name: '模拟装置2', //设备名称 dev_Type: 'PQS882B4',//设备类型 dev_Chns: 4, //设备通道数 check_Result: '/', //检测结果 @@ -70,7 +70,7 @@ const data = [ }, { id: '3', //装置序号ID - name: '设备3', //设备名称 + name: '模拟装置3', //设备名称 dev_Type: 'PQS882B4',//设备类型 dev_Chns: 4, //设备通道数 check_Result: '/', //检测结果 @@ -81,7 +81,7 @@ const data = [ }, { id: '4', //装置序号ID - name: '设备4', //设备名称 + name: '模拟装置4', //设备名称 dev_Type: 'PQS882B4',//设备类型 dev_Chns: 4, //设备通道数 check_Result: '不合格', //检测结果 @@ -90,6 +90,61 @@ const data = [ check_State:'检测完成',//检测状态 reCheck_Num: 1, //复检次数 }, + { + id: '5', //装置序号ID + name: '中电测试装置', //设备名称 + dev_Type: 'PMC-680M-22-22-00-115ANBC',//设备类型 + dev_Chns: 4, //设备通道数 + check_Result: '不合格', //检测结果 + report_State: '未生成', //报告状态 + document_State: '未归档', //归档状态 + check_State:'检测完成',//检测状态 + reCheck_Num: 1, //复检次数 + }, + { + id: '6', //装置序号ID + name: '易司拓测试装置1', //设备名称 + dev_Type: 'E703A',//设备类型 + dev_Chns: 1, //设备通道数 + check_Result: '不合格', //检测结果 + report_State: '已生成', //报告状态 + document_State: '未归档', //归档状态 + check_State:'检测完成',//检测状态 + reCheck_Num: 1, //复检次数 + }, + { + id: '7', //装置序号ID + name: '易司拓测试装置2', //设备名称 + dev_Type: 'E703A',//设备类型 + dev_Chns: 1, //设备通道数 + check_Result: '不合格', //检测结果 + report_State: '已生成', //报告状态 + document_State: '未归档', //归档状态 + check_State:'检测完成',//检测状态 + reCheck_Num: 1, //复检次数 + }, + { + id: '8', //装置序号ID + name: '山大电力测试装置1', //设备名称 + dev_Type: 'SDL-3002C',//设备类型 + dev_Chns: 1, //设备通道数 + check_Result: '不合格', //检测结果 + report_State: '已生成', //报告状态 + document_State: '未归档', //归档状态 + check_State:'检测完成',//检测状态 + reCheck_Num: 1, //复检次数 + }, + { + id: '9', //装置序号ID + name: '山大电力测试装置2', //设备名称 + dev_Type: 'SDL-3002C',//设备类型 + dev_Chns: 1, //设备通道数 + check_Result: '不合格', //检测结果 + report_State: '已生成', //报告状态 + document_State: '未归档', //归档状态 + check_State:'检测完成',//检测状态 + reCheck_Num: 2, //复检次数 + }, ] - + export default {data,plan_devicedata} \ No newline at end of file diff --git a/frontend/src/api/plan/planData.ts b/frontend/src/api/plan/planData.ts index e0c8a81..36f0909 100644 --- a/frontend/src/api/plan/planData.ts +++ b/frontend/src/api/plan/planData.ts @@ -150,6 +150,22 @@ const testErrSystDataList: Dict[] = [ }, ] +//父计划ID及名称 +const testFatherPlanList: Dict[] = [ + { + id: "1", + label: '检测计划1', + }, + { + id: "2", + label: '检测子计划2', + }, + { + id: "3", + label: '检测子计划1-2', + }, +] + const planData = ref([ { 'id': '1', @@ -172,7 +188,7 @@ const planData = ref([ 'error_Sys_Id':'2', 'test_State':'2', 'report_State':'2', - 'result':'2', + 'result':'0', }, { 'id': '3', @@ -182,9 +198,9 @@ const planData = ref([ 'dataSource_Id':'3', 'script_Id':'3', 'error_Sys_Id':'3', - 'test_State':'3', - 'report_State':'3', - 'result':'3', + 'test_State':'1', + 'report_State':'1', + 'result':'1', }, ]) @@ -310,4 +326,4 @@ const planData = ref([ // }, // ]) -export {planData,dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,testSoureDataList,testScriptDataList,testErrSystDataList} \ No newline at end of file +export {planData,dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,testSoureDataList,testScriptDataList,testErrSystDataList,testFatherPlanList} \ No newline at end of file diff --git a/frontend/src/api/plan/planList.ts b/frontend/src/api/plan/planList.ts index 5371ea5..5174c66 100644 --- a/frontend/src/api/plan/planList.ts +++ b/frontend/src/api/plan/planList.ts @@ -2,6 +2,7 @@ import http from "@/api"; //获取计划列表 export const getPlanList = (data: any) => { + return null; return http.post( "http://192.168.1.123:4523/m1/2573730-0-default/plan/planList/list", data, diff --git a/frontend/src/api/plan/static.json b/frontend/src/api/plan/static.json index f3de0c6..e4fc602 100644 --- a/frontend/src/api/plan/static.json +++ b/frontend/src/api/plan/static.json @@ -7,17 +7,17 @@ { "id": 4, "pid": 1, - "name": "检测计划1" + "name": "邯郸220kV团城站等4座站电能质量检测" }, { "id": 5, "pid": 1, - "name": "检测计划2" + "name": "衡水冀州光伏电站配套出口工程" }, { "id": 6, "pid": 1, - "name": "检测计划3" + "name": "深圳市中电软件有限公司委托送检" } ], "id": 1 @@ -28,17 +28,17 @@ { "id": 7, "pid": 2, - "name": "检测计划4" + "name": "沧州220kV留古等4座变电站电能质量检测" }, { "id": 8, "pid": 2, - "name": "检测计划5" + "name": "沧州供电公司110kV东光站等10台装置送检" }, { "id": 9, "pid": 2, - "name": "检测计划6" + "name": "保定分布式光伏电能质量监测试点" } ], "id": 2 @@ -49,12 +49,12 @@ { "id": 10, "pid": 3, - "name": "检测计划7" + "name": "邯郸2台安徽振兴终端送检" }, { "id": 11, "pid": 3, - "name": "检测计划8" + "name": "北京2024现场检测" } ], "id": 3 diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index 5238608..ed35fa6 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -3,6 +3,7 @@