调整bug
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
</el-tooltip>
|
||||
<div class="flex_box top_left_option">
|
||||
<div class="top_left_text">完成刻录数:</div>
|
||||
<div class="top_left_num">{{ taskNum[0] }}</div>
|
||||
<div class="top_left_num top_left_num1">{{ taskNum[0] }}</div>
|
||||
</div>
|
||||
<div class="flex_box top_left_option">
|
||||
<div class="top_left_text">废弃刻录数:</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<div class="flex_box top_left_option">
|
||||
<div class="top_left_text">错误:</div>
|
||||
<div class="top_left_num">{{ taskNum[2] }}</div>
|
||||
<div class="top_left_num top_left_num1">{{ taskNum[2] }}</div>
|
||||
</div>
|
||||
<div class="top_left_line"></div>
|
||||
</div>
|
||||
@@ -287,7 +287,7 @@
|
||||
<el-table-column prop="task_status" label="状态">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.task_status == 5 && scope.row.task_uuid">
|
||||
<el-dropdown trigger="click" @command="(e) => workCommand(scope.$index, e)">
|
||||
<el-dropdown trigger="click" @command="(e) => workCommand(scope.row, e)">
|
||||
<div class="el-dropdown-link flex_box work_status_box">
|
||||
<div>{{ statusList[scope.row.task_status] }}</div>
|
||||
<i class="el-icon-caret-bottom"></i>
|
||||
@@ -929,25 +929,25 @@ export default {
|
||||
},
|
||||
// 新建作业
|
||||
showWork() {
|
||||
if (!that.workStatus) {
|
||||
that.$message({
|
||||
message: '请先连接服务',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (that.printer_info.is_set_cddev == 1) {
|
||||
that.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
that.goSet('/manage?type=cddev')
|
||||
}).catch(() => {
|
||||
// if (!that.workStatus) {
|
||||
// that.$message({
|
||||
// message: '请先连接服务',
|
||||
// type: 'warning'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
// if (that.printer_info.is_set_cddev == 1) {
|
||||
// that.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
|
||||
// confirmButtonText: '确定',
|
||||
// cancelButtonText: '取消',
|
||||
// type: 'warning'
|
||||
// }).then(() => {
|
||||
// that.goSet('/manage?type=cddev')
|
||||
// }).catch(() => {
|
||||
|
||||
});
|
||||
return
|
||||
}
|
||||
// });
|
||||
// return
|
||||
// }
|
||||
that.isNew = true
|
||||
that.workShow = true
|
||||
that.$nextTick(() => {
|
||||
@@ -1006,22 +1006,22 @@ export default {
|
||||
that.showAll = !that.showAll
|
||||
},
|
||||
// 下拉操作
|
||||
workCommand(index, e) {
|
||||
workCommand(row, e) {
|
||||
if (e === 'retry') {
|
||||
that.workRetry(index)
|
||||
that.workRetry(row)
|
||||
}
|
||||
if (e === 'cancel') {
|
||||
that.workCancel(index)
|
||||
that.workCancel(row)
|
||||
}
|
||||
},
|
||||
// 作业重试
|
||||
workRetry(e) {
|
||||
workRetry(row) {
|
||||
that.$store
|
||||
.dispatch('chat/websocketsend', {
|
||||
req_name: 'retry_task',
|
||||
req_type: 1,
|
||||
req_info: {
|
||||
task_uuid: that.task_list[e].task_uuid
|
||||
task_uuid: row.task_uuid
|
||||
}
|
||||
})
|
||||
.then(() => {
|
||||
@@ -1029,9 +1029,9 @@ export default {
|
||||
message: '重试成功',
|
||||
type: 'success'
|
||||
})
|
||||
that.task_list[e].task_status = 1
|
||||
if (that.task_list[e].ass_task && that.task_list[e].ass_task.length > 0) {
|
||||
that.task_list[e].ass_task.forEach((item) => {
|
||||
row.task_status = 1
|
||||
if (row.ass_task && row.ass_task.length > 0) {
|
||||
row.ass_task.forEach((item) => {
|
||||
item.task_status = 1
|
||||
})
|
||||
}
|
||||
@@ -1113,13 +1113,17 @@ $red: #ff0000;
|
||||
cursor: pointer;
|
||||
padding: 0 16px;
|
||||
height: 40px;
|
||||
background: rgba(0, 195, 37, 0.12);
|
||||
border: 2px solid rgba(0, 195, 37, 0.32);
|
||||
border: 2px solid #999;
|
||||
color: #333;
|
||||
border-radius: 6px;
|
||||
margin-right: 16px;
|
||||
font-weight: 500;
|
||||
font-size: 18px;
|
||||
color: #00c325;
|
||||
&:hover {
|
||||
background: rgba(0, 195, 37, 0.12);
|
||||
border: 2px solid rgba(0, 195, 37, 0.32);
|
||||
color: #00c325;
|
||||
}
|
||||
img {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
@@ -1412,9 +1416,11 @@ $red: #ff0000;
|
||||
.device_run_input {
|
||||
width: calc(100% - 140px);
|
||||
height: 44px;
|
||||
border: 2px solid #00bcc3;
|
||||
overflow: hidden;
|
||||
border-radius: 6px 0 0 6px;
|
||||
border-style: solid;
|
||||
border-width: 1px 0 1px 1px;
|
||||
border-color: #999;
|
||||
.el-select {
|
||||
width: 100%;
|
||||
padding-left: 10px;
|
||||
@@ -1441,12 +1447,20 @@ $red: #ff0000;
|
||||
.device_run_btn {
|
||||
width: 140px;
|
||||
height: 44px;
|
||||
background: #00bcc3;
|
||||
background: transparent;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: #999;
|
||||
border-radius: 0px 6px 6px 0px;
|
||||
font-weight: 500;
|
||||
font-size: 19px;
|
||||
margin: 0;
|
||||
color: #ffffff;
|
||||
color: #333;
|
||||
&:hover {
|
||||
background: rgba(0, 195, 37, 0.12);
|
||||
border: 2px solid rgba(0, 195, 37, 0.32);
|
||||
color: #00c325;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1544,7 +1558,7 @@ $red: #ff0000;
|
||||
.notice_all {
|
||||
font-weight: 500;
|
||||
font-size: 19px;
|
||||
color: #00c325;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
img {
|
||||
width: 28px;
|
||||
|
||||
Reference in New Issue
Block a user