From 69a4cbbbc26efb2a321853c30166438dfb5005ec Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Thu, 5 Dec 2024 20:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testSource/components/testSourcePopup.vue | 2 +- frontend/src/views/plan/planList/index.vue | 22 ++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/machine/testSource/components/testSourcePopup.vue b/frontend/src/views/machine/testSource/components/testSourcePopup.vue index 5d57457..a146f61 100644 --- a/frontend/src/views/machine/testSource/components/testSourcePopup.vue +++ b/frontend/src/views/machine/testSource/components/testSourcePopup.vue @@ -123,7 +123,7 @@ const close = () => { const save = () => { try { dialogFormRef.value?.validate(async (valid: boolean) => { - console.log("11111111111111111") + if (valid) { if (formContent.value.id) { await updateTestSource(formContent.value); diff --git a/frontend/src/views/plan/planList/index.vue b/frontend/src/views/plan/planList/index.vue index a0ed3b6..f91154b 100644 --- a/frontend/src/views/plan/planList/index.vue +++ b/frontend/src/views/plan/planList/index.vue @@ -55,6 +55,7 @@ :dialogTitle="dialogTitle" :is-read-only="isReadOnly" @update:visible="dialogFormVisible = $event" + ref='testSourcePopup' /> []>([ render: scope => { return (
- showData(scope.row.testSourceName)}> + showTestSource(scope.row.testSourceName)}> {scope.row.testSourceName} @@ -193,7 +195,7 @@ const columns = reactive[]>([ fieldNames: { label: 'label', value: 'id' }, render: scope => { return ( - showData(scope.row.script_Id)}> + showTestScript(scope.row.script_Id)}> {getScriptName(scope.row.script_Id)} ) @@ -278,15 +280,25 @@ function isVisible(row: Plan.PlanAndSourceBO) { else return true } + +const errorStandardPopup = ref() function showData(row: string) { - detail_dialogTitle.value = row - detail_dialogFormVisible.value = true // 显示对话框 - + errorStandardPopup.value?.open(row, row) // router.push({ // path: "/machine/device", // query: { id: row } // }); +} +const testSourcePopup = ref() +function showTestSource(row: string) { + + //testSourcePopup.value?.open('view', row,'模拟式') +} + +function showTestScript(row: string) { + + } function handleFiles(event: Event) {