coolcare-lite-scada-component 1.0.56 → 1.0.58

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.
@@ -25,6 +25,7 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
25
25
  onSubmit = _ref.onSubmit,
26
26
  onCancel = _ref.onCancel,
27
27
  companyId = _ref.companyId,
28
+ projectId = _ref.projectId,
28
29
  currentDeviceId = _ref.currentDeviceId;
29
30
  var _Form$useForm = Form.useForm(),
30
31
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
@@ -89,7 +90,8 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
89
90
  _context2.prev = 0;
90
91
  _context2.next = 3;
91
92
  return GetDevicePage({
92
- companyId: companyId
93
+ companyId: companyId,
94
+ projectIdList: projectId ? [projectId] : undefined
93
95
  });
94
96
  case 3:
95
97
  res = _context2.sent;
@@ -168,6 +170,7 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
168
170
  }
169
171
  }, /*#__PURE__*/React.createElement(Form.Item, {
170
172
  name: "deviceId",
173
+ className: "temperatureDeviceSelect",
171
174
  label: "\u8BBE\u5907",
172
175
  rules: [{
173
176
  required: true,
@@ -181,6 +184,9 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
181
184
  form.setFieldsValue({
182
185
  pointIdList: []
183
186
  });
187
+ },
188
+ getPopupContainer: function getPopupContainer() {
189
+ return document.querySelector(".temperatureDeviceSelect") || document.body;
184
190
  }
185
191
  }, deviceList.map(function (item) {
186
192
  return /*#__PURE__*/React.createElement(Option, {
@@ -199,14 +205,18 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
199
205
  rules: [{
200
206
  required: true,
201
207
  message: '请选择'
202
- }]
208
+ }],
209
+ className: "temperaturePointSelect"
203
210
  }, /*#__PURE__*/React.createElement(Select, {
204
211
  allowClear: true,
205
212
  mode: 'multiple',
206
213
  showSearch: true,
207
214
  optionFilterProp: "label",
208
215
  placeholder: "\u8BF7\u9009\u62E9",
209
- disabled: !getFieldValue('deviceId')
216
+ disabled: !getFieldValue('deviceId'),
217
+ getPopupContainer: function getPopupContainer() {
218
+ return document.querySelector(".temperaturePointSelect") || document.body;
219
+ }
210
220
  }, pointList.map(function (item) {
211
221
  return /*#__PURE__*/React.createElement(Option, {
212
222
  value: item.pointId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "scripts": {
5
5
  "start": " PORT=8000 umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",