coolcare-lite-scada-component 2.0.35 → 2.0.37

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.
@@ -42,7 +42,8 @@ var LayerForm = function LayerForm() {
42
42
  backgroundColor = values.backgroundColor,
43
43
  borderRadius = values.borderRadius,
44
44
  backgroundImage = values.backgroundImage,
45
- dimensionsSelectValue = values.dimensionsSelectValue;
45
+ dimensionsSelectValue = values.dimensionsSelectValue,
46
+ refreshFrequency = values.refreshFrequency;
46
47
  var width = values.width,
47
48
  height = values.height;
48
49
  if (dimensionsSelectValue !== '自定义') {
@@ -64,7 +65,8 @@ var LayerForm = function LayerForm() {
64
65
  title: title,
65
66
  backgroundColor: backgroundColor,
66
67
  backgroundImage: backgroundImage,
67
- borderRadius: borderRadius
68
+ borderRadius: borderRadius,
69
+ refreshFrequency: refreshFrequency
68
70
  }));
69
71
  }, {
70
72
  leading: false,
@@ -138,6 +140,14 @@ var LayerForm = function LayerForm() {
138
140
  autoComplete: "off",
139
141
  onValuesChange: onFormChange
140
142
  }, /*#__PURE__*/React.createElement(Form.Item, {
143
+ name: "refreshFrequency",
144
+ label: "\u5237\u65B0\u9891\u7387"
145
+ }, /*#__PURE__*/React.createElement(InputNumber, {
146
+ min: 5,
147
+ max: 999,
148
+ defaultValue: 90,
149
+ addonBefore: "秒"
150
+ })), /*#__PURE__*/React.createElement(Form.Item, {
141
151
  name: "dimensionsSelectValue",
142
152
  label: "\u5206\u8FA8\u7387"
143
153
  }, /*#__PURE__*/React.createElement(Select, {
@@ -90,8 +90,7 @@ function _GetPointPage() {
90
90
  export function GetPointHistoryData(_x7, _x8) {
91
91
  return _GetPointHistoryData.apply(this, arguments);
92
92
  }
93
-
94
- /** 历史数据导出xlsx货pdf(支持进度条) POST /api/GatewayMicro/Point/DownHistoryDataToExcelOrPdf */
93
+ /** 获取点位历史数据 POST /api/GatewayMicro/Point/GetPointHistoryData */
95
94
  function _GetPointHistoryData() {
96
95
  _GetPointHistoryData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(body, options) {
97
96
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
@@ -112,15 +111,17 @@ function _GetPointHistoryData() {
112
111
  }));
113
112
  return _GetPointHistoryData.apply(this, arguments);
114
113
  }
115
- export function DownHistoryDataToExcelOrPdf(_x9, _x10) {
116
- return _DownHistoryDataToExcelOrPdf.apply(this, arguments);
114
+ export function GetPointAggregationData(_x9, _x10) {
115
+ return _GetPointAggregationData.apply(this, arguments);
117
116
  }
118
- function _DownHistoryDataToExcelOrPdf() {
119
- _DownHistoryDataToExcelOrPdf = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body, options) {
117
+
118
+ /** 获取点位历史数据 POST /api/GatewayMicro/Point/GetPointHistoryData */
119
+ function _GetPointAggregationData() {
120
+ _GetPointAggregationData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(body, options) {
120
121
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
121
122
  while (1) switch (_context5.prev = _context5.next) {
122
123
  case 0:
123
- return _context5.abrupt("return", request('/api/GatewayMicro/Point/DownHistoryDataToExcelOrPdf', _objectSpread({
124
+ return _context5.abrupt("return", request('/api/GatewayMicro/Point/GetPointAggregationData', _objectSpread({
124
125
  method: 'POST',
125
126
  headers: {
126
127
  'Content-Type': 'application/json-patch+json'
@@ -133,5 +134,53 @@ function _DownHistoryDataToExcelOrPdf() {
133
134
  }
134
135
  }, _callee5);
135
136
  }));
137
+ return _GetPointAggregationData.apply(this, arguments);
138
+ }
139
+ export function GetTdIndicatorAggregateData(_x11, _x12) {
140
+ return _GetTdIndicatorAggregateData.apply(this, arguments);
141
+ }
142
+
143
+ /** 历史数据导出xlsx货pdf(支持进度条) POST /api/GatewayMicro/Point/DownHistoryDataToExcelOrPdf */
144
+ function _GetTdIndicatorAggregateData() {
145
+ _GetTdIndicatorAggregateData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(body, options) {
146
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
147
+ while (1) switch (_context6.prev = _context6.next) {
148
+ case 0:
149
+ return _context6.abrupt("return", request('/api/GatewayMicro/DeviceIndicator/GetTdIndicatorAggregateData', _objectSpread({
150
+ method: 'POST',
151
+ headers: {
152
+ 'Content-Type': 'application/json-patch+json'
153
+ },
154
+ data: body
155
+ }, options || {})));
156
+ case 1:
157
+ case "end":
158
+ return _context6.stop();
159
+ }
160
+ }, _callee6);
161
+ }));
162
+ return _GetTdIndicatorAggregateData.apply(this, arguments);
163
+ }
164
+ export function DownHistoryDataToExcelOrPdf(_x13, _x14) {
165
+ return _DownHistoryDataToExcelOrPdf.apply(this, arguments);
166
+ }
167
+ function _DownHistoryDataToExcelOrPdf() {
168
+ _DownHistoryDataToExcelOrPdf = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(body, options) {
169
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
170
+ while (1) switch (_context7.prev = _context7.next) {
171
+ case 0:
172
+ return _context7.abrupt("return", request('/api/GatewayMicro/Point/DownHistoryDataToExcelOrPdf', _objectSpread({
173
+ method: 'POST',
174
+ headers: {
175
+ 'Content-Type': 'application/json-patch+json'
176
+ },
177
+ data: body
178
+ }, options || {})));
179
+ case 1:
180
+ case "end":
181
+ return _context7.stop();
182
+ }
183
+ }, _callee7);
184
+ }));
136
185
  return _DownHistoryDataToExcelOrPdf.apply(this, arguments);
137
186
  }
package/es/typings.d.ts CHANGED
@@ -29,30 +29,34 @@ type EditorQuery =
29
29
  scadaType: '0' | '1';
30
30
  /** 来源 */
31
31
  from?: string;
32
+ /** 公司 id */
33
+ companyId: string;
32
34
  /** 项目 id */
33
35
  projectId?: string;
34
36
  }
35
37
  | {
36
38
  scene: 'device';
39
+ /** 公司 id */
40
+ companyId: string;
41
+ /** 项目 id */
42
+ projectId?: string;
37
43
  /** scene = 'device' 时传设备 id */
38
44
  deviceId: string;
39
45
  /** 组态类型:web | app */
40
46
  scadaType: '0' | '1';
41
47
  /** 来源 */
42
48
  from?: string;
43
- /** 项目 id */
44
- projectId?: string;
45
49
  }
46
50
  | {
47
51
  scene: 'freedom';
48
52
  /** 组态 id */
49
53
  scadaId: string;
50
- /** 公司 id */
51
- companyId: string;
52
54
  /** 组态标题 */
53
55
  title: string;
54
56
  /** 来源 */
55
57
  from?: string;
58
+ /** 公司 id */
59
+ companyId: string;
56
60
  /** 项目 id */
57
61
  projectId?: string;
58
62
  };
@@ -84,6 +88,10 @@ type PlayerQuery =
84
88
  token?: string;
85
89
  /** 刷新token */
86
90
  xToken?: string;
91
+ /** 公司 id */
92
+ companyId: string;
93
+ /** 项目 id */
94
+ projectId?: string;
87
95
  }
88
96
  | {
89
97
  /** 通过输入的环境名 env, 决定接口调用的地址,默认是 prod */
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "coolcare-lite-scada-component",
3
- "version": "2.0.35",
3
+ "version": "2.0.37",
4
4
  "scripts": {
5
- "start": "umi dev",
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": "UMI_ENV=prod REACT_APP_PLATFORM=yimin umi build",
8
+ "build:yimin": "export NODE_OPTIONS=--openssl-legacy-provider && 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",
@@ -13,7 +13,7 @@
13
13
  "test": "umi-test",
14
14
  "test:coverage": "umi-test --coverage",
15
15
  "analyze": "ANALYZE=1 umi build",
16
- "deploy:prod": "docker build -t xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/yimin:master-2024-12-2 . && docker push xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/yimin:master-2024-12-2"
16
+ "deploy:prod": "docker build -t xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/yimin:master-2025-3-31 . && docker push xiiman-docker.pkg.coding.net/coolcare-lite/coolcare-scada/yimin:master-2025-3-31"
17
17
  },
18
18
  "main": "./es/componentIndex.js",
19
19
  "module": "./es/componentIndex.js",