新增操作
This commit is contained in:
@@ -157,6 +157,10 @@ export default {
|
||||
{
|
||||
id: 5,
|
||||
name: '校准打印头'
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: '清洗打印头'
|
||||
}
|
||||
],
|
||||
actionList: [
|
||||
@@ -265,6 +269,10 @@ export default {
|
||||
{
|
||||
id: 5,
|
||||
name: '校准打印头'
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: '清洗打印头'
|
||||
}
|
||||
]
|
||||
this.cdOptions = [
|
||||
@@ -316,6 +324,10 @@ export default {
|
||||
{
|
||||
id: 5,
|
||||
name: '校准打印头'
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: '清洗打印头'
|
||||
}
|
||||
]
|
||||
this.cdOptions = [
|
||||
@@ -372,7 +384,7 @@ export default {
|
||||
let that = this
|
||||
switch (e.id) {
|
||||
case 1:
|
||||
// 校准设备
|
||||
// 校准打印机上的托盘
|
||||
that.$store
|
||||
.dispatch('chat/websocketsend', {
|
||||
req_name: 'openPrinterClay',
|
||||
@@ -512,9 +524,9 @@ export default {
|
||||
})
|
||||
break
|
||||
case 5:
|
||||
// 校准打印头
|
||||
// 校准墨盒上的打印头
|
||||
that
|
||||
.$confirm('请校准好打印头再点击确定', '温馨提示', {
|
||||
.$confirm('请在进盘仓放入一张空白的可打印光盘,再点击确定', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
@@ -534,6 +546,29 @@ export default {
|
||||
})
|
||||
})
|
||||
break
|
||||
case 6:
|
||||
// 清洗墨盒上的打印头
|
||||
that
|
||||
.$confirm('请在进盘仓放入一张空白的可打印光盘,再点击确定', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
that.$store
|
||||
.dispatch('chat/websocketsend', {
|
||||
req_name: 'CleanPrinterHead',
|
||||
req_type: 2,
|
||||
req_info: {}
|
||||
})
|
||||
.then(() => {
|
||||
that.$message({
|
||||
message: '执行成功',
|
||||
type: 'success'
|
||||
})
|
||||
})
|
||||
})
|
||||
break
|
||||
}
|
||||
},
|
||||
// 设置设备
|
||||
@@ -1081,3 +1116,56 @@ export default {
|
||||
font-size: 24px;
|
||||
}
|
||||
</style>
|
||||
t: 24px;
|
||||
}
|
||||
.cd_list {
|
||||
padding: 32px 0;
|
||||
.cd_item {
|
||||
padding: 12px 0;
|
||||
}
|
||||
.el-button {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.cd_name {
|
||||
font-size: 14px;
|
||||
color: #000;
|
||||
line-height: 24px;
|
||||
}
|
||||
.cd_r {
|
||||
gap: 24px;
|
||||
}
|
||||
}
|
||||
.cd_footer {
|
||||
gap: 24px;
|
||||
.cd_footer_btn1 {
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
background: #ffffff;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #000000;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
padding: 0;
|
||||
margin: 0 12px;
|
||||
}
|
||||
.cd_footer_btn2 {
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
background: #00c325;
|
||||
border-radius: 4px;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
padding: 0;
|
||||
margin: 0 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
::v-deep .el-dialog__title {
|
||||
font-size: 24px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user