coolcare-lite-scada-component 4.1.4-hangxin.2 → 4.1.4
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.
- package/README.md +1 -31
- package/es/components/BoxShadowPicker/index.less.d.ts +9 -9
- package/es/components/ColorPicker/util.js +4 -4
- package/es/components/DialogHistory/index.js +23 -4
- package/es/components/Icon/index.js +3 -4
- package/es/components/IconFont/index.js +1 -1
- package/es/components/ImageUploader/index.js +7 -15
- package/es/constant.js +2 -2
- package/es/element/BorderBox/util/typings.d.ts +9 -9
- package/es/element/Decoration/util/typings.d.ts +9 -9
- package/es/element/EleFan/Component.js +1 -1
- package/es/element/EleState/index.js +1 -1
- package/es/element/PipeNodes/NodeBL/index.js +1 -1
- package/es/element/PipeNodes/NodeBR/index.js +1 -1
- package/es/element/PipeNodes/NodeBottom/index.js +1 -1
- package/es/element/PipeNodes/NodeCenter/index.js +1 -1
- package/es/element/PipeNodes/NodeHorizontal/index.js +1 -1
- package/es/element/PipeNodes/NodeLeft/index.js +1 -1
- package/es/element/PipeNodes/NodeRight/index.js +1 -1
- package/es/element/PipeNodes/NodeTL/index.js +1 -1
- package/es/element/PipeNodes/NodeTR/index.js +1 -1
- package/es/element/PipeNodes/NodeTop/index.js +1 -1
- package/es/element/PipeNodes/NodeVertical/index.js +1 -1
- package/es/pages/display/components/Tools/index.js +1 -1
- package/es/pages/document.ejs +1 -1
- package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +8 -8
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.less.d.ts +7 -7
- package/es/pages/editor/PanelLeft/DecorationEleList/index.less.d.ts +7 -7
- package/es/pages/editor/PanelLeft/GroupManageDialog/index.js +4 -4
- package/es/pages/editor/PanelLeft/MetaEleList/listData.js +11 -11
- package/es/pages/editor/PanelLeft/PipeEleList/listData.js +11 -11
- package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +6 -6
- package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +3 -3
- package/es/pages/editor/PanelLeft/index.js +3 -3
- package/es/pages/editor/PanelRight/index.less.d.ts +7 -7
- package/es/pages/editor/index.js +1 -1
- package/es/services/common/Uploader.js +3 -2
- package/es/services/common/typings.d.ts +15 -15
- package/es/services/master/typings.d.ts +362 -362
- package/es/services/product/typings.d.ts +1045 -1045
- package/es/services/project/typings.d.ts +1609 -1609
- package/es/services/request.js +6 -7
- package/es/shims.x6.d.ts +15 -15
- package/es/utils/cssStyle.js +4 -4
- package/es/utils/decomposeMatrix.js +5 -5
- package/es/utils/events.js +3 -3
- package/es/utils/index.js +34 -34
- package/package.json +1 -1
- package/es/components/Icon/scada.js +0 -40
package/README.md
CHANGED
|
@@ -14,38 +14,8 @@ Start the dev server,
|
|
|
14
14
|
$ yarn start
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
## 航信部署与编辑入口
|
|
18
|
-
|
|
19
|
-
运行 `yarn build:prod` 生成独立站点 `dist`。组件包构建 `yarn build:component`
|
|
20
|
-
只用于业务系统内嵌播放器,不会生成独立编辑站点。
|
|
21
|
-
|
|
22
|
-
编辑页使用 `/scada/editor`,兼容入口 `/scada/edito`;播放器使用 `/scada/player`。
|
|
23
|
-
打开编辑页时需保留业务入口携带的查询参数(例如 `scene`、`scadaType`、设备或页面 ID)。
|
|
24
|
-
SCADA 图标已随 JS 打包,无需在 MinIO 上传 `cdn-asset/iconfont/scada.js`。
|
|
25
|
-
图标源文件:`https://cdn-asset.oss-cn-shanghai.aliyuncs.com/iconfont/scada.js`。
|
|
26
|
-
|
|
27
|
-
将独立站点部署到本项目的 Nginx 服务(端口 8200),并在外层网关主站的
|
|
28
|
-
`location /` 前配置 SCADA 转发。下面的上游域名需替换为实际服务地址:
|
|
29
|
-
|
|
30
|
-
```nginx
|
|
31
|
-
location = /scada {
|
|
32
|
-
return 302 /scada/$is_args$args;
|
|
33
|
-
}
|
|
34
|
-
location ^~ /scada/ {
|
|
35
|
-
proxy_pass http://SCADA_SERVICE:8200;
|
|
36
|
-
proxy_set_header Host $host;
|
|
37
|
-
proxy_set_header X-Real-IP $remote_addr;
|
|
38
|
-
proxy_set_header X-Forwarded-Proto $scheme;
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
本项目 `nginx.conf` 同时支持网关保留或去掉 `/scada/` 前缀。
|
|
43
|
-
验证编辑页以及 `/scada/umi.<hash>.js` 均返回 SCADA 的内容;若编辑页跳转到
|
|
44
|
-
SmartCare 登录页、HTML 加载的是根路径 `/umi.<hash>.js`,说明请求仍被主站接管,
|
|
45
|
-
需要修正网关路由。修改本项目的前端路由不能替代这一步。
|
|
46
|
-
|
|
47
17
|
## 约定
|
|
48
18
|
|
|
49
19
|
* 所有元件的 `name` 以 `el`开头。
|
|
50
20
|
|
|
51
|
-
* player 页面不能使用 windicss, 因为要单独打包组件。
|
|
21
|
+
* player 页面不能使用 windicss, 因为要单独打包组件。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// This file is automatically generated.
|
|
2
|
-
// Please do not change this file!
|
|
3
|
-
interface CssExports {
|
|
4
|
-
'box-shadow-picker-wrap': string;
|
|
5
|
-
'color-picker': string;
|
|
6
|
-
'input-label': string;
|
|
7
|
-
}
|
|
8
|
-
export const cssExports: CssExports;
|
|
9
|
-
export default cssExports;
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'box-shadow-picker-wrap': string;
|
|
5
|
+
'color-picker': string;
|
|
6
|
+
'input-label': string;
|
|
7
|
+
}
|
|
8
|
+
export const cssExports: CssExports;
|
|
9
|
+
export default cssExports;
|
|
@@ -432,6 +432,23 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
432
432
|
type: 'inside',
|
|
433
433
|
xAxisIndex: 0,
|
|
434
434
|
filterMode: 'empty'
|
|
435
|
+
}, {
|
|
436
|
+
id: 'history-y-axis-zoom',
|
|
437
|
+
type: 'slider',
|
|
438
|
+
orient: 'vertical',
|
|
439
|
+
yAxisIndex: yAxisData.map(function (_, index) {
|
|
440
|
+
return index;
|
|
441
|
+
}),
|
|
442
|
+
filterMode: 'none',
|
|
443
|
+
right: 8,
|
|
444
|
+
top: 50,
|
|
445
|
+
bottom: 80,
|
|
446
|
+
width: 18,
|
|
447
|
+
start: 0,
|
|
448
|
+
end: 100,
|
|
449
|
+
showDataShadow: false,
|
|
450
|
+
showDetail: false,
|
|
451
|
+
brushSelect: false
|
|
435
452
|
}],
|
|
436
453
|
legend: {
|
|
437
454
|
show: true,
|
|
@@ -652,8 +669,8 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
652
669
|
height: '500px'
|
|
653
670
|
},
|
|
654
671
|
onEvents: {
|
|
655
|
-
datazoom: function datazoom(
|
|
656
|
-
var _chart$current3, _chart$current3$getEc;
|
|
672
|
+
datazoom: function datazoom() {
|
|
673
|
+
var _chart$current3, _chart$current3$getEc, _option$dataZoom, _xZoom$start, _xZoom$end;
|
|
657
674
|
// 获取当前 echarts 实例
|
|
658
675
|
var myChart = chart === null || chart === void 0 ? void 0 : (_chart$current3 = chart.current) === null || _chart$current3 === void 0 ? void 0 : (_chart$current3$getEc = _chart$current3.getEchartsInstance) === null || _chart$current3$getEc === void 0 ? void 0 : _chart$current3$getEc.call(_chart$current3);
|
|
659
676
|
if (!myChart) return;
|
|
@@ -661,8 +678,10 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
661
678
|
// 获取当前配置
|
|
662
679
|
var option = myChart.getOption();
|
|
663
680
|
// 获取缩放范围
|
|
664
|
-
|
|
665
|
-
var
|
|
681
|
+
// Y zoom also emits this event; statistics use the first X zoom control.
|
|
682
|
+
var xZoom = (_option$dataZoom = option.dataZoom) === null || _option$dataZoom === void 0 ? void 0 : _option$dataZoom[0];
|
|
683
|
+
var startValue = (_xZoom$start = xZoom === null || xZoom === void 0 ? void 0 : xZoom.start) !== null && _xZoom$start !== void 0 ? _xZoom$start : 0;
|
|
684
|
+
var endValue = (_xZoom$end = xZoom === null || xZoom === void 0 ? void 0 : xZoom.end) !== null && _xZoom$end !== void 0 ? _xZoom$end : 100;
|
|
666
685
|
if (startValue === 0 && endValue === 100) {
|
|
667
686
|
setDataZoom(false);
|
|
668
687
|
return;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var MyIcon = createFromIconfontCN({});
|
|
2
|
+
var MyIcon = createFromIconfontCN({
|
|
3
|
+
scriptUrl: 'https://cdn-asset.oss-cn-shanghai.aliyuncs.com/iconfont/scada.js' // 在 iconfont.cn 上生成
|
|
4
|
+
});
|
|
6
5
|
export default MyIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
2
2
|
var IconFont = createFromIconfontCN({
|
|
3
3
|
// scriptUrl: '//at.alicdn.com/t/c/font_3235821_qypojfizzen.js',
|
|
4
|
-
scriptUrl: '
|
|
4
|
+
scriptUrl: 'https://coolcare-lite-assets.oss-cn-shanghai.aliyuncs.com/pc-common/iconfont/iconfont.js'
|
|
5
5
|
});
|
|
6
6
|
export default IconFont;
|
|
@@ -19,12 +19,6 @@ import { useState } from 'react';
|
|
|
19
19
|
import { Button, Upload, message, notification } from 'antd';
|
|
20
20
|
import { UploadOutlined, LoadingOutlined } from '@ant-design/icons';
|
|
21
21
|
import { Upload as uploadFile } from "../../services/common/Uploader";
|
|
22
|
-
var MINIO_INTERNAL_URL = 'http://minio:9000';
|
|
23
|
-
|
|
24
|
-
/** 只保存 OSS 路径,避免将容器内部地址写入图片配置。 */
|
|
25
|
-
var normalizeUploadUrl = function normalizeUploadUrl(url) {
|
|
26
|
-
return url.startsWith(MINIO_INTERNAL_URL) ? url.slice(MINIO_INTERNAL_URL.length) : url;
|
|
27
|
-
};
|
|
28
22
|
/** 计算图片大小 */
|
|
29
23
|
var calculateSize = function calculateSize(file) {
|
|
30
24
|
return new Promise(function (resolve) {
|
|
@@ -87,8 +81,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
87
81
|
duration: 10,
|
|
88
82
|
description: /*#__PURE__*/React.createElement("div", null, "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ", size, "M, \u5EFA\u8BAE\u538B\u7F29\u540E\u518D\u4E0A\u4F20\u3002", ' ', /*#__PURE__*/React.createElement("a", {
|
|
89
83
|
target: "_blank",
|
|
90
|
-
href: "https://squoosh.app/"
|
|
91
|
-
rel: "noreferrer"
|
|
84
|
+
href: "https://squoosh.app/"
|
|
92
85
|
}, "\u56FE\u7247\u5728\u7EBF\u538B\u7F29"))
|
|
93
86
|
});
|
|
94
87
|
}
|
|
@@ -96,7 +89,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
96
89
|
};
|
|
97
90
|
var customUploadRequest = /*#__PURE__*/function () {
|
|
98
91
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
99
|
-
var onSuccess, onError, file, size, _yield$uploadFile,
|
|
92
|
+
var onSuccess, onError, file, size, _yield$uploadFile, success, data, _t;
|
|
100
93
|
return _regenerator().w(function (_context) {
|
|
101
94
|
while (1) switch (_context.p = _context.n) {
|
|
102
95
|
case 0:
|
|
@@ -115,20 +108,19 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
115
108
|
});
|
|
116
109
|
case 3:
|
|
117
110
|
_yield$uploadFile = _context.v;
|
|
118
|
-
|
|
111
|
+
success = _yield$uploadFile.success;
|
|
119
112
|
data = _yield$uploadFile.data;
|
|
120
|
-
if (
|
|
121
|
-
url = normalizeUploadUrl(data);
|
|
113
|
+
if (success && (data === null || data === void 0 ? void 0 : data.length)) {
|
|
122
114
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
123
|
-
url:
|
|
115
|
+
url: data[0],
|
|
124
116
|
size: size,
|
|
125
117
|
name: file.name
|
|
126
118
|
});
|
|
127
119
|
// @ts-ignore
|
|
128
120
|
onSuccess({}, // @ts-ignore
|
|
129
121
|
_objectSpread(_objectSpread({}, options.file), {}, {
|
|
130
|
-
uid:
|
|
131
|
-
url:
|
|
122
|
+
uid: data[0],
|
|
123
|
+
url: data[0]
|
|
132
124
|
}));
|
|
133
125
|
} else {
|
|
134
126
|
onError === null || onError === void 0 ? void 0 : onError(new Error('文件上传失败'));
|
package/es/constant.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type BorderColors = [string, string];
|
|
2
|
-
|
|
3
|
-
export type ExtraData = {
|
|
4
|
-
colors: BorderColors;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export interface BorderBoxProps<T> {
|
|
8
|
-
node?: T;
|
|
9
|
-
}
|
|
1
|
+
export type BorderColors = [string, string];
|
|
2
|
+
|
|
3
|
+
export type ExtraData = {
|
|
4
|
+
colors: BorderColors;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export interface BorderBoxProps<T> {
|
|
8
|
+
node?: T;
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type DecorationColors = [string, string];
|
|
2
|
-
|
|
3
|
-
export type ExtraData = {
|
|
4
|
-
colors: DecorationColors;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export type DecorationProps<T> = {
|
|
8
|
-
node?: T;
|
|
9
|
-
};
|
|
1
|
+
export type DecorationColors = [string, string];
|
|
2
|
+
|
|
3
|
+
export type ExtraData = {
|
|
4
|
+
colors: DecorationColors;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type DecorationProps<T> = {
|
|
8
|
+
node?: T;
|
|
9
|
+
};
|
|
@@ -98,7 +98,7 @@ var EleFanComponent = function EleFanComponent(_ref) {
|
|
|
98
98
|
className: styles.wrap
|
|
99
99
|
}, /*#__PURE__*/React.createElement("img", {
|
|
100
100
|
className: "".concat(styles['fan-img'], " ").concat(fanIsOn ? styles.on : ''),
|
|
101
|
-
src: "
|
|
101
|
+
src: "https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/fan.png"
|
|
102
102
|
})));
|
|
103
103
|
};
|
|
104
104
|
export default /*#__PURE__*/memo(EleFanComponent, reactShapeNodeAreEqual);
|
|
@@ -89,7 +89,7 @@ export var defaultConfig = {
|
|
|
89
89
|
refWidth: '60%',
|
|
90
90
|
refHeight: '60%',
|
|
91
91
|
fill: 'red',
|
|
92
|
-
xlinkHref: '
|
|
92
|
+
xlinkHref: 'https://utopia1994.oss-cn-shanghai.aliyuncs.com/img-bed/202111021014940.svg'
|
|
93
93
|
},
|
|
94
94
|
label: {
|
|
95
95
|
text: '温度',
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/be42df157707426fb53360693eae8094.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -43,7 +43,7 @@ export var defaultConfig = {
|
|
|
43
43
|
}],
|
|
44
44
|
attrs: {
|
|
45
45
|
body: {
|
|
46
|
-
xlinkHref: '
|
|
46
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/7cdce2491ce3468aae034f531bf149d5.svg',
|
|
47
47
|
refWidth: '100%',
|
|
48
48
|
refHeight: '100%'
|
|
49
49
|
}
|
|
@@ -43,7 +43,7 @@ export var defaultConfig = {
|
|
|
43
43
|
}],
|
|
44
44
|
attrs: {
|
|
45
45
|
body: {
|
|
46
|
-
xlinkHref: '
|
|
46
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/2358402046b8439b9bee49814e5d94e3.svg',
|
|
47
47
|
refWidth: '100%',
|
|
48
48
|
refHeight: '100%'
|
|
49
49
|
}
|
|
@@ -43,7 +43,7 @@ export var defaultConfig = {
|
|
|
43
43
|
}],
|
|
44
44
|
attrs: {
|
|
45
45
|
body: {
|
|
46
|
-
xlinkHref: '
|
|
46
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/58225b888f6a48b9af4b21444700c6ba.svg',
|
|
47
47
|
refWidth: '100%',
|
|
48
48
|
refHeight: '100%'
|
|
49
49
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/dd03192a3abc487aa7b91ad75d1be533.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/834835fb0d60434d934eee07d18cfafc.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/40a74ebbf068410593fbc92442088fc7.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/ad1218665b854070b21f5572e452c6ef.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/fe66d6f5586742e3a9aad2782fb45d86.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/63831cb71bd24c47bb11b6e02d9e4c77.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/8e5f1deaf3a8466fa168588eaac664bc.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -18,7 +18,7 @@ var PlayerTools = function PlayerTools(_ref) {
|
|
|
18
18
|
isFullscreen = _useFullscreen2[0],
|
|
19
19
|
toggleFullscreen = _useFullscreen2[1].toggleFullscreen;
|
|
20
20
|
var onClickConfig = function onClickConfig() {
|
|
21
|
-
window.open("/
|
|
21
|
+
window.open("http://localhost:9000/editor".concat(window.location.search), '_blank');
|
|
22
22
|
};
|
|
23
23
|
var resetView = function resetView() {
|
|
24
24
|
// 缩放画布内容,使画布内容充满视口
|
package/es/pages/document.ejs
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
|
17
17
|
/>
|
|
18
18
|
<title>组态 CoolCare</title>
|
|
19
|
-
<link rel="icon" href="
|
|
19
|
+
<link rel="icon" href="https://front-end-assets.oss-cn-shanghai.aliyuncs.com/images/coolcarelitelogo/logo_light3.png" type="image/x-icon" />
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
22
22
|
<noscript>请允许浏览器使用 Javascript</noscript>
|
|
@@ -9,54 +9,54 @@ import { defaultConfig as defaultConfigLightning } from "../../../../element/Bas
|
|
|
9
9
|
export var elementList = [
|
|
10
10
|
// 矩形
|
|
11
11
|
{
|
|
12
|
-
url: '
|
|
12
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E7%9F%A9%E5%BD%A2.svg',
|
|
13
13
|
label: '',
|
|
14
14
|
width: 30,
|
|
15
15
|
payload: defaultConfigRectangle
|
|
16
16
|
},
|
|
17
17
|
// 圆形
|
|
18
18
|
{
|
|
19
|
-
url: '
|
|
19
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%9C%86%E5%BD%A2.svg',
|
|
20
20
|
label: '',
|
|
21
21
|
width: 30,
|
|
22
22
|
payload: defaultConfigCircle
|
|
23
23
|
},
|
|
24
24
|
// 椭圆形
|
|
25
25
|
{
|
|
26
|
-
url: '
|
|
26
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%A4%AD%E5%9C%86%E5%BD%A2.svg',
|
|
27
27
|
label: '',
|
|
28
28
|
width: 34,
|
|
29
29
|
payload: defaultConfigEllipse
|
|
30
30
|
},
|
|
31
31
|
// 评论框
|
|
32
32
|
{
|
|
33
|
-
url: '
|
|
33
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%AF%B9%E8%AF%9D%E6%A1%86.svg',
|
|
34
34
|
label: '',
|
|
35
35
|
width: 30,
|
|
36
36
|
payload: defaultConfigCommentBox
|
|
37
37
|
}, {
|
|
38
|
-
url: '
|
|
38
|
+
url: 'http://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/comment-box2.svg',
|
|
39
39
|
label: '',
|
|
40
40
|
width: 38,
|
|
41
41
|
payload: defaultConfigCommentBox2
|
|
42
42
|
},
|
|
43
43
|
// 心形
|
|
44
44
|
{
|
|
45
|
-
url: '
|
|
45
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/heart.svg',
|
|
46
46
|
label: '',
|
|
47
47
|
width: 30,
|
|
48
48
|
payload: defaultConfigHeart
|
|
49
49
|
},
|
|
50
50
|
// 星星
|
|
51
51
|
{
|
|
52
|
-
url: '
|
|
52
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%98%9F%E6%98%9F.svg',
|
|
53
53
|
label: '',
|
|
54
54
|
width: 30,
|
|
55
55
|
payload: defaultConfigStar
|
|
56
56
|
},
|
|
57
57
|
// 闪电
|
|
58
58
|
{
|
|
59
|
-
url: '
|
|
59
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/lightning.svg',
|
|
60
60
|
label: '',
|
|
61
61
|
width: 28,
|
|
62
62
|
payload: defaultConfigLightning
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// This file is automatically generated.
|
|
2
|
-
// Please do not change this file!
|
|
3
|
-
interface CssExports {
|
|
4
|
-
'border-box-ele-item': string;
|
|
5
|
-
}
|
|
6
|
-
export const cssExports: CssExports;
|
|
7
|
-
export default cssExports;
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'border-box-ele-item': string;
|
|
5
|
+
}
|
|
6
|
+
export const cssExports: CssExports;
|
|
7
|
+
export default cssExports;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// This file is automatically generated.
|
|
2
|
-
// Please do not change this file!
|
|
3
|
-
interface CssExports {
|
|
4
|
-
'decoration-ele-item': string;
|
|
5
|
-
}
|
|
6
|
-
export const cssExports: CssExports;
|
|
7
|
-
export default cssExports;
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'decoration-ele-item': string;
|
|
5
|
+
}
|
|
6
|
+
export const cssExports: CssExports;
|
|
7
|
+
export default cssExports;
|
|
@@ -33,10 +33,10 @@ var DragHandle = SortableHandle(function () {
|
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
/**
|
|
37
|
-
* @param color color
|
|
38
|
-
* @param children children
|
|
39
|
-
* @param onClick onClick
|
|
36
|
+
/**
|
|
37
|
+
* @param color color
|
|
38
|
+
* @param children children
|
|
39
|
+
* @param onClick onClick
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
var SortableItem = SortableElement(function (_ref) {
|
|
@@ -25,23 +25,23 @@ export var elementList = [{
|
|
|
25
25
|
payload: defaultConfigElePointImage,
|
|
26
26
|
tooltipTitle: '适用于图片/动图表示功能状态'
|
|
27
27
|
}, {
|
|
28
|
-
url: '
|
|
28
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E7%82%B9%E4%BD%8D%E7%8A%B6%E6%80%81.svg',
|
|
29
29
|
label: '状态点位',
|
|
30
30
|
width: 25,
|
|
31
31
|
payload: defaultConfigElePointState,
|
|
32
32
|
tooltipTitle: '适用于图标颜色变化表示功能状态'
|
|
33
33
|
}, {
|
|
34
|
-
url: '
|
|
34
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E7%82%B9%E4%BD%8D%E9%9D%A2%E6%9D%BF.svg',
|
|
35
35
|
label: '点位列表',
|
|
36
36
|
width: 25,
|
|
37
37
|
payload: defaultConfigElePointList
|
|
38
38
|
}, {
|
|
39
|
-
url: '
|
|
39
|
+
url: 'http://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E4%BB%AA%E8%A1%A8%E7%9B%98.svg',
|
|
40
40
|
label: '仪表盘',
|
|
41
41
|
payload: defaultConfigGauge,
|
|
42
42
|
width: 28
|
|
43
43
|
}, {
|
|
44
|
-
url: '
|
|
44
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E9%A3%8E%E6%89%87.svg',
|
|
45
45
|
label: '风机',
|
|
46
46
|
payload: defaultConfigEleFan,
|
|
47
47
|
width: 26
|
|
@@ -51,37 +51,37 @@ export var elementList = [{
|
|
|
51
51
|
width: 30,
|
|
52
52
|
payload: defaultConfigEleText
|
|
53
53
|
}, {
|
|
54
|
-
url: '
|
|
54
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%8C%89%E9%92%AE.svg',
|
|
55
55
|
label: '按钮',
|
|
56
56
|
width: 30,
|
|
57
57
|
payload: defaultConfigEleButton
|
|
58
58
|
}, {
|
|
59
|
-
url: '
|
|
59
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/switch.svg',
|
|
60
60
|
label: '开关',
|
|
61
61
|
width: 30,
|
|
62
62
|
payload: defaultConfigEleSwitch
|
|
63
63
|
}, {
|
|
64
|
-
url: '
|
|
64
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%8C%87%E7%A4%BA%E7%81%AF.svg',
|
|
65
65
|
label: '指示灯',
|
|
66
66
|
width: 25,
|
|
67
67
|
payload: defaultConfigEleIndicatorLight
|
|
68
68
|
}, {
|
|
69
|
-
url: '
|
|
69
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E9%97%AA%E7%83%81%E5%91%8A%E8%AD%A6.svg',
|
|
70
70
|
label: '闪烁告警',
|
|
71
71
|
width: 22,
|
|
72
72
|
payload: defaultConfigEleShine
|
|
73
73
|
}, {
|
|
74
|
-
url: '
|
|
74
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%9B%BE%E6%A0%87.svg',
|
|
75
75
|
label: '图标',
|
|
76
76
|
width: 25,
|
|
77
77
|
payload: defaultConfigEleIcon
|
|
78
78
|
}, {
|
|
79
|
-
url: '
|
|
79
|
+
url: 'http://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/time-circle.svg',
|
|
80
80
|
label: '时间',
|
|
81
81
|
width: 28,
|
|
82
82
|
payload: defaultConfigClock
|
|
83
83
|
}, {
|
|
84
|
-
url: '
|
|
84
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E8%BF%9E%E7%BA%BF.svg',
|
|
85
85
|
label: '连接线',
|
|
86
86
|
width: 28,
|
|
87
87
|
payload: defaultConfigEdgeLinePort
|