coolcare-lite-scada-component 3.0.1 → 3.0.2
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/es/components/DialogHistory/index.css +22 -0
- package/es/components/DialogHistory/index.js +317 -83
- package/es/components/DialogImagePicker/GroupPanel/index.js +1 -1
- package/es/components/ECharts/index.js +31 -23
- package/es/components/Icon/index.js +1 -1
- package/es/components/ImageUploader/index.js +1 -1
- package/es/components/ModalChoosePoint/index.js +235 -0
- package/es/element/EleFan/Component.js +1 -1
- package/es/element/EleFanBySvg/index.js +3 -3
- package/es/element/EleImage/index.js +1 -1
- package/es/element/ElePointImage/index.js +1 -1
- package/es/element/ElePointValue/Component.js +10 -6
- package/es/element/ElePointValue/PropsSet/StatisticsPropsSet/index.js +77 -0
- package/es/element/ElePointValue/PropsSet/index.js +5 -1
- package/es/element/EleState/index.js +1 -1
- package/es/element/EleSwitch/Component.js +3 -4
- package/es/element/EleSwitch/index.css +3 -0
- package/es/element/PipeNodes/NodeBL/index.js +1 -1
- package/es/element/PipeNodes/NodeBR/index.js +1 -1
- package/es/element/PipeNodes/NodeBottom/index.js +1 -1
- package/es/element/PipeNodes/NodeCenter/index.js +1 -1
- package/es/element/PipeNodes/NodeHorizontal/index.js +1 -1
- package/es/element/PipeNodes/NodeLeft/index.js +1 -1
- package/es/element/PipeNodes/NodeRight/index.js +1 -1
- package/es/element/PipeNodes/NodeTL/index.js +1 -1
- package/es/element/PipeNodes/NodeTR/index.js +1 -1
- package/es/element/PipeNodes/NodeTop/index.js +1 -1
- package/es/element/PipeNodes/NodeVertical/index.js +1 -1
- package/es/element/type.d.ts +1 -0
- package/es/element/utils/pointWrite.js +6 -7
- package/es/pages/display/Player/index.js +104 -16
- package/es/pages/display/index.js +2 -2
- package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +8 -8
- package/es/pages/editor/PanelLeft/ImgGroup/index.js +1 -1
- package/es/pages/editor/PanelLeft/MetaEleList/listData.js +14 -14
- package/es/pages/editor/PanelLeft/PipeEleList/listData.js +11 -11
- package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +6 -6
- package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +4 -4
- package/es/pages/editor/PanelRight/components/FormLayer/index.js +12 -2
- package/es/pages/editor/index.js +15 -2
- package/es/services/gateway/Point.js +56 -7
- package/es/services/request.js +1 -1
- package/es/typings.d.ts +18 -4
- package/es/utils/date.js +7 -0
- package/package.json +3 -3
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/dd03192a3abc487aa7b91ad75d1be533.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: '/imgfile/iot/生产/组态图片/图片元素/834835fb0d60434d934eee07d18cfafc.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/40a74ebbf068410593fbc92442088fc7.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: '/imgfile/iot/生产/组态图片/图片元素/ad1218665b854070b21f5572e452c6ef.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: '/imgfile/iot/生产/组态图片/图片元素/fe66d6f5586742e3a9aad2782fb45d86.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/63831cb71bd24c47bb11b6e02d9e4c77.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/8e5f1deaf3a8466fa168588eaac664bc.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
package/es/element/type.d.ts
CHANGED
|
@@ -104,20 +104,19 @@ export function pointWrite(_x4) {
|
|
|
104
104
|
}
|
|
105
105
|
function _pointWrite() {
|
|
106
106
|
_pointWrite = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
107
|
-
var deviceId, value, pointId,
|
|
107
|
+
var query, deviceId, value, pointId, deviceInfo, pointInfo, writeFunction, res;
|
|
108
108
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
109
109
|
while (1) switch (_context3.prev = _context3.next) {
|
|
110
110
|
case 0:
|
|
111
|
-
|
|
112
|
-
deviceId = params.deviceId, value = params.value, pointId = params.pointId;
|
|
113
|
-
query = queryToObject(window.location.href); // 产品组态不能点位写入
|
|
111
|
+
query = queryToObject(window.location.href);
|
|
114
112
|
if (!(query.scene === 'product')) {
|
|
115
|
-
_context3.next =
|
|
113
|
+
_context3.next = 3;
|
|
116
114
|
break;
|
|
117
115
|
}
|
|
118
116
|
return _context3.abrupt("return");
|
|
119
|
-
case
|
|
120
|
-
//
|
|
117
|
+
case 3:
|
|
118
|
+
// eslint-disable-next-line prefer-const
|
|
119
|
+
deviceId = params.deviceId, value = params.value, pointId = params.pointId; // 如果没有 deviceId(device 场景下),则从 url query 里获取
|
|
121
120
|
if (!deviceId) {
|
|
122
121
|
if (query.scene === 'device') {
|
|
123
122
|
deviceId = parseInt(query.deviceId, 10);
|
|
@@ -26,9 +26,10 @@ import ModalFanDevicePoint from "../../../components/ModalFanDevicePoint";
|
|
|
26
26
|
import emitter from "../../../utils/events";
|
|
27
27
|
import { GetDevicePoint } from "../../../services/gateway/Device";
|
|
28
28
|
import "./index.css";
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
import { GetTdIndicatorAggregateData } from "../../../services/gateway/Point";
|
|
30
|
+
import dayjs from 'dayjs';
|
|
31
31
|
var Player = function Player(_ref) {
|
|
32
|
+
var _jsonConfig$pageConfi;
|
|
32
33
|
var jsonConfig = _ref.jsonConfig,
|
|
33
34
|
query = _ref.query,
|
|
34
35
|
onEvent = _ref.onEvent;
|
|
@@ -63,6 +64,9 @@ var Player = function Player(_ref) {
|
|
|
63
64
|
var mittMeta = useMemo(function () {
|
|
64
65
|
return getMittMeta(query);
|
|
65
66
|
}, [query]);
|
|
67
|
+
|
|
68
|
+
/** 刷新频率 */
|
|
69
|
+
var RefreshFrequency = ((jsonConfig === null || jsonConfig === void 0 ? void 0 : (_jsonConfig$pageConfi = jsonConfig.pageConfig) === null || _jsonConfig$pageConfi === void 0 ? void 0 : _jsonConfig$pageConfi.refreshFrequency) || 1.5 * 60) * 1000;
|
|
66
70
|
useEffect(function () {
|
|
67
71
|
window.scadaMode = 'player';
|
|
68
72
|
return function () {
|
|
@@ -71,11 +75,11 @@ var Player = function Player(_ref) {
|
|
|
71
75
|
}, []);
|
|
72
76
|
useEffect(function () {
|
|
73
77
|
if (jsonConfig) {
|
|
74
|
-
var _jsonConfig$
|
|
78
|
+
var _jsonConfig$pageConfi2, _window$parent;
|
|
75
79
|
var msg = {
|
|
76
80
|
event: 'scada-config-loaded',
|
|
77
81
|
payload: {
|
|
78
|
-
dimensions: (jsonConfig === null || jsonConfig === void 0 ? void 0 : (_jsonConfig$
|
|
82
|
+
dimensions: (jsonConfig === null || jsonConfig === void 0 ? void 0 : (_jsonConfig$pageConfi2 = jsonConfig.pageConfig) === null || _jsonConfig$pageConfi2 === void 0 ? void 0 : _jsonConfig$pageConfi2.dimensions) || {
|
|
79
83
|
width: 341,
|
|
80
84
|
height: 500
|
|
81
85
|
},
|
|
@@ -265,7 +269,13 @@ var Player = function Player(_ref) {
|
|
|
265
269
|
scadaId: scadaId
|
|
266
270
|
}
|
|
267
271
|
});
|
|
268
|
-
|
|
272
|
+
console.log('[186]-index.tsx', onEvent, {
|
|
273
|
+
event: 'freedom-scene-switch',
|
|
274
|
+
payload: {
|
|
275
|
+
scadaId: scadaId
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
case 2:
|
|
269
279
|
case "end":
|
|
270
280
|
return _context4.stop();
|
|
271
281
|
}
|
|
@@ -315,13 +325,13 @@ var Player = function Player(_ref) {
|
|
|
315
325
|
});
|
|
316
326
|
}, [query, mittMeta]);
|
|
317
327
|
useEffect(function () {
|
|
318
|
-
var _jsonConfig$
|
|
328
|
+
var _jsonConfig$pageConfi3, _graphRef$current3;
|
|
319
329
|
if (!wrapSize || !jsonConfig || !query) return;
|
|
320
|
-
if (query.zoomMode === 'width' && (jsonConfig === null || jsonConfig === void 0 ? void 0 : (_jsonConfig$
|
|
330
|
+
if (query.zoomMode === 'width' && (jsonConfig === null || jsonConfig === void 0 ? void 0 : (_jsonConfig$pageConfi3 = jsonConfig.pageConfig) === null || _jsonConfig$pageConfi3 === void 0 ? void 0 : _jsonConfig$pageConfi3.dimensions)) {
|
|
321
331
|
var _graphRef$current;
|
|
322
|
-
var _jsonConfig$
|
|
323
|
-
width = _jsonConfig$
|
|
324
|
-
height = _jsonConfig$
|
|
332
|
+
var _jsonConfig$pageConfi4 = jsonConfig.pageConfig.dimensions,
|
|
333
|
+
width = _jsonConfig$pageConfi4.width,
|
|
334
|
+
height = _jsonConfig$pageConfi4.height;
|
|
325
335
|
var scale = wrapSize.width / width;
|
|
326
336
|
(_graphRef$current = graphRef.current) === null || _graphRef$current === void 0 ? void 0 : _graphRef$current.resize(width * scale, height * scale);
|
|
327
337
|
} else {
|
|
@@ -386,7 +396,7 @@ var Player = function Player(_ref) {
|
|
|
386
396
|
}
|
|
387
397
|
};
|
|
388
398
|
}, [query, jsonConfig, mittMeta]);
|
|
389
|
-
|
|
399
|
+
useEffect(function () {}, [query, jsonConfig, mittMeta]);
|
|
390
400
|
// scene === 'freedom' 加载设备点位数据
|
|
391
401
|
useEffect(function () {
|
|
392
402
|
var fetchDevicePoints = /*#__PURE__*/function () {
|
|
@@ -422,15 +432,71 @@ var Player = function Player(_ref) {
|
|
|
422
432
|
return _ref8.apply(this, arguments);
|
|
423
433
|
};
|
|
424
434
|
}();
|
|
435
|
+
var fetchDeviceSpecialPoint = /*#__PURE__*/function () {
|
|
436
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(ids, dateType) {
|
|
437
|
+
var res, pointList;
|
|
438
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
439
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
440
|
+
case 0:
|
|
441
|
+
_context7.next = 2;
|
|
442
|
+
return GetTdIndicatorAggregateData(ids.map(function (v) {
|
|
443
|
+
var productNo = {
|
|
444
|
+
emqktt: 'energy',
|
|
445
|
+
mrwtn4: 'steamc',
|
|
446
|
+
kf78l3: 'waterc'
|
|
447
|
+
};
|
|
448
|
+
var str = v.split('_');
|
|
449
|
+
return {
|
|
450
|
+
indicatorNo: "".concat(str[0], "_").concat(str[1], "_").concat(productNo[str[0]]),
|
|
451
|
+
aggregateType: 3,
|
|
452
|
+
timeQuantumList: [{
|
|
453
|
+
startDate: dayjs().startOf(dateType == 0 ? "month" : "year").format('YYYY-MM-DD HH:mm:ss'),
|
|
454
|
+
endDate: dayjs().endOf(dateType == 0 ? "month" : "year").format('YYYY-MM-DD HH:mm:ss')
|
|
455
|
+
}]
|
|
456
|
+
};
|
|
457
|
+
}));
|
|
458
|
+
case 2:
|
|
459
|
+
res = _context7.sent;
|
|
460
|
+
if (res.success) {
|
|
461
|
+
_context7.next = 6;
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
message.error('设备点位数据获取失败');
|
|
465
|
+
return _context7.abrupt("return");
|
|
466
|
+
case 6:
|
|
467
|
+
pointList = res.data || [];
|
|
468
|
+
pointList.forEach(function (v) {
|
|
469
|
+
var pointId = ids.find(function (id) {
|
|
470
|
+
return id.includes(v.deviceNo);
|
|
471
|
+
});
|
|
472
|
+
emitter.emit("point-update-".concat(pointId, "-").concat(mittMeta.namespace), v);
|
|
473
|
+
});
|
|
474
|
+
case 8:
|
|
475
|
+
case "end":
|
|
476
|
+
return _context7.stop();
|
|
477
|
+
}
|
|
478
|
+
}, _callee7);
|
|
479
|
+
}));
|
|
480
|
+
return function fetchDeviceSpecialPoint(_x7, _x8) {
|
|
481
|
+
return _ref9.apply(this, arguments);
|
|
482
|
+
};
|
|
483
|
+
}();
|
|
425
484
|
var timer;
|
|
485
|
+
var specialPointTimer;
|
|
426
486
|
if (query.scene === 'freedom' && jsonConfig) {
|
|
427
487
|
var _jsonConfig$cells;
|
|
428
488
|
var pointIds = [];
|
|
489
|
+
var specialPoint = [];
|
|
429
490
|
jsonConfig === null || jsonConfig === void 0 ? void 0 : (_jsonConfig$cells = jsonConfig.cells) === null || _jsonConfig$cells === void 0 ? void 0 : _jsonConfig$cells.forEach(function (cell) {
|
|
430
|
-
var _cell$data
|
|
431
|
-
cell === null || cell === void 0 ? void 0 : (_cell$data = cell.data) === null || _cell$data === void 0 ? void 0 :
|
|
432
|
-
|
|
433
|
-
}
|
|
491
|
+
var _cell$data;
|
|
492
|
+
if ((cell === null || cell === void 0 ? void 0 : (_cell$data = cell.data) === null || _cell$data === void 0 ? void 0 : _cell$data.valueType) == 1) {
|
|
493
|
+
specialPoint.push(cell);
|
|
494
|
+
} else {
|
|
495
|
+
var _cell$data2, _cell$data2$pointList;
|
|
496
|
+
cell === null || cell === void 0 ? void 0 : (_cell$data2 = cell.data) === null || _cell$data2 === void 0 ? void 0 : (_cell$data2$pointList = _cell$data2.pointList) === null || _cell$data2$pointList === void 0 ? void 0 : _cell$data2$pointList.forEach(function (point) {
|
|
497
|
+
pointIds.push(point.pointId);
|
|
498
|
+
});
|
|
499
|
+
}
|
|
434
500
|
|
|
435
501
|
// ele-fan 元素单独处理
|
|
436
502
|
if (cell.shape === 'ele-fan') {
|
|
@@ -458,6 +524,24 @@ var Player = function Player(_ref) {
|
|
|
458
524
|
fetchDevicePoints(pointIds);
|
|
459
525
|
}, RefreshFrequency);
|
|
460
526
|
}
|
|
527
|
+
if (specialPoint.length) {
|
|
528
|
+
var monthPoint = specialPoint.filter(function (item) {
|
|
529
|
+
return item.data.valueDate == 0;
|
|
530
|
+
}).map(function (item) {
|
|
531
|
+
return item.data.pointList[0].pointId;
|
|
532
|
+
});
|
|
533
|
+
var yaerPoint = specialPoint.filter(function (item) {
|
|
534
|
+
return item.data.valueDate == 1;
|
|
535
|
+
}).map(function (item) {
|
|
536
|
+
return item.data.pointList[0].pointId;
|
|
537
|
+
});
|
|
538
|
+
monthPoint.length && fetchDeviceSpecialPoint(monthPoint, 0);
|
|
539
|
+
yaerPoint.length && fetchDeviceSpecialPoint(yaerPoint, 1);
|
|
540
|
+
specialPointTimer = setInterval(function () {
|
|
541
|
+
monthPoint.length && fetchDeviceSpecialPoint(monthPoint, 0);
|
|
542
|
+
yaerPoint.length && fetchDeviceSpecialPoint(yaerPoint, 1);
|
|
543
|
+
}, RefreshFrequency);
|
|
544
|
+
}
|
|
461
545
|
}
|
|
462
546
|
return function () {
|
|
463
547
|
if (timer) {
|
|
@@ -471,7 +555,9 @@ var Player = function Player(_ref) {
|
|
|
471
555
|
var _jsonConfig$cells2;
|
|
472
556
|
jsonConfig === null || jsonConfig === void 0 ? void 0 : (_jsonConfig$cells2 = jsonConfig.cells) === null || _jsonConfig$cells2 === void 0 ? void 0 : _jsonConfig$cells2.forEach(function (v) {
|
|
473
557
|
if (v.data) {
|
|
558
|
+
var _query$premission;
|
|
474
559
|
v.data.mittMeta = mittMeta;
|
|
560
|
+
v.data.premission = ((_query$premission = query.premission) === null || _query$premission === void 0 ? void 0 : _query$premission.split(',')) || [];
|
|
475
561
|
}
|
|
476
562
|
});
|
|
477
563
|
graph.fromJSON(jsonConfig);
|
|
@@ -502,7 +588,9 @@ var Player = function Player(_ref) {
|
|
|
502
588
|
onCancel: function onCancel() {
|
|
503
589
|
return setVisibleDialogHistory(false);
|
|
504
590
|
},
|
|
505
|
-
pointIdListProp: activePointIds
|
|
591
|
+
pointIdListProp: activePointIds,
|
|
592
|
+
companyId: query.companyId,
|
|
593
|
+
projectId: query.projectId
|
|
506
594
|
}), /*#__PURE__*/React.createElement(DialogPointWrite, {
|
|
507
595
|
visible: visibleDialogPointWrite,
|
|
508
596
|
points: activePoints,
|
|
@@ -83,7 +83,7 @@ var Display = function Display(_ref) {
|
|
|
83
83
|
return v.productConfigurationType === Number(query.scadaType);
|
|
84
84
|
});
|
|
85
85
|
if (activeConfig) {
|
|
86
|
-
setJsonConfig(JSON.parse((activeConfig.config || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '
|
|
86
|
+
setJsonConfig(JSON.parse((activeConfig.config || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/imgfile/iot/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/imgfile/iot/')));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
_context.next = 17;
|
|
@@ -209,7 +209,7 @@ var Display = function Display(_ref) {
|
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
if (scadaConfig) {
|
|
212
|
-
setJsonConfig(JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '
|
|
212
|
+
setJsonConfig(JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/imgfile/iot/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/imgfile/iot/')));
|
|
213
213
|
}
|
|
214
214
|
_context3.next = 20;
|
|
215
215
|
break;
|
|
@@ -9,54 +9,54 @@ import { defaultConfig as defaultConfigLightning } from "../../../../element/Bas
|
|
|
9
9
|
export var elementList = [
|
|
10
10
|
// 矩形
|
|
11
11
|
{
|
|
12
|
-
url: '
|
|
12
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E7%9F%A9%E5%BD%A2.svg',
|
|
13
13
|
label: '',
|
|
14
14
|
width: 30,
|
|
15
15
|
payload: defaultConfigRectangle
|
|
16
16
|
},
|
|
17
17
|
// 圆形
|
|
18
18
|
{
|
|
19
|
-
url: '
|
|
19
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%9C%86%E5%BD%A2.svg',
|
|
20
20
|
label: '',
|
|
21
21
|
width: 30,
|
|
22
22
|
payload: defaultConfigCircle
|
|
23
23
|
},
|
|
24
24
|
// 椭圆形
|
|
25
25
|
{
|
|
26
|
-
url: '
|
|
26
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%A4%AD%E5%9C%86%E5%BD%A2.svg',
|
|
27
27
|
label: '',
|
|
28
28
|
width: 34,
|
|
29
29
|
payload: defaultConfigEllipse
|
|
30
30
|
},
|
|
31
31
|
// 评论框
|
|
32
32
|
{
|
|
33
|
-
url: '
|
|
33
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%AF%B9%E8%AF%9D%E6%A1%86.svg',
|
|
34
34
|
label: '',
|
|
35
35
|
width: 30,
|
|
36
36
|
payload: defaultConfigCommentBox
|
|
37
37
|
}, {
|
|
38
|
-
url: '
|
|
38
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/comment-box2.svg',
|
|
39
39
|
label: '',
|
|
40
40
|
width: 38,
|
|
41
41
|
payload: defaultConfigCommentBox2
|
|
42
42
|
},
|
|
43
43
|
// 心形
|
|
44
44
|
{
|
|
45
|
-
url: '
|
|
45
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/heart.svg',
|
|
46
46
|
label: '',
|
|
47
47
|
width: 30,
|
|
48
48
|
payload: defaultConfigHeart
|
|
49
49
|
},
|
|
50
50
|
// 星星
|
|
51
51
|
{
|
|
52
|
-
url: '
|
|
52
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%98%9F%E6%98%9F.svg',
|
|
53
53
|
label: '',
|
|
54
54
|
width: 30,
|
|
55
55
|
payload: defaultConfigStar
|
|
56
56
|
},
|
|
57
57
|
// 闪电
|
|
58
58
|
{
|
|
59
|
-
url: '
|
|
59
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/lightning.svg',
|
|
60
60
|
label: '',
|
|
61
61
|
width: 28,
|
|
62
62
|
payload: defaultConfigLightning
|
|
@@ -83,7 +83,7 @@ var ImgGroup = function ImgGroup(_ref) {
|
|
|
83
83
|
setImgList(((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list.map(function (item) {
|
|
84
84
|
var _item$img;
|
|
85
85
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
86
|
-
img: (_item$img = item.img) === null || _item$img === void 0 ? void 0 : _item$img.replace('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com', '
|
|
86
|
+
img: (_item$img = item.img) === null || _item$img === void 0 ? void 0 : _item$img.replace('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com', '/imgfile/iot').replace('https://front-end-assets.oss-cn-shanghai.aliyuncs.com', '/imgfile/iot')
|
|
87
87
|
});
|
|
88
88
|
})) || []);
|
|
89
89
|
} else {
|
|
@@ -13,75 +13,75 @@ import { defaultConfig as defaultConfigEleShine } from "../../../../element/EleS
|
|
|
13
13
|
import { defaultConfig as defaultConfigEleIcon } from "../../../../element/EleIcon";
|
|
14
14
|
import { defaultConfig as defaultConfigEdgeLinePort } from "../../../../edge/EdgeLinePort";
|
|
15
15
|
export var elementList = [{
|
|
16
|
-
url: '
|
|
16
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E6%95%B0%E5%80%BC%E6%A1%86.svg',
|
|
17
17
|
label: '点位值',
|
|
18
18
|
payload: defaultConfigElePointValue,
|
|
19
19
|
width: 25,
|
|
20
20
|
tooltipTitle: '显示功能名称及数值'
|
|
21
21
|
}, {
|
|
22
|
-
url: '
|
|
22
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87.svg',
|
|
23
23
|
label: '点位值图片',
|
|
24
24
|
width: 26,
|
|
25
25
|
payload: defaultConfigElePointImage,
|
|
26
26
|
tooltipTitle: '适用于图片/动图表示功能状态'
|
|
27
27
|
}, {
|
|
28
|
-
url: '
|
|
28
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E7%82%B9%E4%BD%8D%E7%8A%B6%E6%80%81.svg',
|
|
29
29
|
label: '状态点位',
|
|
30
30
|
width: 25,
|
|
31
31
|
payload: defaultConfigElePointState,
|
|
32
32
|
tooltipTitle: '适用于图标颜色变化表示功能状态'
|
|
33
33
|
}, {
|
|
34
|
-
url: '
|
|
34
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E7%82%B9%E4%BD%8D%E9%9D%A2%E6%9D%BF.svg',
|
|
35
35
|
label: '点位列表',
|
|
36
36
|
width: 25,
|
|
37
37
|
payload: defaultConfigElePointList
|
|
38
38
|
}, {
|
|
39
|
-
url: '
|
|
39
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E4%BB%AA%E8%A1%A8%E7%9B%98.svg',
|
|
40
40
|
label: '仪表盘',
|
|
41
41
|
payload: defaultConfigGauge,
|
|
42
42
|
width: 28
|
|
43
43
|
}, {
|
|
44
|
-
url: '
|
|
44
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E9%A3%8E%E6%89%87.svg',
|
|
45
45
|
label: '风机',
|
|
46
46
|
payload: defaultConfigEleFan,
|
|
47
47
|
width: 26
|
|
48
48
|
}, {
|
|
49
|
-
url: '
|
|
49
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/6.svg',
|
|
50
50
|
label: '文字',
|
|
51
51
|
width: 30,
|
|
52
52
|
payload: defaultConfigEleText
|
|
53
53
|
}, {
|
|
54
|
-
url: '
|
|
54
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E6%8C%89%E9%92%AE.svg',
|
|
55
55
|
label: '按钮',
|
|
56
56
|
width: 30,
|
|
57
57
|
payload: defaultConfigEleButton
|
|
58
58
|
}, {
|
|
59
|
-
url: '
|
|
59
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/switch.svg',
|
|
60
60
|
label: '开关',
|
|
61
61
|
width: 30,
|
|
62
62
|
payload: defaultConfigEleSwitch
|
|
63
63
|
}, {
|
|
64
|
-
url: '
|
|
64
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E6%8C%87%E7%A4%BA%E7%81%AF.svg',
|
|
65
65
|
label: '指示灯',
|
|
66
66
|
width: 25,
|
|
67
67
|
payload: defaultConfigEleIndicatorLight
|
|
68
68
|
}, {
|
|
69
|
-
url: '
|
|
69
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E9%97%AA%E7%83%81%E5%91%8A%E8%AD%A6.svg',
|
|
70
70
|
label: '闪烁告警',
|
|
71
71
|
width: 22,
|
|
72
72
|
payload: defaultConfigEleShine
|
|
73
73
|
}, {
|
|
74
|
-
url: '
|
|
74
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E5%9B%BE%E6%A0%87.svg',
|
|
75
75
|
label: '图标',
|
|
76
76
|
width: 25,
|
|
77
77
|
payload: defaultConfigEleIcon
|
|
78
78
|
}, {
|
|
79
|
-
url: '
|
|
79
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/time-circle.svg',
|
|
80
80
|
label: '时间',
|
|
81
81
|
width: 28,
|
|
82
82
|
payload: defaultConfigClock
|
|
83
83
|
}, {
|
|
84
|
-
url: '
|
|
84
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E8%BF%9E%E7%BA%BF.svg',
|
|
85
85
|
label: '连接线',
|
|
86
86
|
width: 28,
|
|
87
87
|
payload: defaultConfigEdgeLinePort
|
|
@@ -10,58 +10,58 @@ import { defaultConfig as defaultConfigElePipeVertical } from "../../../../eleme
|
|
|
10
10
|
import { defaultConfig as defaultConfigElePipeHorizontal } from "../../../../element/PipeNodes/NodeHorizontal";
|
|
11
11
|
import { defaultConfig as defaultConfigElePipeCenter } from "../../../../element/PipeNodes/NodeCenter";
|
|
12
12
|
export var elementList = [{
|
|
13
|
-
url: '
|
|
13
|
+
url: '/imgfile/iot/生产/组态图片/图片元素/ad1218665b854070b21f5572e452c6ef.svg',
|
|
14
14
|
label: '',
|
|
15
15
|
width: 30,
|
|
16
16
|
payload: defaultConfigElePipeTL
|
|
17
17
|
}, {
|
|
18
|
-
url: '
|
|
18
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/63831cb71bd24c47bb11b6e02d9e4c77.svg',
|
|
19
19
|
label: '',
|
|
20
20
|
width: 30,
|
|
21
21
|
payload: defaultConfigElePipeTop
|
|
22
22
|
}, {
|
|
23
|
-
url: '
|
|
23
|
+
url: '/imgfile/iot/生产/组态图片/图片元素/fe66d6f5586742e3a9aad2782fb45d86.svg',
|
|
24
24
|
label: '',
|
|
25
25
|
width: 30,
|
|
26
26
|
payload: defaultConfigElePipeTR
|
|
27
27
|
}, {
|
|
28
|
-
url: '
|
|
28
|
+
url: '/imgfile/iot/生产/组态图片/图片元素/834835fb0d60434d934eee07d18cfafc.svg',
|
|
29
29
|
label: '',
|
|
30
30
|
width: 25,
|
|
31
31
|
payload: defaultConfigElePipeLeft
|
|
32
32
|
}, {
|
|
33
|
-
url: '
|
|
33
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/58225b888f6a48b9af4b21444700c6ba.svg',
|
|
34
34
|
label: '',
|
|
35
35
|
width: 25,
|
|
36
36
|
payload: defaultConfigElePipeCenter
|
|
37
37
|
}, {
|
|
38
|
-
url: '
|
|
38
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/40a74ebbf068410593fbc92442088fc7.svg',
|
|
39
39
|
label: '',
|
|
40
40
|
width: 25,
|
|
41
41
|
payload: defaultConfigElePipeRight
|
|
42
42
|
}, {
|
|
43
|
-
url: '
|
|
43
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/be42df157707426fb53360693eae8094.svg',
|
|
44
44
|
label: '',
|
|
45
45
|
width: 25,
|
|
46
46
|
payload: defaultConfigElePipeBL
|
|
47
47
|
}, {
|
|
48
|
-
url: '
|
|
48
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/2358402046b8439b9bee49814e5d94e3.svg',
|
|
49
49
|
label: '',
|
|
50
50
|
width: 25,
|
|
51
51
|
payload: defaultConfigElePipeBottom
|
|
52
52
|
}, {
|
|
53
|
-
url: '
|
|
53
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/7cdce2491ce3468aae034f531bf149d5.svg',
|
|
54
54
|
label: '',
|
|
55
55
|
width: 25,
|
|
56
56
|
payload: defaultConfigElePipeBR
|
|
57
57
|
}, {
|
|
58
|
-
url: '
|
|
58
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/dd03192a3abc487aa7b91ad75d1be533.svg',
|
|
59
59
|
label: '',
|
|
60
60
|
width: 30,
|
|
61
61
|
height: 10,
|
|
62
62
|
payload: defaultConfigElePipeHorizontal
|
|
63
63
|
}, {
|
|
64
|
-
url: '
|
|
64
|
+
url: '/imgfile/iot/%E7%94%9F%E4%BA%A7/%E7%BB%84%E6%80%81%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87%E5%85%83%E7%B4%A0/8e5f1deaf3a8466fa168588eaac664bc.svg',
|
|
65
65
|
label: '',
|
|
66
66
|
width: 10,
|
|
67
67
|
height: 30,
|
|
@@ -5,32 +5,32 @@ import { defaultConfig as defaultConfigElePointCard3 } from "../../../../element
|
|
|
5
5
|
import { defaultConfig as defaultConfigElePointControl1 } from "../../../../element/PointControl/PointControl1";
|
|
6
6
|
import { defaultConfig as defaultConfigElePointControl3 } from "../../../../element/PointControl/PointControl3";
|
|
7
7
|
export var elementList = [{
|
|
8
|
-
url: '
|
|
8
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/pointListCard.png',
|
|
9
9
|
label: '点位列表',
|
|
10
10
|
width: '100%',
|
|
11
11
|
payload: defaultConfigElePointListCard
|
|
12
12
|
}, {
|
|
13
|
-
url: '
|
|
13
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/pointCard1.png',
|
|
14
14
|
label: '点位卡片1',
|
|
15
15
|
width: '100%',
|
|
16
16
|
payload: defaultConfigElePointCard1
|
|
17
17
|
}, {
|
|
18
|
-
url: '
|
|
18
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/pointCard2.png',
|
|
19
19
|
label: '点位卡片2',
|
|
20
20
|
width: '100%',
|
|
21
21
|
payload: defaultConfigElePointCard2
|
|
22
22
|
}, {
|
|
23
|
-
url: '
|
|
23
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/pointCard3.png',
|
|
24
24
|
label: '点位卡片3',
|
|
25
25
|
width: '30%',
|
|
26
26
|
payload: defaultConfigElePointCard3
|
|
27
27
|
}, {
|
|
28
|
-
url: '
|
|
28
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/pointControl1.png',
|
|
29
29
|
label: '点位卡片4',
|
|
30
30
|
width: '100%',
|
|
31
31
|
payload: defaultConfigElePointControl1
|
|
32
32
|
}, {
|
|
33
|
-
url: '
|
|
33
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/pointControl3.webp',
|
|
34
34
|
label: '点位卡片5',
|
|
35
35
|
width: '100%',
|
|
36
36
|
payload: defaultConfigElePointControl3
|
|
@@ -3,23 +3,23 @@ import { defaultConfig as defaultConfigEleDeviceUpdateTime } from "../../../../e
|
|
|
3
3
|
import { defaultConfig as defaultConfigEleDeviceState } from "../../../../element/EleDeviceState";
|
|
4
4
|
import { defaultConfig as defaultConfigEleImage } from "../../../../element/EleImage";
|
|
5
5
|
export var elementList = [{
|
|
6
|
-
url: '
|
|
6
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E8%AE%BE%E5%A4%87%E5%90%8D%E7%A7%B0.svg',
|
|
7
7
|
label: '设备名称',
|
|
8
8
|
width: 25,
|
|
9
9
|
payload: defaultConfigEleDeviceName
|
|
10
10
|
}, {
|
|
11
|
-
url: '
|
|
11
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E8%AE%BE%E5%A4%87%E7%8A%B6%E6%80%81.svg',
|
|
12
12
|
label: '设备状态',
|
|
13
13
|
width: 38,
|
|
14
14
|
payload: defaultConfigEleDeviceState,
|
|
15
15
|
tooltipTitle: '显示设备的状态标签(未上线、离线、报警、在线)'
|
|
16
16
|
}, {
|
|
17
|
-
url: '
|
|
17
|
+
url: '/imgfile/iot/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E8%AE%BE%E5%A4%87%E6%9B%B4%E6%96%B0%E6%97%B6%E9%97%B4.svg',
|
|
18
18
|
label: '设备更新时间',
|
|
19
19
|
width: 24,
|
|
20
20
|
payload: defaultConfigEleDeviceUpdateTime
|
|
21
21
|
}, {
|
|
22
|
-
url: '
|
|
22
|
+
url: '/imgfile/iot/%E5%B9%B3%E9%9D%A2%E5%9B%BE/%E5%85%83%E7%B4%A0%E5%9B%BE%E7%89%87/%E5%9B%BE%E7%89%87.svg',
|
|
23
23
|
label: '图片',
|
|
24
24
|
width: 26,
|
|
25
25
|
payload: defaultConfigEleImage,
|