自动检测/手动检测页面

This commit is contained in:
zhujiyan
2024-10-10 17:47:55 +08:00
parent 507ea137e4
commit e060939bc1
30 changed files with 3176 additions and 116 deletions

View File

@@ -79,13 +79,13 @@
>
<el-button
type="primary"
@click="handleDetection"
@click="handleTest"
v-if="form.activeTabs === 0"
>启动自动检测</el-button
>
<el-button
type="primary"
@click="handleDetection"
@click="handleTest"
v-if="form.activeTabs === 1"
>启动手动检测</el-button
>
@@ -509,12 +509,18 @@ const changeActiveTabs = (val: number) => {
form.value.activeTabs = val;
};
//启动自动检测/手动检测
const handleDetection = () => {
const handleTest = () => {
//自动检测
if (form.value.activeTabs === 0) {
ElMessage.success("自动检测");
}else{
router.push({
path: "/plan/autoTest",
});
} else {
ElMessage.warning("手动检测");
router.push({
path: "/plan/preTest",
});
}
};
onMounted(() => {