/** @jsx h */ // scada-2d 组态最小工程:泵→罐→连线 + 测点长表驱动(液位/状态色)。 // 数据用 mock 连接实时演示;改接真实源只需换 connectorType 与 tables。 import { defineProject, h } from '../scripts/vptsx/runtime' export default defineProject({ name: "组态:泵站液位监控", connections: [ { "uid": "conn_pts", "name": "测点长表", "type": "mock", "connectorType": "mock", "config": { "refreshInterval": 2000, "mock": { "mode": "walk", "seed": 42 } }, "tables": [ { "uid": "tbl_pts", "name": "points", "eventName": "data", "eventParams": "", "fields": [ { "uid": "f_key", "sourceField": "key", "alias": "键", "type": "string" }, { "uid": "f_val", "sourceField": "value", "alias": "值", "type": "number" } ] } ] } ], connectionData: { "conn_pts": [ { "tableId": "tbl_pts", "tableName": "points", "fields": [ { "uid": "f_key", "sourceField": "key", "alias": "键", "type": "string" }, { "uid": "f_val", "sourceField": "value", "alias": "值", "type": "number" } ], "rows": [ { "f_key": "PUMP1_STATE", "f_val": 1 }, { "f_key": "TANK1_LEVEL", "f_val": 62 } ] } ] }, screen: ( ), })