调整bug

This commit is contained in:
24kycj
2025-05-13 15:52:13 +08:00
parent 944eae1948
commit 73cca88ed3
3 changed files with 64 additions and 21 deletions
+56 -17
View File
@@ -185,6 +185,10 @@ export default {
{
id: 3,
name: '进入运输模式'
},
{
id: 5,
name: '进入循环模式'
}
],
refreshTime: 10,
@@ -344,6 +348,10 @@ export default {
{
id: 3,
name: '进入运输模式'
},
{
id: 5,
name: '进入循环模式'
}
]
}
@@ -365,26 +373,34 @@ export default {
switch (e.id) {
case 1:
// 校准设备
that
.$confirm('请在打印机托盘放入一张光盘,点击确定后将自动校准打印机', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
that.$store
.dispatch('chat/websocketsend', {
req_name: 'openPrinterClay',
req_type: 2,
req_info: {}
})
.then(() => {
that.$store
.dispatch('chat/websocketsend', {
req_name: 'CaliPrinter',
req_type: 2,
req_info: {
cali_num: 2
}
that
.$confirm('请在打印机托盘放入一张光盘,点击确定后将自动校准打印机', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.$message({
message: '执行成功',
type: 'success'
})
that.$store
.dispatch('chat/websocketsend', {
req_name: 'CaliPrinter',
req_type: 2,
req_info: {
cali_num: 2
}
})
.then(() => {
that.$message({
message: '执行成功',
type: 'success'
})
})
})
})
break
@@ -507,7 +523,7 @@ export default {
that.$store
.dispatch('chat/websocketsend', {
req_name: 'CaliPrinterHead',
req_type: 1,
req_type: 2,
req_info: {}
})
.then(() => {
@@ -658,6 +674,29 @@ export default {
})
})
break
case 5:
// 进入循环模式
that
.$confirm('请确保已经取掉左右光盘桶托架,点击确定后设备将进入循环模式', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.$store
.dispatch('chat/websocketsend', {
req_name: 'CycleMode',
req_type: 2,
req_info: {}
})
.then(() => {
that.$message({
message: '执行成功',
type: 'success'
})
})
})
break
}
},
cdChange(index, e) {