优化woker
This commit is contained in:
@@ -157,6 +157,36 @@ const defaultData = {
|
||||
// start_time: '2024-04-01 12:00:00',
|
||||
// finish_time: '2024-04-01 12:00:00',
|
||||
// task_status: 2
|
||||
// },
|
||||
// {
|
||||
// task_size: 100000,
|
||||
// cd_type: 2,
|
||||
// start_time: '2024-04-01 12:00:00',
|
||||
// finish_time: '2024-04-01 12:00:00',
|
||||
// task_status: 2
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// task_uuid: '202042152',
|
||||
// task_name: '复制任务',
|
||||
// finish_freq: 2,
|
||||
// total_freq: 10,
|
||||
// task_status: 2,
|
||||
// ass_task: [
|
||||
// {
|
||||
// task_size: 100000,
|
||||
// cd_type: 2,
|
||||
// start_time: '2024-04-01 12:00:00',
|
||||
// finish_time: '2024-04-01 12:00:00',
|
||||
// task_status: 2
|
||||
// },
|
||||
// {
|
||||
// task_size: 100000,
|
||||
// cd_type: 2,
|
||||
// start_time: '2024-04-01 12:00:00',
|
||||
// finish_time: '2024-04-01 12:00:00',
|
||||
// task_status: 2
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
@@ -364,7 +394,7 @@ const actions = {
|
||||
for (let i = 0; i < errors.length; i++) {
|
||||
if (errors[i] == 1) {
|
||||
setTimeout(() => {
|
||||
commit('setData', { name: 'printer_error', data: {type: 'error', confirm: Error1[i], req: 'continue_task' } })
|
||||
commit('setData', { name: 'printer_error', data: {type: 'error', notify: Error1[i] } })
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
@@ -374,7 +404,7 @@ const actions = {
|
||||
for (let i = 0; i < errors.length; i++) {
|
||||
if (errors[i] == 1) {
|
||||
setTimeout(() => {
|
||||
commit('setData', { name: 'printer_error', data: {type: 'error', confirm: Error2[i], req: 'continue_task' } })
|
||||
commit('setData', { name: 'printer_error', data: {type: 'error', notify: Error2[i] } })
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
@@ -384,7 +414,7 @@ const actions = {
|
||||
for (let i = 0; i < errors.length; i++) {
|
||||
if (errors[i] == 1) {
|
||||
setTimeout(() => {
|
||||
commit('setData', { name: 'printer_error', data: {type: 'error', confirm: Error3[i], req: 'continue_task' } })
|
||||
commit('setData', { name: 'printer_error', data: {type: 'error', notify: Error3[i] } })
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user