修改检测脚本页面
This commit is contained in:
@@ -72,9 +72,9 @@ import { useRouter } from 'vue-router'
|
||||
import { getPqScriptList, updatePqScript, deletePqScript } from '@/api/device/testScript/index'
|
||||
import { computed, reactive, ref } from 'vue'
|
||||
import { useModeStore } from '@/stores/modules/mode' // 引入模式 store
|
||||
defineOptions({
|
||||
name: 'testScript'
|
||||
})
|
||||
// defineOptions({
|
||||
// name: 'testScript'
|
||||
// })
|
||||
const router = useRouter()
|
||||
const comparisonPopup = ref()
|
||||
const testScriptPopup = ref()
|
||||
@@ -145,14 +145,15 @@ const openDialog = (titleType: string, row: Partial<TestScript.ResTestScript> =
|
||||
comparisonPopup.value?.open(titleType, row, modeStore.currentMode)
|
||||
} else {
|
||||
if (titleType == 'add') {
|
||||
// valueTypePopup.value?.open(titleType, row,modeStore.currentMode)
|
||||
// testScriptPopup.value?.open('新增检测脚本', {}, row, modeStore.currentMode, '')
|
||||
router.push({
|
||||
path: '/machine/testScriptAdd',
|
||||
state: { title: '新增检测脚本', row: row, mode: modeStore.currentMode }
|
||||
state: { title: '新增检测脚本', row: '', mode: modeStore.currentMode }
|
||||
})
|
||||
} else {
|
||||
testScriptPopup.value?.open(titleType, row, modeStore.currentMode, '')
|
||||
router.push({
|
||||
path: '/machine/testScriptAdd',
|
||||
state: { title: '编辑检测脚本', row: JSON.stringify(row), mode: modeStore.currentMode }
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user