mqtt地址变更

This commit is contained in:
2025-05-13 16:36:04 +08:00
parent c5a23e5913
commit a310124bb2
2 changed files with 10 additions and 2 deletions

View File

@@ -180,12 +180,18 @@ export default {
},
// 执行mqtt消息动作
doMqttAction(objData) {
const that = this
const { SiteNo, ComNo, LabelCode, Time } = objData
if (!LabelCode) {
this.showWarningMessage(2, '扫描结果为空!')
return
}
// TODO 打印
// const _topic = emqxUtil.BackEndTopic
// const jsonStr = {
// Path: 'C:\\Users\\Administrator\\Desktop\\label\\DOAN_Test\\奥迪PPC模板\\02S外标签.btw',
// }
// that.mqttClient.publish(_topic.SiteLabelPrint + '/' + SiteNo, JSON.stringify(jsonStr))
this.$refs.WorkOrderCardRef.setMqttMessage(LabelCode, ComNo, SiteNo)
},
},