源未开启外联机错误
This commit is contained in:
@@ -327,67 +327,67 @@ watch(webMsgSend, function (newValue, oldValue) {
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}报文解析异常!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:报文解析异常!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10521) {
|
} else if (newValue.code == 10521) {
|
||||||
ElMessageBox.alert('程控源參数有误!', '初始化失败', {
|
ElMessageBox.alert('程控源參数有误!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}程控源參数有误!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:程控源參数有误!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10522) {
|
} else if (newValue.code == 10522) {
|
||||||
ElMessageBox.alert('测试项解析有误!', '初始化失败', {
|
ElMessageBox.alert('测试项解析有误!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}测试项解析有误!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:测试项解析有误!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10523) {
|
} else if (newValue.code == 10523) {
|
||||||
ElMessageBox.alert('源连接失败!', '初始化失败', {
|
ElMessageBox.alert('源连接失败!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}源连接失败!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源连接失败!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10524) {
|
} else if (newValue.code == 10524) {
|
||||||
ElMessageBox.alert('获取源控制权失败!', '初始化失败', {
|
ElMessageBox.alert('获取源控制权失败!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}获取源控制权失败!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:获取源控制权失败!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10525) {
|
} else if (newValue.code == 10525) {
|
||||||
ElMessageBox.alert('重置源失败!', '初始化失败', {
|
ElMessageBox.alert('重置源失败!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}重置源失败!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:重置源失败!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10527) {
|
} else if (newValue.code == 10527) {
|
||||||
ElMessageBox.alert('源未进行初始化!', '初始化失败', {
|
ElMessageBox.alert('源未进行初始化!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}源未进行初始化!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源未进行初始化!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10528) {
|
} else if (newValue.code == 10528) {
|
||||||
ElMessageBox.alert('目标源有误(该用户已控制其他源,在关闭前无法操作新的源)!', '初始化失败', {
|
ElMessageBox.alert('目标源有误(该用户已控制其他源,在关闭前无法操作新的源)!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}目标源有误(该用户已控制其他源,在关闭前无法操作新的源)!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:目标源有误(该用户已控制其他源,在关闭前无法操作新的源)!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10529) {
|
} else if (newValue.code == 10529) {
|
||||||
ElMessageBox.alert('源状态有误,无法响应报文(例如源处于输出状态,无法响应初始化报文)!', '初始化失败', {
|
ElMessageBox.alert('源状态有误,无法响应报文(例如源处于输出状态,无法响应初始化报文)!', '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}源状态有误,无法响应报文(例如源处于输出状态,无法响应初始化报文)!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源状态有误,无法响应报文(例如源处于输出状态,无法响应初始化报文)!`})
|
||||||
emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10550) {
|
} else if (newValue.code == 10550) {
|
||||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}设备连接异常!`})
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}设备连接异常!`})
|
||||||
// emit('update:testStatus', 'test_init_fail')
|
emit('update:testStatus', 'test_init_fail')
|
||||||
} else if (newValue.code == 10551) {
|
} else if (newValue.code == 10551) {
|
||||||
ElMessageBox.alert(`${newValue.data}设备触发报告异常!`, '初始化失败', {
|
ElMessageBox.alert(`${newValue.data}设备触发报告异常!`, '初始化失败', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
@@ -407,6 +407,16 @@ watch(webMsgSend, function (newValue, oldValue) {
|
|||||||
emit('update:testStatus', 'test_recheck')
|
emit('update:testStatus', 'test_recheck')
|
||||||
} else {
|
} else {
|
||||||
switch (newValue.requestId) {
|
switch (newValue.requestId) {
|
||||||
|
case 'server_error':
|
||||||
|
if (newValue.operateCode === 'server_error') {
|
||||||
|
ElMessageBox.alert('源连接失败!', '初始化失败', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源连接失败!`})
|
||||||
|
emit('update:testStatus', 'test_init_fail')
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'formal_real': // 正式测试
|
case 'formal_real': // 正式测试
|
||||||
switch (newValue.operateCode) {
|
switch (newValue.operateCode) {
|
||||||
case "stop_timeout":
|
case "stop_timeout":
|
||||||
|
|||||||
Reference in New Issue
Block a user