正式检测代码提交

This commit is contained in:
2025-01-15 19:27:33 +08:00
parent 8fc1d1ffc9
commit ab02f8f1b3

View File

@@ -51,7 +51,11 @@
<div class="div-log"> <div class="div-log">
<p v-for="(item, index) in step4InitLog" :key="index" <p v-for="(item, index) in step4InitLog" :key="index"
:style="{ color: item.type === 'error' ? '#F56C6C' : 'var(--el-text-color-regular)' }"> :style="{ color: item.type === 'error' ? '#F56C6C' : 'var(--el-text-color-regular)' }">
{{ item.log }} <br/> {{ item.log.split('&&')[0] }}
<br v-if="item.log.includes('&&')">
{{ item.log.split('&&')[1] }}
<br/>
</p> </p>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -441,14 +445,14 @@ watch(webMsgSend, function (newValue, oldValue) {
if (newValue.code == 10200) { if (newValue.code == 10200) {
step4InitLog.value.push({ step4InitLog.value.push({
type: 'info', type: 'info',
log: '源已接通!', log: '源参数下发成功,等待校验中.....',
}) })
} else if (newValue.code == 10201) { } else if (newValue.code == 10201) {
step4.value = 'process' step4.value = 'process'
step4InitLog.value = [{ step4InitLog.value = [{
type: 'wait', type: 'wait',
log: '正在接通源.....', log: '源参数下发中.....',
}]; }];
} else if (newValue.code == 10552) { } else if (newValue.code == 10552) {
ElMessage.error("存在已经初始化步骤,已经自动关闭,请重新发起检测!") ElMessage.error("存在已经初始化步骤,已经自动关闭,请重新发起检测!")
@@ -470,9 +474,11 @@ watch(webMsgSend, function (newValue, oldValue) {
if (newValue.data.includes('不合格')) { if (newValue.data.includes('不合格')) {
type = 'error' type = 'error'
} }
newValue.data.split('<br/>')
step4InitLog.value.push({ step4InitLog.value.push({
type: type, type: type,
log: '相序校验:' + newValue.data, log:newValue.data,
}) })
} else if (newValue.code == 10201) { } else if (newValue.code == 10201) {
@@ -488,7 +494,7 @@ watch(webMsgSend, function (newValue, oldValue) {
log: '相序校验未通过!', log: '相序校验未通过!',
}) })
ts.value = 'error' ts.value = 'error'
}else if (newValue.code == 25001) { } else if (newValue.code == 25001) {
step4.value = 'success' step4.value = 'success'
step5.value = 'success' step5.value = 'success'
step4InitLog.value.push({ step4InitLog.value.push({