coolcare-lite-scada-component 1.0.32 → 1.0.33
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.
|
@@ -100,38 +100,37 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
100
100
|
while (1) switch (_context.prev = _context.next) {
|
|
101
101
|
case 0:
|
|
102
102
|
if (idList === null || idList === void 0 ? void 0 : idList.length) {
|
|
103
|
-
_context.next =
|
|
103
|
+
_context.next = 2;
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
|
-
message.info('请至少查询一个点位');
|
|
107
106
|
return _context.abrupt("return");
|
|
108
|
-
case
|
|
107
|
+
case 2:
|
|
109
108
|
if (!(ranges.length !== 2)) {
|
|
110
|
-
_context.next =
|
|
109
|
+
_context.next = 5;
|
|
111
110
|
break;
|
|
112
111
|
}
|
|
113
112
|
message.info('请选择时间范围');
|
|
114
113
|
return _context.abrupt("return");
|
|
115
|
-
case
|
|
114
|
+
case 5:
|
|
116
115
|
if (!(typeof interval !== 'number' || interval < 0)) {
|
|
117
|
-
_context.next =
|
|
116
|
+
_context.next = 8;
|
|
118
117
|
break;
|
|
119
118
|
}
|
|
120
119
|
message.info('请正确输入时间间隔');
|
|
121
120
|
return _context.abrupt("return");
|
|
122
|
-
case
|
|
123
|
-
_context.prev =
|
|
121
|
+
case 8:
|
|
122
|
+
_context.prev = 8;
|
|
124
123
|
diff = moment(ranges[1]).valueOf() - moment(ranges[0]).valueOf();
|
|
125
124
|
if (!(diff > oneYearTime)) {
|
|
126
|
-
_context.next =
|
|
125
|
+
_context.next = 13;
|
|
127
126
|
break;
|
|
128
127
|
}
|
|
129
128
|
message.error('历史数据最大查询范围是一年');
|
|
130
129
|
return _context.abrupt("return");
|
|
131
|
-
case
|
|
130
|
+
case 13:
|
|
132
131
|
// 获取点位数据
|
|
133
132
|
setLoading(true);
|
|
134
|
-
_context.next =
|
|
133
|
+
_context.next = 16;
|
|
135
134
|
return GetPointHistoryData({
|
|
136
135
|
timeQuantum: {
|
|
137
136
|
startDate: moment(ranges[0]).format('YYYY-MM-DD HH:mm'),
|
|
@@ -140,7 +139,7 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
140
139
|
pointIdList: idList,
|
|
141
140
|
interval: interval
|
|
142
141
|
});
|
|
143
|
-
case
|
|
142
|
+
case 16:
|
|
144
143
|
res = _context.sent;
|
|
145
144
|
if (res.success) {
|
|
146
145
|
data = res.data;
|
|
@@ -309,23 +308,23 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
309
308
|
setIsNoData(true);
|
|
310
309
|
message.error(res.message);
|
|
311
310
|
}
|
|
312
|
-
_context.next =
|
|
311
|
+
_context.next = 25;
|
|
313
312
|
break;
|
|
314
|
-
case
|
|
315
|
-
_context.prev =
|
|
316
|
-
_context.t0 = _context["catch"](
|
|
313
|
+
case 20:
|
|
314
|
+
_context.prev = 20;
|
|
315
|
+
_context.t0 = _context["catch"](8);
|
|
317
316
|
console.error(_context.t0);
|
|
318
317
|
setIsNoData(true);
|
|
319
318
|
setChartOptions(undefined);
|
|
320
|
-
case
|
|
321
|
-
_context.prev =
|
|
319
|
+
case 25:
|
|
320
|
+
_context.prev = 25;
|
|
322
321
|
setLoading(false);
|
|
323
|
-
return _context.finish(
|
|
324
|
-
case
|
|
322
|
+
return _context.finish(25);
|
|
323
|
+
case 28:
|
|
325
324
|
case "end":
|
|
326
325
|
return _context.stop();
|
|
327
326
|
}
|
|
328
|
-
}, _callee, null, [[
|
|
327
|
+
}, _callee, null, [[8, 20, 25, 28]]);
|
|
329
328
|
}));
|
|
330
329
|
return function (_x, _x2, _x3) {
|
|
331
330
|
return _ref2.apply(this, arguments);
|
|
@@ -203,6 +203,7 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
203
203
|
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
204
204
|
name: "pointIdList",
|
|
205
205
|
label: "\u5C5E\u6027",
|
|
206
|
+
className: "temperature2Select",
|
|
206
207
|
rules: [{
|
|
207
208
|
required: true,
|
|
208
209
|
message: '请选择'
|