浏览代码

车间页面不展示

huhao@jgai.com 2 月之前
父节点
当前提交
3ab215e215

+ 3 - 2
product/phone/src/main/ets/common/constants/BusinessConstant.ets

@@ -2,8 +2,9 @@ import HashMap from '@ohos.util.HashMap';
 
 export default class BusinessConstant {
 
-  static readonly mqttSubscribeTopic: string = 'station11/data/devices';
-  static readonly mqttPublishTopic: string = 'station11/cmd/devices';
+  static readonly mqttSubscribeTopic: string = 'station13/data/devices';
+  static readonly mqttSubscribeTopic2: string = 'station11/data/devices';
+  static readonly mqttPublishTopic: string = 'station13/cmd/devices';
   static readonly mqttUrl: string = 'tcp://192.168.1.3';
   // 每个clientId不重复
   static readonly mqttClientId: string = 'station11' + Date.now().toString(36);

+ 6 - 5
product/phone/src/main/ets/pages/EntryView.ets

@@ -184,9 +184,9 @@ struct EntryView {
           this.navbarCard('应用', $r('app.media.navbar_application'), $r('app.media.navbar_application1'), 4, ()=>{
             this.selectNavbar = 4
           })
-          this.navbarCard('车间', $r('app.media.navbar_workshop'), $r('app.media.navbar_workshop1'), 5, ()=>{
-            this.selectNavbar = 5
-          })
+          // this.navbarCard('车间', $r('app.media.navbar_workshop'), $r('app.media.navbar_workshop1'), 5, ()=>{
+          //   this.selectNavbar = 5
+          // })
         }
         .width('7.8%')
         .height('100%')
@@ -201,9 +201,10 @@ struct EntryView {
             DeviceView()
           } else if (this.selectNavbar === 4) {
             ApplicationView()
-          } else if (this.selectNavbar === 5) {
-            WorkshopView()
           }
+          // else if (this.selectNavbar === 5) {
+          //   WorkshopView()
+          // }
         }
         .width('92.2%')
         .height('100%')