coolcare-lite-scada-component 1.0.27 → 1.0.29

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.
@@ -361,6 +361,12 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
361
361
  return _ref3.apply(this, arguments);
362
362
  };
363
363
  }();
364
+ useEffect(function () {
365
+ var _form$getFieldsValue = form.getFieldsValue(),
366
+ dateRange = _form$getFieldsValue.dateRange,
367
+ interval = _form$getFieldsValue.interval;
368
+ fetchPointHistoryDebounce(pointIdList, dateRange, interval);
369
+ }, [pointIdList]);
364
370
 
365
371
  /** 打开弹框,初始化数据,获取曲线图形 */
366
372
  useEffect(function () {
@@ -199,14 +199,18 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
199
199
  rules: [{
200
200
  required: true,
201
201
  message: '请选择'
202
- }]
202
+ }],
203
+ className: "temperature2Select"
203
204
  }, /*#__PURE__*/React.createElement(Select, {
204
205
  allowClear: true,
205
206
  mode: 'multiple',
206
207
  showSearch: true,
207
208
  optionFilterProp: "label",
208
209
  placeholder: "\u8BF7\u9009\u62E9",
209
- disabled: !getFieldValue('deviceId')
210
+ disabled: !getFieldValue('deviceId'),
211
+ getPopupContainer: function getPopupContainer() {
212
+ return document.querySelector(".temperature2Select") || document.body;
213
+ }
210
214
  }, pointList.map(function (item) {
211
215
  return /*#__PURE__*/React.createElement(Option, {
212
216
  value: item.pointId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "scripts": {
5
5
  "start": "umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",