coolcare-lite-scada-component 1.0.51 → 1.0.53
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.
|
@@ -377,7 +377,7 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
377
377
|
/** 打开弹框,初始化数据,获取曲线图形 */
|
|
378
378
|
useEffect(function () {
|
|
379
379
|
if (visible && (pointIdListProp === null || pointIdListProp === void 0 ? void 0 : pointIdListProp.length)) {
|
|
380
|
-
var ranges = dateRangeProp || [moment().subtract(1, 'days'), moment()];
|
|
380
|
+
var ranges = dateRangeProp || [moment(moment().subtract(1, 'days').format('YYYY-MM-DD 00:00')), moment(moment().format('YYYY-MM-DD 23:59'))];
|
|
381
381
|
var interval = typeof intervalProp === 'number' && intervalProp ? intervalProp : defaultInterval;
|
|
382
382
|
form.setFieldsValue({
|
|
383
383
|
dateRange: ranges,
|
|
@@ -387,7 +387,7 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
387
387
|
fetchPointHistoryDebounce(pointIdListProp, ranges, interval);
|
|
388
388
|
}
|
|
389
389
|
}, [visible, form, pointIdListProp, dateRangeProp, intervalProp]);
|
|
390
|
-
return /*#__PURE__*/React.createElement(Modal, {
|
|
390
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, {
|
|
391
391
|
title: "\u5386\u53F2\u6570\u636E\u66F2\u7EBF",
|
|
392
392
|
open: visible,
|
|
393
393
|
closable: true,
|
|
@@ -600,7 +600,7 @@ 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(ModalChoosePoint, {
|
|
604
604
|
visible: visiblePointSet,
|
|
605
605
|
onSubmit: function onSubmit(val) {
|
|
606
606
|
setPointIdList(function (pre) {
|
|
@@ -153,7 +153,8 @@ var ModalChoosePoint = function ModalChoosePoint(_ref) {
|
|
|
153
153
|
footer: null,
|
|
154
154
|
onCancel: closeModal,
|
|
155
155
|
visible: visible,
|
|
156
|
-
wrapClassName: 'form-modal'
|
|
156
|
+
wrapClassName: 'form-modal',
|
|
157
|
+
getContainer: false
|
|
157
158
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
158
159
|
layout: "vertical",
|
|
159
160
|
form: form,
|
|
@@ -79,13 +79,15 @@ var LayerForm = function LayerForm() {
|
|
|
79
79
|
backgroundColor = pageConfig.backgroundColor,
|
|
80
80
|
borderRadius = pageConfig.borderRadius,
|
|
81
81
|
dimensions = pageConfig.dimensions,
|
|
82
|
-
backgroundImage = pageConfig.backgroundImage
|
|
82
|
+
backgroundImage = pageConfig.backgroundImage,
|
|
83
|
+
refreshFrequency = pageConfig.refreshFrequency;
|
|
83
84
|
form.setFieldsValue({
|
|
84
85
|
width: dimensions.width,
|
|
85
86
|
height: dimensions.height,
|
|
86
87
|
backgroundColor: backgroundColor,
|
|
87
88
|
backgroundImage: backgroundImage,
|
|
88
89
|
borderRadius: borderRadius,
|
|
90
|
+
refreshFrequency: refreshFrequency,
|
|
89
91
|
// @ts-ignore
|
|
90
92
|
dimensionsSelectValue: dimensionsOptions.includes(// @ts-ignore
|
|
91
93
|
"".concat(dimensions.width, "*").concat(dimensions.height)) ? "".concat(dimensions.width, "*").concat(dimensions.height) : '自定义',
|
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.53",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"start": " umi dev",
|
|
5
|
+
"start": " PORT=8000 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",
|