This commit is contained in:
24kycj
2025-05-22 16:51:00 +08:00
parent f41246730e
commit 795a7cec7d
3 changed files with 12 additions and 8 deletions
+6 -3
View File
@@ -109,10 +109,13 @@ export default {
req_type: 1, req_type: 1,
req_info: {} req_info: {}
}) })
.then(() => {}) .then(() => {
.catch(() => {})
that.errors.splice(that.errors.indexOf(data.message), 1)
notifyInstance.close() notifyInstance.close()
setTimeout(() => {
that.errors.splice(that.errors.indexOf(data.message), 1)
}, 10000);
})
.catch(() => {})
} }
} }
}, },
+3 -3
View File
@@ -58,7 +58,7 @@ const Error = {
6: '设备处于离线状态', 6: '设备处于离线状态',
7: '设备门盖被打开', 7: '设备门盖被打开',
8: '从打印托盘上抓取光盘错误,请手动将光盘取走', 8: '从打印托盘上抓取光盘错误,请手动将光盘取走',
9: '多张光盘被抓取或移动,请手动取出多余的光盘。', 9: '多张光盘被抓取或移动,请手动取出所有光盘后重试。',
10: '从进盘仓到光驱的过程中,抓取错误,请手动将光盘放回进盘仓后重试。', 10: '从进盘仓到光驱的过程中,抓取错误,请手动将光盘放回进盘仓后重试。',
11: '从进盘仓到打印托盘的过程中,抓取错误,请手动将光盘放回进盘仓后重试。', 11: '从进盘仓到打印托盘的过程中,抓取错误,请手动将光盘放回进盘仓后重试。',
12: '从光驱到打印托盘的过程中,抓取错误,请手动将光盘放回光驱后重试。', 12: '从光驱到打印托盘的过程中,抓取错误,请手动将光盘放回光驱后重试。',
@@ -259,7 +259,7 @@ const defaultData = {
cd_list: [ cd_list: [
{ {
cd_pos: 2, // 设备位置 1:下光驱,2:上光驱 cd_pos: 2, // 设备位置 1:下光驱,2:上光驱
cd_status: 1, // 设备状态 0:无法确定光盘状态 ,1:没有光盘 , 2:光驱托盘打开, 3:光驱未准备好,4:光盘状态正常,光盘已插入 cd_status: 4, // 设备状态 0:无法确定光盘状态 ,1:没有光盘 , 2:光驱托盘打开, 3:光驱未准备好,4:光盘状态正常,光盘已插入
cd_taskid: '', // 当前任务id cd_taskid: '', // 当前任务id
dev_path: '', // 光驱路径 dev_path: '', // 光驱路径
dev_type: 1, // 光驱类型 dev_type: 1, // 光驱类型
@@ -461,7 +461,7 @@ const actions = {
let error = data.resp_info let error = data.resp_info
if (error.error) { if (error.error) {
let errors = error.error let errors = error.error
let continues = [8, 9, 10, 11, 12] let continues = [8, 9, 10, 11, 12, 19]
for (let i = 0; i < errors.length; i++) { for (let i = 0; i < errors.length; i++) {
setTimeout(() => { setTimeout(() => {
let req = continues.indexOf(errors[i]) > -1 ? 'continue_task' : '' let req = continues.indexOf(errors[i]) > -1 ? 'continue_task' : ''
+3 -2
View File
@@ -1514,11 +1514,11 @@ $red: #ff0000;
color: #fff; color: #fff;
text-align: center; text-align: center;
left: 15px; left: 15px;
bottom: 45px; top: 45px;
} }
.device_right_top_img_text1 { .device_right_top_img_text1 {
left: 0; left: 0;
bottom: 0; top: 86px;
padding: 6px; padding: 6px;
font-size: 18px; font-size: 18px;
width: 100%; width: 100%;
@@ -1526,6 +1526,7 @@ $red: #ff0000;
} }
.device_right_top_span { .device_right_top_span {
font-size: 14px; font-size: 14px;
line-height: 20px;
color: #ff0000; color: #ff0000;
text-align: center; text-align: center;
} }