coolcare-lite-scada-component 4.0.7 → 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.
|
@@ -171,6 +171,7 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
171
171
|
}
|
|
172
172
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
173
173
|
name: "deviceId",
|
|
174
|
+
className: "temperatureDeviceSelect",
|
|
174
175
|
label: "\u8BBE\u5907",
|
|
175
176
|
rules: [{
|
|
176
177
|
required: true,
|
|
@@ -184,6 +185,9 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
184
185
|
form.setFieldsValue({
|
|
185
186
|
pointIdList: []
|
|
186
187
|
});
|
|
188
|
+
},
|
|
189
|
+
getPopupContainer: function getPopupContainer() {
|
|
190
|
+
return document.querySelector('.temperatureDeviceSelect') || document.body;
|
|
187
191
|
}
|
|
188
192
|
}, deviceList.map(function (item) {
|
|
189
193
|
return /*#__PURE__*/React.createElement(Option, {
|
|
@@ -202,20 +206,24 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
202
206
|
rules: [{
|
|
203
207
|
required: true,
|
|
204
208
|
message: '请选择'
|
|
205
|
-
}]
|
|
209
|
+
}],
|
|
210
|
+
className: "temperaturePointSelect"
|
|
206
211
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
207
212
|
allowClear: true,
|
|
208
213
|
mode: 'multiple',
|
|
209
214
|
showSearch: true,
|
|
210
215
|
optionFilterProp: "label",
|
|
211
216
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
212
|
-
disabled: !getFieldValue('deviceId')
|
|
217
|
+
disabled: !getFieldValue('deviceId'),
|
|
218
|
+
getPopupContainer: function getPopupContainer() {
|
|
219
|
+
return document.querySelector('.temperaturePointSelect') || document.body;
|
|
220
|
+
}
|
|
213
221
|
}, pointList.map(function (item) {
|
|
214
222
|
return /*#__PURE__*/React.createElement(Option, {
|
|
215
|
-
value: item.pointId,
|
|
216
|
-
label: item.pointName,
|
|
217
|
-
key: item.pointId
|
|
218
|
-
}, 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);
|
|
219
227
|
})));
|
|
220
228
|
}), /*#__PURE__*/React.createElement(Form.Item, _extends({}, tailLayout, {
|
|
221
229
|
noStyle: true,
|