微调
This commit is contained in:
@@ -11,6 +11,7 @@ export const useCheckStore = defineStore("check", {
|
||||
devices: Array<CheckData.Device>(),
|
||||
plan: Object<Plan.ResPlan>(),
|
||||
selectTestItems: Object<CheckData.SelectTestItem>({preTest: true, timeTest: true, channelsTest: true, test: true}),
|
||||
checkType:1
|
||||
}),
|
||||
|
||||
getters: {},
|
||||
@@ -32,6 +33,9 @@ export const useCheckStore = defineStore("check", {
|
||||
},
|
||||
setSelectTestItems(selectTestItems: CheckData.SelectTestItem) {
|
||||
this.selectTestItems = selectTestItems
|
||||
},
|
||||
setCheckType(checkType: number) {
|
||||
this.checkType = checkType
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -61,6 +61,7 @@ const handleStart = () => {
|
||||
if (count === 0) {
|
||||
ElMessage.warning('请选择测试内容!')
|
||||
} else {
|
||||
checkStore.setCheckType(0)
|
||||
checkStore.setSelectTestItems({...formContent})
|
||||
handleClose()
|
||||
emit('openTestDialog')
|
||||
|
||||
@@ -1006,6 +1006,8 @@ const handleTest = async (val: string) => {
|
||||
channelsTest.value?.open(channelsSelection.value, props.plan)
|
||||
return
|
||||
} else {
|
||||
// 一键检测
|
||||
checkStore.setCheckType(1)
|
||||
checkStore.initSelectTestItems()
|
||||
openTestDialog()
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<el-dialog :title="dialogTitle" :model-value="dialogVisible" :before-close="beforeClose" @close="handleClose" width="1200px" height="1000px"
|
||||
draggable>
|
||||
<el-dialog :title="dialogTitle" :model-value="dialogVisible" :before-close="beforeClose" @close="handleClose" width="1200px" height="1000px" draggable>
|
||||
|
||||
<div class="steps-container">
|
||||
<el-steps class="test-head-steps" simple :active="stepsActiveIndex-1" process-status="finish" finish-status="success">
|
||||
|
||||
Reference in New Issue
Block a user