From c4e2da8d67eee56bec0b8f67a6ef27500b53e0ed Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Mon, 6 Jan 2025 09:21:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E7=95=8C=E9=9D=A2=EF=BC=8C=E7=B3=BB?= =?UTF-8?q?=E6=95=B0=E6=A0=A1=E5=87=86=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/device/interface/device.ts | 1 - frontend/src/api/home/channelsTest/index.ts | 6 + .../src/api/home/interface/channelsTest.ts | 22 ++++ .../src/components/echarts/pie/default.vue | 4 + .../views/home/components/channelsTest.vue | 37 +++--- .../home/components/channelsTestTable.vue | 59 ++++++--- frontend/src/views/home/components/table.vue | 33 +++--- frontend/src/views/home/components/tree.vue | 33 ++++-- frontend/src/views/home/tabs/dashboard.vue | 3 +- .../components/testProjectPopup.vue | 14 ++- .../components/testScriptDipTab.vue | 6 +- .../components/testScriptFlickerTab.vue | 11 +- .../components/testScriptHarmTab.vue | 65 +++++++--- .../components/testScriptVolCurTab.vue | 112 +++++++++++++++--- .../testScript/components/valueTypePopup.vue | 2 +- 15 files changed, 302 insertions(+), 106 deletions(-) create mode 100644 frontend/src/api/home/channelsTest/index.ts create mode 100644 frontend/src/api/home/interface/channelsTest.ts diff --git a/frontend/src/api/device/interface/device.ts b/frontend/src/api/device/interface/device.ts index 8143ff8..8135666 100644 --- a/frontend/src/api/device/interface/device.ts +++ b/frontend/src/api/device/interface/device.ts @@ -44,7 +44,6 @@ export namespace Device { checkState?: number| null; //检测状态 checkResult?: number| null; //检测结果 reportState?: number| null; //报告状态 - documentState?: number| null; //归档状态 reportPath?: string| null; //报告路径 qRCode?: string| null; //设备关键信息二维码 reCheckNum: number; //复检次数 diff --git a/frontend/src/api/home/channelsTest/index.ts b/frontend/src/api/home/channelsTest/index.ts new file mode 100644 index 0000000..6a51f42 --- /dev/null +++ b/frontend/src/api/home/channelsTest/index.ts @@ -0,0 +1,6 @@ +import http from "@/api"; +import {ChannelsTest} from "@/api/home/interface/channelsTest"; + +export const getBigTestItem = () => { + return http.get(''); +} \ No newline at end of file diff --git a/frontend/src/api/home/interface/channelsTest.ts b/frontend/src/api/home/interface/channelsTest.ts new file mode 100644 index 0000000..92c6d18 --- /dev/null +++ b/frontend/src/api/home/interface/channelsTest.ts @@ -0,0 +1,22 @@ +// 系数校准模块 +export namespace ChannelsTest { + + // 系数校准列表 + export interface CoefficientVO { + monitorNum: string;//监测点序号 + desc: string;//描述 + aVuData:string;//电压通道A数据 + aVuXi:string;//电压通道A系数 + bVuData:string;//电压通道B数据 + bVuXi:number;//电压通道B系数 + cVuData:number;//电压通道C数据 + cVuXi?:string;//电压通道C系数 + aIeData?:string;//电流通道A数据 + aIeXi?:string;//电流通道A系数 + bIeData?:string;//电流通道B数据 + bIeXi?:string;//电流通道B系数 + cIeData?:string;//电流通道C数据 + cIeXi?:string;//电流通道C系数 + } + +} \ No newline at end of file diff --git a/frontend/src/components/echarts/pie/default.vue b/frontend/src/components/echarts/pie/default.vue index d4d5af7..d151910 100644 --- a/frontend/src/components/echarts/pie/default.vue +++ b/frontend/src/components/echarts/pie/default.vue @@ -35,6 +35,7 @@ const init = () => { isRadius: false, //是否圆角 isSpace: false, //是否显示间隔 isLabelLine: true, //是否显示引导线 + titleFontSize: '18px', //标题字体大小 ...props.customData, }; legendData.value = { @@ -49,6 +50,9 @@ const init = () => { title: { text: customData.value.title, left: customData.value.textAlign, + textStyle: { + fontSize: customData.value.titleFontSize, // 使用 titleFontSize 属性 + }, }, legend:legendData.value, // legend: { diff --git a/frontend/src/views/home/components/channelsTest.vue b/frontend/src/views/home/components/channelsTest.vue index 5e663b6..726cd95 100644 --- a/frontend/src/views/home/components/channelsTest.vue +++ b/frontend/src/views/home/components/channelsTest.vue @@ -22,33 +22,33 @@ @@ -146,12 +146,11 @@ const webMsgSend = toRef(props, 'webMsgSend'); watch(webMsgSend,function (newValue,oldValue){ switch (newValue.requestId){ + } }) - - // 定义 TableDataItem 接口 interface TableDataItem { id: string; @@ -169,8 +168,6 @@ interface TableDataItem { IbChannel?: number | string; IcData?: number | string; IcChannel?: number | string; - Result?: string | string; - updateTime?: string; } const dataTemplates3 = [ @@ -542,6 +539,7 @@ const activities = [ qualified.value = 0 active.value = 0 dialogVisible.value = false + editableTabsValue.value = '0' } const getTableDataForChannel = (index: number): any[] => { @@ -616,6 +614,7 @@ const checkForErrors = (data: TableDataItem[]): boolean => { }; const handleSubmit = async () => { + debugger // 初始化 currentTableData let isTimer2Completed = false; // 初始化 loadingStates 为 true @@ -843,6 +842,10 @@ const initializeTableData = (templates: TableDataItem[], index: number): Ref diff --git a/frontend/src/views/home/components/channelsTestTable.vue b/frontend/src/views/home/components/channelsTestTable.vue index 3fbccd4..b12e8e7 100644 --- a/frontend/src/views/home/components/channelsTestTable.vue +++ b/frontend/src/views/home/components/channelsTestTable.vue @@ -7,7 +7,6 @@ max-height="400px" :span-method="objectSpanMethod"> - @@ -21,7 +20,13 @@ - + + @@ -47,7 +51,13 @@ - + + - + + - + + - + + - + + diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index f2b590a..9f00552 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -18,7 +18,7 @@