diff --git a/frontend/src/api/check/interface/index.ts b/frontend/src/api/check/interface/index.ts
index 6c80cb8..22e5d7d 100644
--- a/frontend/src/api/check/interface/index.ts
+++ b/frontend/src/api/check/interface/index.ts
@@ -53,6 +53,7 @@ export namespace CheckData {
export interface TreeItem{
scriptTypeName: string|null,
sourceDesc: string|null,
+ harmNum: number|null,
index:number|null,
fly:number|null,
children?: TreeItem[]
diff --git a/frontend/src/api/check/test/index.ts b/frontend/src/api/check/test/index.ts
index b5a6ace..7ba437c 100644
--- a/frontend/src/api/check/test/index.ts
+++ b/frontend/src/api/check/test/index.ts
@@ -24,7 +24,7 @@ export const getFormData = (params: {
*/
export const getTreeData = (params: {
scriptId: string,
- deviceId: string,
+ devId: string,
devNum: string,
scriptType: string | null,
code: string
diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue
index 07f0427..cab5bc3 100644
--- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue
+++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue
@@ -150,7 +150,7 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
// 发起请求,查询该测试项的检测结果
const {data: resTreeDataTemp}: { data: CheckData.TreeItem[] } = await getTreeData({
scriptId: checkStore.scriptId,
- deviceId,
+ devId: deviceId,
devNum: formContent.chnNum + '',
scriptType,
code: checkStore.planCode
@@ -161,36 +161,42 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
{
scriptTypeName: "频率准确度检测",
sourceDesc: null,
+ harmNum: null,
index: null,
fly: null,
children: [
{
scriptTypeName: "额定条件下频率准确度测试",
sourceDesc: null,
+ harmNum: null,
index: null,
fly: null,
children: [
{
scriptTypeName: "频率=42.5Hz",
sourceDesc: "频率=42.5Hz",
+ harmNum: null,
index: 11,
fly: 1,
},
{
scriptTypeName: "频率=50Hz",
sourceDesc: "频率=50Hz",
+ harmNum: null,
index: 12,
fly: 2,
},
{
scriptTypeName: "频率=50.05Hz",
sourceDesc: "频率=50.05Hz",
+ harmNum: null,
index: 13,
fly: 1,
},
{
scriptTypeName: "频率=57.5Hz",
sourceDesc: "频率=57.5Hz",
+ harmNum: null,
index: 14,
fly: 2,
}
@@ -199,18 +205,21 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
{
scriptTypeName: "单影响量下频率准确度测试",
sourceDesc: null,
+ harmNum: null,
index: null,
fly: null,
children: [
{
scriptTypeName: "电压幅值对频率测量的影响",
sourceDesc: null,
+ harmNum: null,
index: null,
fly: null,
children: [
{
scriptTypeName: "10%Un对频率=50.05Hz的影响",
sourceDesc: "10%Un对频率=50.05Hz的影响",
+ harmNum: null,
index: null,
fly: 1,
}
@@ -219,12 +228,14 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
{
scriptTypeName: "谐波对频率测量的影响",
sourceDesc: null,
+ harmNum: null,
index: null,
fly: null,
children: [
{
scriptTypeName: "叠加多次谐波对频率=50.05Hz的影响",
sourceDesc: "叠加多次谐波对频率=50.05Hz的影响",
+ harmNum: null,
index: null,
fly: 2,
}
diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue
index f7925ee..415c82d 100644
--- a/frontend/src/views/home/components/test.vue
+++ b/frontend/src/views/home/components/test.vue
@@ -24,6 +24,12 @@
:icon="Failed"
disabled>预检测失败
+