日志测试

This commit is contained in:
sjl
2025-02-26 19:20:02 +08:00
parent f2fd0b078e
commit d225391248

View File

@@ -186,6 +186,8 @@ watch(testStatus, function (newValue, oldValue) {
})
watch(webMsgSend, function (newValue, oldValue) {
console.log('webMsgSend---code', newValue.code)
console.log('webMsgSend---requestId', newValue.requestId)
if (newValue.code == 10520) {
ElMessageBox.alert('报文解析异常!', '初始化失败', {
confirmButtonText: '确定',
@@ -259,6 +261,8 @@ watch(webMsgSend, function (newValue, oldValue) {
})
TableInit();
} else {
console.log('显示东西code', newValue.code)
console.log('显示东西requestId', newValue.requestId)
switch (newValue.requestId) {
case 'yjc_ytxjy':
@@ -517,6 +521,7 @@ watch(webMsgSend, function (newValue, oldValue) {
//出错系数检测初始化
const TableInit = () => {
console.log("出错系数检测",active.value);
emit('update:testStatus', 'test_init_fail')
// isButtonDisabled.value = false; // 恢复按钮
// for (let i = 0; i < channel.value.length; i++) {
@@ -531,6 +536,7 @@ const TableInit = () => {
//按行图标转动
const tableLoading = (type: string, desc: string) => {
console.log('转动',channel.value)
for (let i = 0; i < channel.value.length; i++) {
const targetArrayRef = tableDataMap.get(i);
@@ -546,6 +552,8 @@ const tableLoading = (type: string, desc: string) => {
}
}
}
}else{
console.log('不转了')
}
}
}
@@ -702,7 +710,7 @@ const handleSubmit = async () => {
// if (!response) {
// return;
// }
// }()
isButtonDisabled.value = true; // 禁用按钮
tableLoading('big', '系数下装')