@cpzxrobot/sdk 1.3.70 → 1.3.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/device_gateway.ts +10 -0
- package/dist/device_gateway.js +10 -0
- package/package.json +1 -1
package/device_gateway.ts
CHANGED
|
@@ -75,6 +75,16 @@ export class DeviceGateway extends Object {
|
|
|
75
75
|
filters: Map<string, DeviceFilter<any>>;
|
|
76
76
|
public normalFilter: NormalGateway;
|
|
77
77
|
context: Cpzxrobot;
|
|
78
|
+
public categories = [
|
|
79
|
+
{ id: 0, name: '网关',order: 4 }, //排序时网关优先级不高
|
|
80
|
+
{ id: 1, name: '传感器',order: 1 },
|
|
81
|
+
{ id: 2, name: '执行器',order: 2 },
|
|
82
|
+
{ id: 3, name: 'AI设备',order: 3 },
|
|
83
|
+
{ id: 4, name: '业务数据',order: 5 },
|
|
84
|
+
{ id: 5, name: '设备参数',order: 6 },
|
|
85
|
+
{ id: 8, name: '生产设备',order: 7 },
|
|
86
|
+
{ id: 9, name: '设备部件',order: 8 },
|
|
87
|
+
];
|
|
78
88
|
|
|
79
89
|
get v2() {
|
|
80
90
|
return {
|
package/dist/device_gateway.js
CHANGED
|
@@ -149,6 +149,16 @@ class DeviceGateway extends Object {
|
|
|
149
149
|
}
|
|
150
150
|
constructor(context) {
|
|
151
151
|
super();
|
|
152
|
+
this.categories = [
|
|
153
|
+
{ id: 0, name: '网关', order: 4 }, //排序时网关优先级不高
|
|
154
|
+
{ id: 1, name: '传感器', order: 1 },
|
|
155
|
+
{ id: 2, name: '执行器', order: 2 },
|
|
156
|
+
{ id: 3, name: 'AI设备', order: 3 },
|
|
157
|
+
{ id: 4, name: '业务数据', order: 5 },
|
|
158
|
+
{ id: 5, name: '设备参数', order: 6 },
|
|
159
|
+
{ id: 8, name: '生产设备', order: 7 },
|
|
160
|
+
{ id: 9, name: '设备部件', order: 8 },
|
|
161
|
+
];
|
|
152
162
|
this.maintenanceLevels = this.generateFunctionsForDict('maintenance-levels');
|
|
153
163
|
this.maintenanceTypes = this.generateFunctionsForDict('maintenance-types');
|
|
154
164
|
this.maintenanceFeedbackTypes = this.generateFunctionsForDict('maintenance-feedback-types');
|