From 977a99876794b8d41c3c78f1a7ece63c2db52e3f Mon Sep 17 00:00:00 2001 From: GYYM <704080176@qq.com> Date: Mon, 18 Nov 2024 22:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E8=BF=87=E7=A8=8B=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=B1=95=E7=A4=BA=E9=A1=B5=E9=9D=A2=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E7=BB=98=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/plan/interface/index.ts | 2 + frontend/src/api/plan/planData.ts | 83 +++- .../authority/user/components/userPopup.vue | 3 + .../home/components/changeErrSysPopup.vue | 134 ------ .../views/home/components/channelsTest.vue | 149 +++++++ .../home/components/channelsTestTable.vue | 157 +++++++ .../src/views/home/components/preTest.vue | 227 ++++++++++ frontend/src/views/home/components/table.vue | 46 +- frontend/src/views/home/components/test.vue | 159 +++++++ .../src/views/home/components/testPopup.vue | 420 ++++++++++++++++++ .../src/views/home/components/timeTest.vue | 183 ++++++++ frontend/src/views/home/tabs/dashboard.vue | 6 + frontend/src/views/plan/autoTest/index.vue | 4 +- .../plan/planList/components/planPopup.vue | 30 +- frontend/src/views/plan/planList/index.vue | 37 +- 15 files changed, 1469 insertions(+), 171 deletions(-) delete mode 100644 frontend/src/views/home/components/changeErrSysPopup.vue create mode 100644 frontend/src/views/home/components/channelsTest.vue create mode 100644 frontend/src/views/home/components/channelsTestTable.vue create mode 100644 frontend/src/views/home/components/preTest.vue create mode 100644 frontend/src/views/home/components/test.vue create mode 100644 frontend/src/views/home/components/testPopup.vue create mode 100644 frontend/src/views/home/components/timeTest.vue diff --git a/frontend/src/api/plan/interface/index.ts b/frontend/src/api/plan/interface/index.ts index d2df439..215f870 100644 --- a/frontend/src/api/plan/interface/index.ts +++ b/frontend/src/api/plan/interface/index.ts @@ -27,6 +27,8 @@ export namespace Plan { // 检测计划 + 检测源 export interface PlanAndSourceBO extends PlanBO { testSourceName: string;//计划所属检测源 + source_Id: string[]; + device_Id?: string[]; testSourceList?: string[];//临时测试 } // // 检测计划列表 diff --git a/frontend/src/api/plan/planData.ts b/frontend/src/api/plan/planData.ts index 50b5caf..7f8a923 100644 --- a/frontend/src/api/plan/planData.ts +++ b/frontend/src/api/plan/planData.ts @@ -165,12 +165,86 @@ const testFatherPlanList: Dict[] = [ label: '检测子计划1-2', }, ] - + +//检测源ID及名称 +const sourceDataList: Dict[] = [ + { + id: "1", + label: '标准源-福禄克-6100A', + }, + { + id: "2", + label: '标准源-昂立-PF2', + }, + { + id: "3", + label: '标准源-丹迪克-DKLN1', + }, + { + id: "4", + label: '标准源-博电源-PQC600A', + }, + { + id: "5", + label: '高精度设备-PQV520-1', + }, + { + id: "6", + label: '高精度设备-PQV520-2', + }, + { + id: "7", + label: '高精度设备-PQV520-3', + }, + { + id: "8", + label: '高精度设备-PQV520-4', + }, +] + +//被检设备ID及名称 +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([ { 'id': '1', 'name': '检测计划1', 'pattern':'1', + "source_Id" : ['1'], "testSourceName":'标准源-福禄克-6100A', 'dataSource_Id':'1', 'script_Id':'1', @@ -178,12 +252,12 @@ const planData = ref([ 'test_State':'1', 'report_State':'1', 'result':'1', - }, { 'id': '2', 'name': '检测计划2', 'pattern':'1', + "source_Id" : ['5','6','7','8'], "testSourceName":'高精度设备-PQV520-1', 'father_Plan_Id':'1', 'dataSource_Id':'2', @@ -193,13 +267,14 @@ const planData = ref([ 'report_State':'2', 'result':'0', "testSourceList":[ - '高精度设备-PQV520-2','高精度设备-PQV520-3','高精度设备-PQV520-3' + '高精度设备-PQV520-2','高精度设备-PQV520-3','高精度设备-PQV520-4' ] }, { 'id': '3', 'name': '检测子计划3', 'pattern':'1', + "source_Id" : ['3'], "testSourceName":'标准源-丹迪克-DKLN1', 'father_Plan_Id':'1', 'dataSource_Id':'3', @@ -370,4 +445,4 @@ const planData = ref([ // }, // ]) -export {planData,dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,testSoureDataList,testScriptDataList,testErrSystDataList,testFatherPlanList} \ No newline at end of file +export {planData,dictPattern,dictTestState,dictReportState,dictResult,testPlanDataList,sourceDataList,deviceDataList,testSoureDataList,testScriptDataList,testErrSystDataList,testFatherPlanList} \ No newline at end of file diff --git a/frontend/src/views/authority/user/components/userPopup.vue b/frontend/src/views/authority/user/components/userPopup.vue index e7f4451..3d9ca0a 100644 --- a/frontend/src/views/authority/user/components/userPopup.vue +++ b/frontend/src/views/authority/user/components/userPopup.vue @@ -157,6 +157,9 @@ if (data.id) { IsPasswordShow.value = false formContent.value = { ...data } + + console.log(formContent.value,111); + } else { IsPasswordShow.value = true resetFormContent() diff --git a/frontend/src/views/home/components/changeErrSysPopup.vue b/frontend/src/views/home/components/changeErrSysPopup.vue deleted file mode 100644 index 0f2b31d..0000000 --- a/frontend/src/views/home/components/changeErrSysPopup.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - \ No newline at end of file diff --git a/frontend/src/views/home/components/channelsTest.vue b/frontend/src/views/home/components/channelsTest.vue new file mode 100644 index 0000000..e81e795 --- /dev/null +++ b/frontend/src/views/home/components/channelsTest.vue @@ -0,0 +1,149 @@ + + + diff --git a/frontend/src/views/home/components/channelsTestTable.vue b/frontend/src/views/home/components/channelsTestTable.vue new file mode 100644 index 0000000..ed6d8df --- /dev/null +++ b/frontend/src/views/home/components/channelsTestTable.vue @@ -0,0 +1,157 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/views/home/components/preTest.vue b/frontend/src/views/home/components/preTest.vue new file mode 100644 index 0000000..6f45ea8 --- /dev/null +++ b/frontend/src/views/home/components/preTest.vue @@ -0,0 +1,227 @@ + + + diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index 0ec25a7..220675f 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -53,28 +53,30 @@ > 手动检测 自动检测 - 不合格项复检 - 全部复检 - 批量生成 - 批量归档 @@ -108,7 +110,7 @@ 生成归档 --> + + + @@ -157,10 +167,11 @@ import { ElMessage, ElMessageBox, ElLoading} from "element-plus"; import ProTable from "@/components/ProTable/index.vue"; import { type ProTableInstance, type ColumnProps } from '@/components/ProTable/interface' import { - Search,View,EditPen + Search,View,EditPen,Clock,ChatLineRound,ChatLineSquare,ChatDotSquare,Postcard,Notebook } from "@element-plus/icons-vue"; import { getPlanList } from "@/api/plan/planList"; import deviceDataList from '@/api/device/device/deviceData' +import testPopup from "./testPopup.vue"; import { log } from "console"; import { isVisible } from "element-plus/es/utils"; import { reactive, ref } from "vue"; @@ -168,6 +179,17 @@ const router = useRouter(); const value1 = ref(""); const value2 = ref(""); const tableHeight = ref(0); +const dialogFormVisible = ref(false) +const dialogTitle = ref('手动检测') +const dialogForm = ref({ + id: '', + name: '', + standard_Name:'', + standard_Time:'', + dev_Level:'', + enable:1, + state:1, +}); //console.log(window.innerHeight, "+++++++++"); tableHeight.value = window.innerHeight - 630; const deviceData = deviceDataList.plan_devicedata @@ -695,9 +717,13 @@ const handleTest = () => { //自动检测 if (form.value.activeTabs === 0) { ElMessage.success("手动检测"); - router.push({ - path: "/plan/autoTest", - }); + + dialogTitle.value = '手动检测'; + dialogFormVisible.value = true; // 打开对话框 + + // router.push({ + // path: "/plan/autoTest", + // }); } else { ElMessage.warning("手动检测"); router.push({ diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue new file mode 100644 index 0000000..a3a7e75 --- /dev/null +++ b/frontend/src/views/home/components/test.vue @@ -0,0 +1,159 @@ + + + diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue new file mode 100644 index 0000000..67ce020 --- /dev/null +++ b/frontend/src/views/home/components/testPopup.vue @@ -0,0 +1,420 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/views/home/components/timeTest.vue b/frontend/src/views/home/components/timeTest.vue new file mode 100644 index 0000000..4aa6f5a --- /dev/null +++ b/frontend/src/views/home/components/timeTest.vue @@ -0,0 +1,183 @@ + + + diff --git a/frontend/src/views/home/tabs/dashboard.vue b/frontend/src/views/home/tabs/dashboard.vue index 023aef2..bda9807 100644 --- a/frontend/src/views/home/tabs/dashboard.vue +++ b/frontend/src/views/home/tabs/dashboard.vue @@ -158,6 +158,12 @@ const tabsList = ref([ img: "/src/assets/images/plan/static/3.svg", checked: false, }, + { + label: "数据查询", + value: 5, + img: "/src/assets/images/plan/static/5.svg", + checked: false, + }, { label: "设备归档", value: 4, diff --git a/frontend/src/views/plan/autoTest/index.vue b/frontend/src/views/plan/autoTest/index.vue index f7af5da..2637b5c 100644 --- a/frontend/src/views/plan/autoTest/index.vue +++ b/frontend/src/views/plan/autoTest/index.vue @@ -448,8 +448,8 @@ ElMessageBox.confirm( '检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作', '检测完成', { - confirmButtonText: 'OK', - cancelButtonText: 'Cancel', + confirmButtonText: '确定', + cancelButtonText: '取消', type: 'success', } ) diff --git a/frontend/src/views/plan/planList/components/planPopup.vue b/frontend/src/views/plan/planList/components/planPopup.vue index 42bdca3..e242de2 100644 --- a/frontend/src/views/plan/planList/components/planPopup.vue +++ b/frontend/src/views/plan/planList/components/planPopup.vue @@ -6,7 +6,7 @@ - + + + + + + - + + + + +