diff --git a/frontend/src/api/check/interface/index.ts b/frontend/src/api/check/interface/index.ts index 7c1b305..5764b48 100644 --- a/frontend/src/api/check/interface/index.ts +++ b/frontend/src/api/check/interface/index.ts @@ -43,13 +43,11 @@ export namespace CheckData { } // 用来描述检测脚本类型 - export interface ScriptItem { - id: string, - code?: string, + export interface ScriptItem{ scriptName: string, - children?: ScriptItem[] + scriptType?: string, + children?: ScriptItem1[] } - // 用来描述 通道检测结果 export enum ChnCheckResultEnum { UNKNOWN = -1, @@ -62,7 +60,7 @@ export namespace CheckData { //用来描述 某个脚本测试项对所有通道的检测结果 export interface ScriptChnItem { - scriptId: string + scriptType: string scriptName?: string //可以不要该属性,有点多余 // 设备 @@ -93,7 +91,7 @@ export namespace CheckData { * 用于描述 脚本检测结果展示的按钮类型 */ export interface ScriptChnViewItem { - scriptId: string, + scriptType: string, scriptName?: string //脚本项名称,可以不要该属性,有点多余 // 设备 diff --git a/frontend/src/api/check/test/index.ts b/frontend/src/api/check/test/index.ts index 3c6cc0d..1bb3622 100644 --- a/frontend/src/api/check/test/index.ts +++ b/frontend/src/api/check/test/index.ts @@ -9,7 +9,7 @@ export const getBigTestItem = (planId: string) => { * @param params 当为scriptType为null时,表示查询所有脚本类型,否则只查询指定脚本类型。当为chnNum为-1时,表示查询所有通道,否则只查询指定通道。 */ export const getFormData = (params: { - scriptId: string, + planId: string, deviceId: string, chnNum: string, scriptType: string | null diff --git a/frontend/src/stores/modules/check.ts b/frontend/src/stores/modules/check.ts index f7ea995..e48e74e 100644 --- a/frontend/src/stores/modules/check.ts +++ b/frontend/src/stores/modules/check.ts @@ -9,6 +9,7 @@ export const useCheckStore = defineStore("check", { state: () => ({ devices: Array(), planId: String(""), + planCode: String(""), scriptId: String(""), }), @@ -27,6 +28,10 @@ export const useCheckStore = defineStore("check", { this.planId = planId }, + setPlanCode(planCode: string) { + this.planCode = planCode + }, + setScriptId(scriptId: string) { this.scriptId = scriptId } diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index 0ba81a5..098f501 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -34,14 +34,14 @@
- -