coolcare-lite-scada-component 1.0.31 → 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 = 3;
103
+ _context.next = 2;
104
104
  break;
105
105
  }
106
- message.info('请至少查询一个点位');
107
106
  return _context.abrupt("return");
108
- case 3:
107
+ case 2:
109
108
  if (!(ranges.length !== 2)) {
110
- _context.next = 6;
109
+ _context.next = 5;
111
110
  break;
112
111
  }
113
112
  message.info('请选择时间范围');
114
113
  return _context.abrupt("return");
115
- case 6:
114
+ case 5:
116
115
  if (!(typeof interval !== 'number' || interval < 0)) {
117
- _context.next = 9;
116
+ _context.next = 8;
118
117
  break;
119
118
  }
120
119
  message.info('请正确输入时间间隔');
121
120
  return _context.abrupt("return");
122
- case 9:
123
- _context.prev = 9;
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 = 14;
125
+ _context.next = 13;
127
126
  break;
128
127
  }
129
128
  message.error('历史数据最大查询范围是一年');
130
129
  return _context.abrupt("return");
131
- case 14:
130
+ case 13:
132
131
  // 获取点位数据
133
132
  setLoading(true);
134
- _context.next = 17;
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 17:
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 = 26;
311
+ _context.next = 25;
313
312
  break;
314
- case 21:
315
- _context.prev = 21;
316
- _context.t0 = _context["catch"](9);
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 26:
321
- _context.prev = 26;
319
+ case 25:
320
+ _context.prev = 25;
322
321
  setLoading(false);
323
- return _context.finish(26);
324
- case 29:
322
+ return _context.finish(25);
323
+ case 28:
325
324
  case "end":
326
325
  return _context.stop();
327
326
  }
328
- }, _callee, null, [[9, 21, 26, 29]]);
327
+ }, _callee, null, [[8, 20, 25, 28]]);
329
328
  }));
330
329
  return function (_x, _x2, _x3) {
331
330
  return _ref2.apply(this, arguments);
@@ -28,7 +28,8 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
28
28
  onCancel = _ref.onCancel,
29
29
  companyId = _ref.companyId,
30
30
  currentDeviceId = _ref.currentDeviceId,
31
- currentPointList = _ref.currentPointList;
31
+ currentPointList = _ref.currentPointList,
32
+ projectId = _ref.projectId;
32
33
  var _Form$useForm = Form.useForm(),
33
34
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
34
35
  form = _Form$useForm2[0];
@@ -202,6 +203,7 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
202
203
  return /*#__PURE__*/React.createElement(Form.Item, {
203
204
  name: "pointIdList",
204
205
  label: "\u5C5E\u6027",
206
+ className: "temperature2Select",
205
207
  rules: [{
206
208
  required: true,
207
209
  message: '请选择'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "scripts": {
5
5
  "start": "umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",