coolcare-lite-scada-component 1.0.63 → 1.0.64
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.js +61 -39
- package/es/components/FormBindPoint/FreedomScene.js +66 -6
- package/es/components/ModalChoosePoint/index.js +41 -18
- package/es/components/PointSelect/DeviceIndicatorTable.js +111 -0
- package/es/components/PointSelect/IndicatorSelect.js +186 -0
- package/es/element/ElePointValue/Component.js +16 -12
- package/es/element/utils/handleEleEvent.js +1 -1
- package/es/hooks/usePointWatch.js +1 -1
- package/es/pages/display/Player/index.js +135 -49
- package/es/services/gateway/Device.js +25 -0
- package/es/services/gateway/Point.js +50 -26
- package/package.json +1 -1
|
@@ -66,7 +66,7 @@ export function GetPointPage(_x5, _x6) {
|
|
|
66
66
|
return _GetPointPage.apply(this, arguments);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
/** 获取点位历史数据 POST /api/GatewayMicro/
|
|
69
|
+
/** 获取点位历史数据 POST /api/GatewayMicro/DeviceIndicator/GetTdIndicatorHistoryData */
|
|
70
70
|
function _GetPointPage() {
|
|
71
71
|
_GetPointPage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(body, options) {
|
|
72
72
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -87,16 +87,16 @@ function _GetPointPage() {
|
|
|
87
87
|
}));
|
|
88
88
|
return _GetPointPage.apply(this, arguments);
|
|
89
89
|
}
|
|
90
|
-
export function
|
|
91
|
-
return
|
|
90
|
+
export function GetTdIndicatorHistoryData(_x7, _x8) {
|
|
91
|
+
return _GetTdIndicatorHistoryData.apply(this, arguments);
|
|
92
92
|
}
|
|
93
93
|
/** 获取点位历史数据 POST /api/GatewayMicro/Point/GetPointHistoryData */
|
|
94
|
-
function
|
|
95
|
-
|
|
94
|
+
function _GetTdIndicatorHistoryData() {
|
|
95
|
+
_GetTdIndicatorHistoryData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body, options) {
|
|
96
96
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
97
97
|
while (1) switch (_context4.prev = _context4.next) {
|
|
98
98
|
case 0:
|
|
99
|
-
return _context4.abrupt("return", request('/api/GatewayMicro/
|
|
99
|
+
return _context4.abrupt("return", request('/api/GatewayMicro/DeviceIndicator/GetTdIndicatorHistoryData', _objectSpread({
|
|
100
100
|
method: 'POST',
|
|
101
101
|
headers: {
|
|
102
102
|
'Content-Type': 'application/json-patch+json'
|
|
@@ -109,19 +109,18 @@ function _GetPointHistoryData() {
|
|
|
109
109
|
}
|
|
110
110
|
}, _callee4);
|
|
111
111
|
}));
|
|
112
|
-
return
|
|
112
|
+
return _GetTdIndicatorHistoryData.apply(this, arguments);
|
|
113
113
|
}
|
|
114
|
-
export function
|
|
115
|
-
return
|
|
114
|
+
export function GetPointHistoryData(_x9, _x0) {
|
|
115
|
+
return _GetPointHistoryData.apply(this, arguments);
|
|
116
116
|
}
|
|
117
|
-
|
|
118
117
|
/** 获取点位历史数据 POST /api/GatewayMicro/Point/GetPointHistoryData */
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
function _GetPointHistoryData() {
|
|
119
|
+
_GetPointHistoryData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body, options) {
|
|
121
120
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
122
121
|
while (1) switch (_context5.prev = _context5.next) {
|
|
123
122
|
case 0:
|
|
124
|
-
return _context5.abrupt("return", request('/api/GatewayMicro/Point/
|
|
123
|
+
return _context5.abrupt("return", request('/api/GatewayMicro/Point/GetPointHistoryData', _objectSpread({
|
|
125
124
|
method: 'POST',
|
|
126
125
|
headers: {
|
|
127
126
|
'Content-Type': 'application/json-patch+json'
|
|
@@ -134,19 +133,19 @@ function _GetPointAggregationData() {
|
|
|
134
133
|
}
|
|
135
134
|
}, _callee5);
|
|
136
135
|
}));
|
|
137
|
-
return
|
|
136
|
+
return _GetPointHistoryData.apply(this, arguments);
|
|
138
137
|
}
|
|
139
|
-
export function
|
|
140
|
-
return
|
|
138
|
+
export function GetPointAggregationData(_x1, _x10) {
|
|
139
|
+
return _GetPointAggregationData.apply(this, arguments);
|
|
141
140
|
}
|
|
142
141
|
|
|
143
|
-
/**
|
|
144
|
-
function
|
|
145
|
-
|
|
142
|
+
/** 获取点位历史数据 POST /api/GatewayMicro/Point/GetPointHistoryData */
|
|
143
|
+
function _GetPointAggregationData() {
|
|
144
|
+
_GetPointAggregationData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(body, options) {
|
|
146
145
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
147
146
|
while (1) switch (_context6.prev = _context6.next) {
|
|
148
147
|
case 0:
|
|
149
|
-
return _context6.abrupt("return", request('/api/GatewayMicro/
|
|
148
|
+
return _context6.abrupt("return", request('/api/GatewayMicro/Point/GetPointAggregationData', _objectSpread({
|
|
150
149
|
method: 'POST',
|
|
151
150
|
headers: {
|
|
152
151
|
'Content-Type': 'application/json-patch+json'
|
|
@@ -159,17 +158,19 @@ function _GetTdIndicatorAggregateData() {
|
|
|
159
158
|
}
|
|
160
159
|
}, _callee6);
|
|
161
160
|
}));
|
|
162
|
-
return
|
|
161
|
+
return _GetPointAggregationData.apply(this, arguments);
|
|
163
162
|
}
|
|
164
|
-
export function
|
|
165
|
-
return
|
|
163
|
+
export function GetTdIndicatorAggregateData(_x11, _x12) {
|
|
164
|
+
return _GetTdIndicatorAggregateData.apply(this, arguments);
|
|
166
165
|
}
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
|
|
167
|
+
/** 历史数据导出xlsx货pdf(支持进度条) POST /api/GatewayMicro/Point/DownHistoryDataToExcelOrPdf */
|
|
168
|
+
function _GetTdIndicatorAggregateData() {
|
|
169
|
+
_GetTdIndicatorAggregateData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(body, options) {
|
|
169
170
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
170
171
|
while (1) switch (_context7.prev = _context7.next) {
|
|
171
172
|
case 0:
|
|
172
|
-
return _context7.abrupt("return", request('/api/GatewayMicro/
|
|
173
|
+
return _context7.abrupt("return", request('/api/GatewayMicro/DeviceIndicator/GetTdIndicatorAggregateData', _objectSpread({
|
|
173
174
|
method: 'POST',
|
|
174
175
|
headers: {
|
|
175
176
|
'Content-Type': 'application/json-patch+json'
|
|
@@ -182,5 +183,28 @@ function _DownHistoryDataToExcelOrPdf() {
|
|
|
182
183
|
}
|
|
183
184
|
}, _callee7);
|
|
184
185
|
}));
|
|
186
|
+
return _GetTdIndicatorAggregateData.apply(this, arguments);
|
|
187
|
+
}
|
|
188
|
+
export function DownHistoryDataToExcelOrPdf(_x13, _x14) {
|
|
189
|
+
return _DownHistoryDataToExcelOrPdf.apply(this, arguments);
|
|
190
|
+
}
|
|
191
|
+
function _DownHistoryDataToExcelOrPdf() {
|
|
192
|
+
_DownHistoryDataToExcelOrPdf = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(body, options) {
|
|
193
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
194
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
195
|
+
case 0:
|
|
196
|
+
return _context8.abrupt("return", request('/api/GatewayMicro/Point/DownHistoryDataToExcelOrPdf', _objectSpread({
|
|
197
|
+
method: 'POST',
|
|
198
|
+
headers: {
|
|
199
|
+
'Content-Type': 'application/json-patch+json'
|
|
200
|
+
},
|
|
201
|
+
data: body
|
|
202
|
+
}, options || {})));
|
|
203
|
+
case 1:
|
|
204
|
+
case "end":
|
|
205
|
+
return _context8.stop();
|
|
206
|
+
}
|
|
207
|
+
}, _callee8);
|
|
208
|
+
}));
|
|
185
209
|
return _DownHistoryDataToExcelOrPdf.apply(this, arguments);
|
|
186
210
|
}
|