更新生产环境的基础URL,优化设备名称匹配逻辑,删除不再使用的文件
| | |
| | | } |
| | | |
| | | else if (process.env.NODE_ENV == 'production') { |
| | | axios.defaults.baseURL = 'http://192.168.5.251:9291/'; |
| | | axios.defaults.baseURL = 'http://192.168.20.251:9291/'; |
| | | } |
| | | if (!axios.defaults.baseURL.endsWith('/')) { |
| | | axios.defaults.baseURL+="/"; |
| | |
| | | const num = reactive([]) |
| | | onMounted(() => { |
| | | eventBus.on('locationData', eventData => { |
| | | if (eventData.deviceName === "å容3线å
¥åºè¾é线" || eventData.deviceName === "å容åºåºè¾é线") { |
| | | if (eventData.deviceName.indexOf("å容") != -1) { |
| | | if (devices.length <= 0) { |
| | | devices.push({ deviceName: eventData.deviceName, data: eventData.data, childDeviceCode: eventData.data.childDeviceCode }); |
| | | } |
| | |
| | | const devices = reactive([]); |
| | | const num = reactive([]) |
| | | onMounted(() => { |
| | | eventBus.on('stackerData', eventData => { |
| | | eventBus.on('locationData', eventData => { |
| | | // console.log(eventData) |
| | | |
| | | console.log(eventData) |
| | | |
| | | if (eventData.deviceName === "èåå
¥åºè¾é线") { |
| | | if (eventData.deviceName.indexOf("èå") != -1) { |
| | | if (devices.length <= 0) { |
| | | devices.push({ deviceName: eventData.deviceName, data: eventData.data, childDeviceCode: eventData.data.childDeviceCode }); |
| | | } |
| | |
| | | } |
| | | }) |
| | | eventBus.on('stackerData', eventData => { |
| | | if (eventData.deviceName == "èå1å·å åæº") { |
| | | if (eventData.deviceName.indexOf("èå") != -1) { |
| | | if (Stackers.length == 0) { |
| | | Stackers.push({ deviceName: eventData.deviceName, data: eventData.data }); |
| | | } |
| | |
| | | }) |
| | | }) |
| | | </script> |
| | | <style scoped> |
| | | |
| | | </style> |
| | | <style scoped></style> |
| | |
| | | |
| | | console.log(eventData) |
| | | |
| | | if (eventData.deviceName === "常温å
¥åºè¾é线") { |
| | | if (eventData.deviceName.indexOf("常温") != -1) { |
| | | if (devices.length <= 0) { |
| | | devices.push({ deviceName: eventData.deviceName, data: eventData.data, childDeviceCode: eventData.data.childDeviceCode }); |
| | | } |
| | |
| | | } |
| | | }) |
| | | eventBus.on('stackerData', eventData => { |
| | | if (eventData.deviceName.indexOf("常温")) { |
| | | if (eventData.deviceName.indexOf("常温") != -1) { |
| | | if (Stackers.length == 0) { |
| | | Stackers.push({ deviceName: eventData.deviceName, data: eventData.data }); |
| | | } |
| | |
| | | }) |
| | | }) |
| | | </script> |
| | | <style scoped> |
| | | |
| | | </style> |
| | | <style scoped></style> |