coolcare-lite-scada-component 4.0.6 → 4.0.8

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),
@@ -150,12 +151,13 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
150
151
  title: '选择属性',
151
152
  closable: false,
152
153
  width: 300,
153
- zIndex: 100,
154
+ zIndex: 9999,
154
155
  maskClosable: true,
155
156
  footer: null,
156
157
  onCancel: closeModal,
157
158
  visible: visible,
158
- wrapClassName: 'form-modal'
159
+ wrapClassName: 'form-modal',
160
+ getContainer: false
159
161
  }, /*#__PURE__*/React.createElement(Form, {
160
162
  layout: "vertical",
161
163
  form: form,
@@ -169,6 +171,7 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
169
171
  }
170
172
  }, /*#__PURE__*/React.createElement(Form.Item, {
171
173
  name: "deviceId",
174
+ className: "temperatureDeviceSelect",
172
175
  label: "\u8BBE\u5907",
173
176
  rules: [{
174
177
  required: true,
@@ -182,6 +185,9 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
182
185
  form.setFieldsValue({
183
186
  pointIdList: []
184
187
  });
188
+ },
189
+ getPopupContainer: function getPopupContainer() {
190
+ return document.querySelector('.temperatureDeviceSelect') || document.body;
185
191
  }
186
192
  }, deviceList.map(function (item) {
187
193
  return /*#__PURE__*/React.createElement(Option, {
@@ -200,20 +206,24 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
200
206
  rules: [{
201
207
  required: true,
202
208
  message: '请选择'
203
- }]
209
+ }],
210
+ className: "temperaturePointSelect"
204
211
  }, /*#__PURE__*/React.createElement(Select, {
205
212
  allowClear: true,
206
213
  mode: 'multiple',
207
214
  showSearch: true,
208
215
  optionFilterProp: "label",
209
216
  placeholder: "\u8BF7\u9009\u62E9",
210
- disabled: !getFieldValue('deviceId')
217
+ disabled: !getFieldValue('deviceId'),
218
+ getPopupContainer: function getPopupContainer() {
219
+ return document.querySelector('.temperaturePointSelect') || document.body;
220
+ }
211
221
  }, pointList.map(function (item) {
212
222
  return /*#__PURE__*/React.createElement(Option, {
213
- value: item.pointId,
214
- label: item.pointName,
215
- key: item.pointId
216
- }, item.pointName);
223
+ value: item.pointId || item.indicatorNo,
224
+ label: item.pointName || item.indicatorName,
225
+ key: item.pointId || item.indicatorNo
226
+ }, item.pointName || item.indicatorName);
217
227
  })));
218
228
  }), /*#__PURE__*/React.createElement(Form.Item, _extends({}, tailLayout, {
219
229
  noStyle: true,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "4.0.6",
3
+ "version": "4.0.8",
4
4
  "scripts": {
5
5
  "start": " umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",
7
7
  "build:generalfushi": "UMI_ENV=prod REACT_APP_PLATFORM=generalfushi umi build",
8
- "build:yimin": "export NODE_OPTIONS=--openssl-legacy-provider && UMI_ENV=prod REACT_APP_PLATFORM=yimin umi build",
8
+ "build:yimin": "UMI_ENV=prod REACT_APP_PLATFORM=yimin umi build",
9
9
  "build:staging": "UMI_ENV=staging umi build",
10
10
  "build:component": "father build",
11
11
  "postinstall": "umi generate tmp",