coolcare-lite-scada-component 1.0.55 → 1.0.57

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.
@@ -600,7 +600,11 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
600
600
  return ['totalenergy', 'tlwatercs', 'tlhgscs'].includes(item.identifierName);
601
601
  })[0]) || {
602
602
  unit: ''
603
- }).unit))) : null)), /*#__PURE__*/React.createElement(ModalChoosePoint, {
603
+ }).unit))) : null)), /*#__PURE__*/React.createElement("div", {
604
+ onClick: function onClick(e) {
605
+ return e.stopPropagation();
606
+ }
607
+ }, /*#__PURE__*/React.createElement(ModalChoosePoint, {
604
608
  visible: visiblePointSet,
605
609
  onSubmit: function onSubmit(val) {
606
610
  setPointIdList(function (pre) {
@@ -613,6 +617,6 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
613
617
  onCancel: function onCancel() {
614
618
  setVisiblePointSet(false);
615
619
  }
616
- }));
620
+ })));
617
621
  };
618
622
  export default DialogPointHistory;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "scripts": {
5
5
  "start": " PORT=8000 umi dev",
6
6
  "build:prod": "UMI_ENV=prod umi build",