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) {