coolcare-lite-scada-component 1.0.57 → 1.0.59
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.
|
@@ -170,6 +170,7 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
170
170
|
}
|
|
171
171
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
172
172
|
name: "deviceId",
|
|
173
|
+
className: "temperatureDeviceSelect",
|
|
173
174
|
label: "\u8BBE\u5907",
|
|
174
175
|
rules: [{
|
|
175
176
|
required: true,
|
|
@@ -183,6 +184,9 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
183
184
|
form.setFieldsValue({
|
|
184
185
|
pointIdList: []
|
|
185
186
|
});
|
|
187
|
+
},
|
|
188
|
+
getPopupContainer: function getPopupContainer() {
|
|
189
|
+
return document.querySelector(".temperatureDeviceSelect") || document.body;
|
|
186
190
|
}
|
|
187
191
|
}, deviceList.map(function (item) {
|
|
188
192
|
return /*#__PURE__*/React.createElement(Option, {
|
|
@@ -201,14 +205,18 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
201
205
|
rules: [{
|
|
202
206
|
required: true,
|
|
203
207
|
message: '请选择'
|
|
204
|
-
}]
|
|
208
|
+
}],
|
|
209
|
+
className: "temperaturePointSelect"
|
|
205
210
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
206
211
|
allowClear: true,
|
|
207
212
|
mode: 'multiple',
|
|
208
213
|
showSearch: true,
|
|
209
214
|
optionFilterProp: "label",
|
|
210
215
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
211
|
-
disabled: !getFieldValue('deviceId')
|
|
216
|
+
disabled: !getFieldValue('deviceId'),
|
|
217
|
+
getPopupContainer: function getPopupContainer() {
|
|
218
|
+
return document.querySelector(".temperaturePointSelect") || document.body;
|
|
219
|
+
}
|
|
212
220
|
}, pointList.map(function (item) {
|
|
213
221
|
return /*#__PURE__*/React.createElement(Option, {
|
|
214
222
|
value: item.pointId,
|
|
@@ -121,7 +121,7 @@ var ElePointListCardComponent = function ElePointListCardComponent(_ref5) {
|
|
|
121
121
|
var eventHandler = function eventHandler(pointData) {
|
|
122
122
|
setPointList(function (prev) {
|
|
123
123
|
return prev.map(function (v) {
|
|
124
|
-
if (v.
|
|
124
|
+
if (v.pointId === point.pointId) {
|
|
125
125
|
return _objectSpread(_objectSpread({}, v), pointData);
|
|
126
126
|
}
|
|
127
127
|
return v;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coolcare-lite-scada-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"start": " PORT=8000 umi dev",
|
|
5
|
+
"start": " PORT=8000 UMI_ENV=prod 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
8
|
"build:yimin": "UMI_ENV=prod REACT_APP_PLATFORM=yimin umi build",
|