愛招飛數控中心幫助手冊 愛招飛數控中心幫助手冊
  • FastERP-1 (opens new window)
  • Smart (opens new window)
  • PinToo (opens new window)
  • FastWeb (opens new window)
  • FastERP-2 企業管理系統 (opens new window)
  • 印染業ERP (opens new window)
  • 工廠終端機 (opens new window)
  • TARS (opens new window)
  • MARS (opens new window)
  • TaskRunner (opens new window)
  • Flying (opens new window)
  • FastDesk (opens new window)
  • HiDesk (opens new window)
  • HiNAT (opens new window)
  • FastBPM (opens new window)
  • 數控基礎資料
  • 設備故障診斷
  • 設備最佳運轉效益
  • 企業智能助手SmeGPT
  • 燈號管理
  • 戰情室
  • 能源管理 (opens new window)
  • 人車定位
  • 戰情指揮系統
  • FastERP-1 (opens new window)
  • FastWeb (opens new window)
  • Smart (opens new window)
  • PinToo (opens new window)
  • Flying (opens new window)
  • TARS (opens new window)
  • 通用功能

    • Report (opens new window)
    • Script (opens new window)
    • Echarts (opens new window)
    • Chart (opens new window)
    • DB Install (opens new window)
  • FastERP-1 (opens new window)
  • Smart (opens new window)
  • PinToo (opens new window)
  • FastWeb (opens new window)
  • FastERP-2 企業管理系統 (opens new window)
  • 印染業ERP (opens new window)
  • 工廠終端機 (opens new window)
  • TARS (opens new window)
  • MARS (opens new window)
  • TaskRunner (opens new window)
  • Flying (opens new window)
  • FastDesk (opens new window)
  • HiDesk (opens new window)
  • HiNAT (opens new window)
  • FastBPM (opens new window)
  • 數控基礎資料
  • 設備故障診斷
  • 設備最佳運轉效益
  • 企業智能助手SmeGPT
  • 燈號管理
  • 戰情室
  • 能源管理 (opens new window)
  • 人車定位
  • 戰情指揮系統
  • FastERP-1 (opens new window)
  • FastWeb (opens new window)
  • Smart (opens new window)
  • PinToo (opens new window)
  • Flying (opens new window)
  • TARS (opens new window)
  • 通用功能

    • Report (opens new window)
    • Script (opens new window)
    • Echarts (opens new window)
    • Chart (opens new window)
    • DB Install (opens new window)
  • 數控中心-戰情室幫助主頁
  • 學習手冊

    • 安裝配置
    • 快速上手
    • 界面介紹
    • 功能介紹
    • 工具配置項
    • 數據集連線
    • 訊息推送
      • 1. RestAPI
      • 2. 元件推送示例
        • 2.1. 文字plus
        • 2.2. 圖片plus
        • 2.3. 表格plus
        • 2.4. 提示框
        • 2.5. 文字plus2
        • 2.6. 滾動文字plus
    • 大屏報表製作示例
目录

訊息推送

# 訊息推送

  DashBoard支援API方式發送資訊修改大屏報表顯示內容。目前支援的工具為 文字plus、圖片plus 、表格plus、提示框、文字plus2 與 滾動文字plus。

  DashBoard中提供了兩個RestAPI,分別用於查詢連線的客戶端、向指定客戶端推送資訊。

# 1. RestAPI

  獲取所有大螢幕的連線列表:

http://192.168.0.195:9095/socketC/getIPList
1

  返回的示例如下:

{"code":"200","message":"操作成功","args":null,"data":["192.168.0.3","192.168.0.11"]}
1

  返回的示例中 data 為連線的客戶端的IP地址。不同的客戶端連線的IP地址不同。客戶端是以IP區分的。

  接下來可使用post方式提交:

http://192.168.0.195:9095/socketC/pushToWeb
1

  其中Body部分的內容示例如下:

{
    "ip":"192.168.0.194",   //推送的目標客戶端的IP地址
    "data":{
       "marquee-plus":"歡迎使用分診叫號系統",  //鍵名為滾動文字plus的欄位名稱,鍵值為顯示的文字內容。
       "toast":{                              //鍵值為提示框的欄位名稱
         "isShow":true,                       //是否顯示
         "text":"請T001號王小鴨虎到1號診室就診!" //顯示的文字內容
        }
    }
}
1
2
3
4
5
6
7
8
9
10

  由上述示例可知,Body部分的json格式如下:

{
    "ip":"xxx.xxx.xxx.xxx"   //推送的目標客戶端的IP地址
    "data":{                 //推送的數據,不同的工具欄可推送的內容不同
        ...
    }
}
1
2
3
4
5
6

  支援推送的元件的各示例如下:

# 2. 元件推送示例

# 2.1. 文字plus

  假設有一個欄位名稱為 text-plus 的文字plus 工具。推送的格式如下:

{
    "ip":"192.168.0.194",   //推送的目標客戶端的IP地址
    "data":{
        "text-plus":"歡迎使用分診叫號系統",  //鍵名為文字plus的欄位名稱,鍵值為顯示的文字內容。
    }
}
1
2
3
4
5
6

# 2.2. 圖片plus

  假設有一個欄位名稱為 image-plus 的圖片plus 工具。推送的格式如下:

{
    "ip":"192.168.0.194",   //推送的目標客戶端的IP地址
    "data":{
        "image-plus":"http://xxx.xxx/image.jpg",  //鍵名為圖片plus的欄位名稱,鍵值為顯示的圖片URL地址。
    }
}
1
2
3
4
5
6

# 2.3. 表格plus

  假設有一個欄位名稱為 table-plus 的表格plus 工具。表格列的欄位包含 code 、name 推送的格式如下:

{
    "ip":"192.168.0.194",   //推送的目標客戶端的IP地址
    "data":{
        "table-plus":[     //鍵名為表格plus的欄位名稱,鍵值為顯示的表格json序列。
         {
            "code":"111",   //code name 為表格中自定義的欄位名稱
            "name":"222"
         },
         {
            "code":"333",
            "name":"444"
         }
        ]  
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# 2.4. 提示框

  假設有一個欄位名稱為 toast 的提示框工具。推送的格式如下:

{
    "ip":"192.168.0.194",   //推送的目標客戶端的IP地址
    "data":{
       "toast":{                              //鍵值為提示框的欄位名稱
         "isShow":true,                       //是否顯示
         "text":"請T001號王小鴨虎到1號診室就診!" //顯示的文字內容
        }
    }
}
1
2
3
4
5
6
7
8
9

# 2.5. 文字plus2

  推送格式與 文字plus 相同。

# 2.6. 滾動文字plus

  推送格式與 文字plus 相同。

數據集連線
大屏報表製作示例

← 數據集連線 大屏報表製作示例→

Copyright © 2021-2025 愛招飛IsoFace | ALL Rights Reserved
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式