This commit is contained in:
sjl
2025-02-26 11:40:31 +08:00
parent cbe41d80ce
commit 934162875c
2 changed files with 7 additions and 10 deletions

View File

@@ -149,10 +149,6 @@ const tableDataMap = new Map<number, Ref<ChannelsTest.CoefficientVO[]>>([]);
const currentStepStatus = ref<'error' | 'finish' | 'wait' | 'success' | 'process'>('finish'); const currentStepStatus = ref<'error' | 'finish' | 'wait' | 'success' | 'process'>('finish');
const webMsgSend = toRef(props, 'webMsgSend'); const webMsgSend = toRef(props, 'webMsgSend');
onBeforeMount(() => { onBeforeMount(() => {
// 初始化 // 初始化
initData() initData()
@@ -343,7 +339,7 @@ watch(webMsgSend, function (newValue, oldValue) {
} }
break; break;
case 'Coefficient_Check': case 'Coefficient_Check':
console.log("Coefficient_Checkactive", active.value); // console.log("Coefficient_Checkactive", active.value);
switch (newValue.operateCode) { switch (newValue.operateCode) {
case 'big_end'://大电压,电流下装 case 'big_end'://大电压,电流下装
active.value++; active.value++;

View File

@@ -51,7 +51,7 @@
暂停中 暂停中
</el-button> </el-button>
<el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right" <el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right"
v-if="nextStepText!== '下一步' && (ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'||ActiveStatue==='pause_timeout')" v-if="nextStepText !== '下一步' && (ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'||ActiveStatue==='pause_timeout')"
@click="nextStep"> @click="nextStep">
{{ nextStepText }} {{ nextStepText }}
</el-button> </el-button>
@@ -178,10 +178,10 @@ const handleSubmit = () => {
let deviceIds = checkStore.devices.map((item) => item.deviceId) let deviceIds = checkStore.devices.map((item) => item.deviceId)
let planId = checkStore.plan.id let planId = checkStore.plan.id
if (!dataSocket.socketServe.connected) { // if (!dataSocket.socketServe.connected) {
ElMessage.error('webSocket连接中断') // ElMessage.error('webSocket连接中断')
return // return
} // }
switch (stepsActive.value) { switch (stepsActive.value) {
case 1: case 1:
startPreTest({ startPreTest({
@@ -294,6 +294,7 @@ watch(ActiveStatue, function (newValue, oldValue) {
nextStep() // 实现自动点击,进入下一个测试内容 nextStep() // 实现自动点击,进入下一个测试内容
handleSubmit() handleSubmit()
} }
}) })
const sendPause = () => { const sendPause = () => {