dcim-topology2d 2.0.7 → 2.1.0
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/chart-diagram/src/echarts/index.js +4 -1
- package/chart-diagram/src/utils/changeOptions.d.ts +1 -0
- package/chart-diagram/src/utils/changeOptions.js +49 -35
- package/chart-diagram/src/utils/conversion.d.ts +1 -0
- package/chart-diagram/src/utils/conversion.js +182 -22
- package/chart-diagram/src/utils/formatter.d.ts +1 -1
- package/chart-diagram/src/utils/formatter.js +96 -19
- package/chart-diagram/src/utils/index.d.ts +1 -0
- package/chart-diagram/src/utils/index.js +1 -0
- package/chart-diagram/src/utils/render.d.ts +1 -1
- package/chart-diagram/src/utils/render.js +47 -27
- package/chart-diagram/src/utils/surfaceParametricConversion.d.ts +3 -0
- package/chart-diagram/src/utils/surfaceParametricConversion.js +252 -0
- package/core/src/canvas.js +4 -3
- package/core/src/common.js +16 -10
- package/core/src/core.d.ts +2 -0
- package/core/src/core.js +61 -23
- package/core/src/element/common.d.ts +2 -1
- package/core/src/element/common.js +15 -15
- package/core/src/element/datePicker.d.ts +3 -0
- package/core/src/element/datePicker.js +47 -0
- package/core/src/element/index.d.ts +2 -1
- package/core/src/element/index.js +3 -1
- package/core/src/element/select.js +14 -2
- package/core/src/element/tab.js +14 -12
- package/core/src/element/time.d.ts +3 -0
- package/core/src/element/time.js +44 -0
- package/core/src/middles/default.js +8 -2
- package/core/src/middles/nodes/formDatePicker.d.ts +2 -0
- package/core/src/middles/nodes/formDatePicker.js +66 -0
- package/core/src/middles/nodes/formselect.js +7 -0
- package/core/src/middles/nodes/index.d.ts +3 -1
- package/core/src/middles/nodes/index.js +3 -0
- package/core/src/middles/nodes/time.d.ts +2 -0
- package/core/src/middles/nodes/time.js +98 -0
- package/core/src/models/node.js +27 -4
- package/core/src/preview.d.ts +1 -0
- package/core/src/preview.js +30 -6
- package/core/src/renderLayer.js +13 -2
- package/core/src/store/data.d.ts +10 -2
- package/core/src/store/data.js +14 -5
- package/core/src/utils/assignment.d.ts +2 -1
- package/core/src/utils/assignment.js +29 -12
- package/core/src/utils/conversion.d.ts +3 -1
- package/core/src/utils/conversion.js +46 -3
- package/core/src/utils/onmousevent.js +15 -12
- package/core/src/utils/params.js +5 -0
- package/package.json +1 -1
- package/static/echartsDefaultData.js +15 -4
- package/style/common.css +0 -3
- package/style/datePicker.css +44 -0
- package/style/editor.css +3 -0
- package/style/index.css +1 -0
package/core/src/store/data.d.ts
CHANGED
@@ -26,6 +26,7 @@ export interface visualization2DData {
|
|
26
26
|
mqttTopics?: string;
|
27
27
|
manualCps?: boolean;
|
28
28
|
dataConstruct?: any;
|
29
|
+
bindDataTooltipVisible?: boolean;
|
29
30
|
data?: any;
|
30
31
|
bkImageRect?: any;
|
31
32
|
}
|
@@ -37,6 +38,7 @@ export interface paramsData {
|
|
37
38
|
assetIds?: [],
|
38
39
|
areaIds?: [],
|
39
40
|
varVaule?: [],
|
41
|
+
branchValue?: [],
|
40
42
|
echartData?: [],
|
41
43
|
echartAssemblyData?: [],
|
42
44
|
routingkey?: string,
|
@@ -55,6 +57,7 @@ export interface visualization2DStore {
|
|
55
57
|
data: visualization2DData;
|
56
58
|
}[];
|
57
59
|
elementInteractivePoor: {}; // element 交互过渡数据
|
60
|
+
pickerDataPool: {}; // datePicker 交互数据池
|
58
61
|
echartsDataPool: {}; // echarts Dom节点数据
|
59
62
|
echartsOptionsPool: {}; // echarts options节点数据
|
60
63
|
echartsRealDataPool: {}; // echarts 实时数据
|
@@ -88,7 +91,8 @@ export const createStore = () => {
|
|
88
91
|
mqttOptions: {
|
89
92
|
clientId: s8()
|
90
93
|
},
|
91
|
-
dataConstruct: {}
|
94
|
+
dataConstruct: {},
|
95
|
+
bindDataTooltipVisible: true
|
92
96
|
},
|
93
97
|
mqttData: null,
|
94
98
|
initConfNode: {},
|
@@ -100,6 +104,7 @@ export const createStore = () => {
|
|
100
104
|
assetIds: [],
|
101
105
|
areaIds: [],
|
102
106
|
varVaule: [],
|
107
|
+
branchValue: [],
|
103
108
|
echartData: [],
|
104
109
|
echartAssemblyData: [],
|
105
110
|
routingkey: '',
|
@@ -108,6 +113,7 @@ export const createStore = () => {
|
|
108
113
|
pens: {},
|
109
114
|
options: { ...DefalutOptions },
|
110
115
|
elementInteractivePoor: {}, // element 交互过渡数据
|
116
|
+
pickerDataPool: {}, // datePicker 交互数据池
|
111
117
|
echartsDataPool: {}, // echarts Dom节点数据
|
112
118
|
echartsOptionsPool: {}, // echarts options节点数据
|
113
119
|
echartsRealDataPool: {}, // echarts 实时数据
|
@@ -159,7 +165,8 @@ export const clearStore = (store: visualization2DStore, del: string) => {
|
|
159
165
|
mqttOptions: {
|
160
166
|
clientId: s8()
|
161
167
|
},
|
162
|
-
dataConstruct: {}
|
168
|
+
dataConstruct: {},
|
169
|
+
bindDataTooltipVisible: true
|
163
170
|
};
|
164
171
|
store.mqttData = null;
|
165
172
|
store.initConfNode = {};
|
@@ -171,6 +178,7 @@ export const clearStore = (store: visualization2DStore, del: string) => {
|
|
171
178
|
assetIds: [],
|
172
179
|
areaIds: [],
|
173
180
|
varVaule: [],
|
181
|
+
branchValue: [],
|
174
182
|
echartData: [],
|
175
183
|
echartAssemblyData: [],
|
176
184
|
routingkey: '',
|
package/core/src/store/data.js
CHANGED
@@ -13,7 +13,7 @@ import { default as mitt } from 'mitt';
|
|
13
13
|
import { Lock } from '../models';
|
14
14
|
import {DefalutOptions} from '../options';
|
15
15
|
import {s8} from '../utils';
|
16
|
-
import {commonStore} from './common'
|
16
|
+
import {commonStore} from './common';
|
17
17
|
import {removeAllElement} from '../../../store';
|
18
18
|
export var createStore = function () {
|
19
19
|
return {
|
@@ -31,7 +31,8 @@ export var createStore = function () {
|
|
31
31
|
mqttOptions: {
|
32
32
|
clientId: s8()
|
33
33
|
},
|
34
|
-
dataConstruct: {}
|
34
|
+
dataConstruct: {},
|
35
|
+
bindDataTooltipVisible: true
|
35
36
|
},
|
36
37
|
mqttData: null,
|
37
38
|
initConfNode: {},
|
@@ -43,6 +44,7 @@ export var createStore = function () {
|
|
43
44
|
assetIds: [],
|
44
45
|
areaIds: [],
|
45
46
|
varVaule: [],
|
47
|
+
branchValue: [],
|
46
48
|
echartData: [],
|
47
49
|
echartAssemblyData: [],
|
48
50
|
routingkey: '',
|
@@ -51,9 +53,10 @@ export var createStore = function () {
|
|
51
53
|
pens: {},
|
52
54
|
options: { ...DefalutOptions },
|
53
55
|
elementInteractivePoor: {}, // element 交互过渡数据
|
56
|
+
pickerDataPool: {}, // datePicker 交互数据池
|
54
57
|
echartsDataPool: {}, // echarts Dom节点数据
|
55
58
|
echartsOptionsPool: {}, // echarts options节点数据
|
56
|
-
echartsRealDataPool: {}, // echarts 实时数据
|
59
|
+
echartsRealDataPool: {}, // echarts 实时数据 datePicker
|
57
60
|
switchTabDataPool: {}, // tabs
|
58
61
|
tableDataPool: {}, // form table
|
59
62
|
selectDataPool: {}, // form select
|
@@ -67,7 +70,8 @@ export var createStore = function () {
|
|
67
70
|
dpiRatio: 1,
|
68
71
|
lastScale: 1,
|
69
72
|
monitorAlarm: false,// 全局报警标记,代表正在访问的这个topology文件中是否有告警发生
|
70
|
-
parentElem: null
|
73
|
+
parentElem: null,
|
74
|
+
timeDataPool: {}, // time
|
71
75
|
};
|
72
76
|
};
|
73
77
|
export var useStore = function (id) {
|
@@ -86,6 +90,7 @@ export function clearElementDataPool(data) {
|
|
86
90
|
if(node.chart) {
|
87
91
|
node.chart.off('mouseover');
|
88
92
|
node.chart.off('mouseout');
|
93
|
+
node.chart.off('globalout');
|
89
94
|
node.chart.dispose();
|
90
95
|
}
|
91
96
|
if(node.div && node.div.parentNode) node.div.parentNode.removeChild(node.div);
|
@@ -136,7 +141,8 @@ export var clearStore = function (store, del) {
|
|
136
141
|
mqttOptions: {
|
137
142
|
clientId: s8()
|
138
143
|
},
|
139
|
-
dataConstruct: {}
|
144
|
+
dataConstruct: {},
|
145
|
+
bindDataTooltipVisible: true
|
140
146
|
};
|
141
147
|
store.initConfNode = {};
|
142
148
|
store.mqttParams = {
|
@@ -147,6 +153,7 @@ export var clearStore = function (store, del) {
|
|
147
153
|
assetIds: [],
|
148
154
|
areaIds: [],
|
149
155
|
varVaule: [],
|
156
|
+
branchValue: [],
|
150
157
|
echartData: [],
|
151
158
|
echartAssemblyData: [],
|
152
159
|
routingkey: '',
|
@@ -158,6 +165,7 @@ export var clearStore = function (store, del) {
|
|
158
165
|
store.lastScale = 1;
|
159
166
|
store.monitorAlarm = false;
|
160
167
|
store.elementInteractivePoor = {};
|
168
|
+
store.pickerDataPool = {};
|
161
169
|
store.echartsOptionsPool = {};
|
162
170
|
store.echartsRealDataPool = {};
|
163
171
|
store.switchTabDataPool = {};
|
@@ -170,6 +178,7 @@ export var clearStore = function (store, del) {
|
|
170
178
|
iframeDataPool: store.iframeDataPool,
|
171
179
|
formoverDataPool: store.formoverDataPool,
|
172
180
|
formoverCanvasDataPool: store.formoverCanvasDataPool,
|
181
|
+
timeDataPool: store.timeDataPool
|
173
182
|
});
|
174
183
|
if(del) {
|
175
184
|
delete commonStore[store.id];
|
@@ -3,4 +3,5 @@ import {Node} from '../models';
|
|
3
3
|
export declare function setInitNodeDataValidat(node: any, TID: string, type: string, order: number): void;
|
4
4
|
export declare function initDefaultValidat(node: any, retData: any): void;
|
5
5
|
export declare function setDefaultNodeValidat(node: any, retData: any): any;
|
6
|
-
export declare function setConnectionTagForConf(node: Node): void;
|
6
|
+
export declare function setConnectionTagForConf(node: Node): void;
|
7
|
+
export declare function setConnectionTabsData(node: Node): void;
|
@@ -16,7 +16,12 @@ export function setInitNodeDataValidat(node, TID, type, order) {
|
|
16
16
|
|
17
17
|
node.TID = TID;
|
18
18
|
|
19
|
-
node.visibleSwitch
|
19
|
+
if(typeof node.visibleSwitch !== 'boolean') {
|
20
|
+
// 兼容旧版显示隐藏属性值设置
|
21
|
+
node.visibleSwitch = type === 'topology';
|
22
|
+
}else {
|
23
|
+
node.visibleSwitch = type === 'topology' && node.visibleSwitch;
|
24
|
+
}
|
20
25
|
|
21
26
|
if(typeof order === "number") node.order = order;
|
22
27
|
if(type !== 'topology') node.selectDropdown = false;
|
@@ -42,14 +47,15 @@ export function initDefaultValidat(node, retData) {
|
|
42
47
|
if (node.name === 'line') {
|
43
48
|
node.defaultStrokeStyle = node.strokeStyle;
|
44
49
|
}
|
50
|
+
const dataDictionary = retData && {...retData.varData, ...retData.branchNameData} || {};
|
45
51
|
// 变量类型数据展示,不需要实时更新
|
46
|
-
if(Array.isArray(node.data) &&
|
52
|
+
if(Array.isArray(node.data) && Object.keys(dataDictionary).length) {
|
47
53
|
let typeName = '';
|
48
54
|
let imgs = '';
|
49
|
-
const
|
55
|
+
const assetId = retData.asset && retData.asset.assetId;
|
50
56
|
node.data.map((vd) => {
|
51
|
-
|
52
|
-
|
57
|
+
const varNode = dataDictionary[vd.value] || dataDictionary[`${assetId}_${vd.value}`];
|
58
|
+
if((vd.key.includes('varValue') || vd.key.includes('branchVal')) && varNode){
|
53
59
|
const showType = varNode.showType ? parseInt(varNode.showType) : 1;
|
54
60
|
if(showType === 1 && varNode.value) typeName += typeName ? `,${varNode.value}` : varNode.value;
|
55
61
|
if(showType === 2 && varNode.value) console.log('显示图标>>>');
|
@@ -137,15 +143,10 @@ export function setConnectionTagForConf(node) {
|
|
137
143
|
if(t === 'statisticType' || t.includes('switchTabType')) setType = 'tab';
|
138
144
|
if(t.includes('selectOption')) setType = 'selectShow';
|
139
145
|
});
|
140
|
-
|
141
|
-
if(!setType && isTabs) console.log('>>>未能找到绑定的标签数据,请检查绑定的Tabs标签是否包含switchTabType前缀>>>');
|
146
|
+
if(!setType) console.log('>>>未能找到绑定的标签数据,请检查绑定的Tabs标签是否包含switchTabType前缀>>>');
|
142
147
|
if(setType === 'tab'){
|
143
148
|
// tab切换
|
144
|
-
|
145
|
-
let topologyChangeData = commonStore[node.TID].switchTabDataPool;
|
146
|
-
let keyName = node.bindStaticId ? `${tagData}Data` : `${tagData}AreaData`;
|
147
|
-
if (!topologyChangeData[keyName]) topologyChangeData[keyName] = {};
|
148
|
-
topologyChangeData[keyName][node.id] = node;
|
149
|
+
setConnectionTabsData(node);
|
149
150
|
}
|
150
151
|
if(setType === 'selectShow'){
|
151
152
|
// 下拉显示隐藏
|
@@ -165,4 +166,20 @@ export function setConnectionTagForConf(node) {
|
|
165
166
|
commonStore[node.TID].selectTabDataPool[parentId].set(node.id, params);
|
166
167
|
}
|
167
168
|
}
|
169
|
+
}
|
170
|
+
|
171
|
+
/**
|
172
|
+
* 初始化配置tabs数据
|
173
|
+
* @param node
|
174
|
+
*/
|
175
|
+
export function setConnectionTabsData(node) {
|
176
|
+
const switchTabType = node.tags.find((t) => {
|
177
|
+
return t.includes('switchTabType');
|
178
|
+
}); // 获取按钮组类型
|
179
|
+
if(!switchTabType) return;
|
180
|
+
const isTabs = node.events && node.events.find((ev) => ev.action === 8);
|
181
|
+
let topologyChangeData = commonStore[node.TID].switchTabDataPool;
|
182
|
+
let keyName = node.bindStaticId && isTabs ? `${switchTabType}Data` : `${switchTabType}AreaData`;
|
183
|
+
if (!topologyChangeData[keyName]) topologyChangeData[keyName] = {};
|
184
|
+
topologyChangeData[keyName][node.id] = node;
|
168
185
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import {Node} from "../models";
|
2
|
+
export declare function getTabConnectSHConf(node: Node): Node;
|
2
3
|
export declare function tabStaticOperation(type: string, node: Node, areaData: any, params: object): void;
|
3
|
-
export declare function tabHideShowOperation(node: any, areaData: any): void;
|
4
|
+
export declare function tabHideShowOperation(node: any, areaData: any, visible: boolean): void;
|
4
5
|
export declare function getEchartsRealData(node: {}, data: []): void;
|
5
6
|
export declare function setInitConfData(id: string, data: object): void;
|
6
7
|
export declare function setTagIdData(data: any): [];
|
@@ -8,4 +9,5 @@ export declare function setKpiAddrData(data: any): [];
|
|
8
9
|
export declare function setAssetIdData(data: any): [];
|
9
10
|
export declare function setAreaIdData(data: any): [];
|
10
11
|
export declare function setVarValueData(data: any): [];
|
12
|
+
export declare function setBranchAddressData(data: any): [];
|
11
13
|
export declare function setThreeCategoryIdData(pen: Node, data: any): [];
|
@@ -1,7 +1,40 @@
|
|
1
1
|
import {commonStore} from '../store';
|
2
2
|
import {setElementSwitchTabState} from '../element';
|
3
3
|
import {echartsStaticType} from '../utils';
|
4
|
-
|
4
|
+
// tab切换页签删除数据处理
|
5
|
+
export function getTabConnectSHConf(node) {
|
6
|
+
const switchTabType = node.tags.find((t) => {
|
7
|
+
return t.includes('switchTabType');
|
8
|
+
}); // 获取按钮组类型
|
9
|
+
const topologyChangeData = commonStore[node.TID].switchTabDataPool;
|
10
|
+
const tabAreaData = topologyChangeData[`${switchTabType}AreaData`];
|
11
|
+
const bindConfIds = node.bindStaticId.split(','); // tab元件绑定的元件id
|
12
|
+
const currentNode = [{...node}]; // 需要删除的关联元件数据
|
13
|
+
for (let i = 0; i < bindConfIds.length; i++) {
|
14
|
+
const id = bindConfIds[i];
|
15
|
+
if(tabAreaData[id]) {
|
16
|
+
currentNode.push(tabAreaData[id]);
|
17
|
+
delete tabAreaData[id];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
const changeData = topologyChangeData[`${switchTabType}Data`];
|
21
|
+
delete changeData[node.id];
|
22
|
+
if(Object.keys(changeData).length) {
|
23
|
+
// 第一个页签设置选中效果
|
24
|
+
const firstNode = Object.values(changeData)[0];
|
25
|
+
firstNode.activeImgeIndex = false;
|
26
|
+
const firstNodeBindConfIds = firstNode.bindStaticId.split(','); // tab元件绑定的元件id
|
27
|
+
// 为绑定的每个元件设置可见
|
28
|
+
for (let i = 0; i < firstNodeBindConfIds.length; i++) {
|
29
|
+
const tabAreaNode = tabAreaData[firstNodeBindConfIds[i]];
|
30
|
+
if(tabAreaNode) {
|
31
|
+
tabAreaNode.visible = true;
|
32
|
+
tabAreaNode.visibleSwitch = true;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return currentNode;
|
37
|
+
}
|
5
38
|
/**
|
6
39
|
* Tab 数据统计
|
7
40
|
* @param type 统计类型
|
@@ -38,8 +71,9 @@ export function tabStaticOperation(type, node, areaData, params) {
|
|
38
71
|
* Tab 显示/隐藏切换
|
39
72
|
* @param node tab页签数据
|
40
73
|
* @param areaData // tab展示区域数据
|
74
|
+
* @param isActive
|
41
75
|
*/
|
42
|
-
export function tabHideShowOperation(node, areaData) {
|
76
|
+
export function tabHideShowOperation(node, areaData, isActive) {
|
43
77
|
const confIds = node.bindStaticId && node.bindStaticId.split(',') || [];
|
44
78
|
const pens = commonStore[node.TID].data.pens;
|
45
79
|
for (let i = 0; i < confIds.length; i++) {
|
@@ -47,7 +81,7 @@ export function tabHideShowOperation(node, areaData) {
|
|
47
81
|
const areaNode = areaData[confid];
|
48
82
|
if(!(areaNode && pens[areaNode.order])) return;
|
49
83
|
const tagNode = pens[areaNode.order];
|
50
|
-
tagNode.visible = !
|
84
|
+
tagNode.visible = !isActive;
|
51
85
|
setElementSwitchTabState(tagNode);
|
52
86
|
}
|
53
87
|
}
|
@@ -154,6 +188,15 @@ export function setVarValueData(data) {
|
|
154
188
|
"value": data.name
|
155
189
|
}];
|
156
190
|
}
|
191
|
+
export function setBranchAddressData(data) {
|
192
|
+
return [{
|
193
|
+
"key": "branchVal",
|
194
|
+
"value": data.value
|
195
|
+
}, {
|
196
|
+
"key": "支路地址Key",
|
197
|
+
"value": data.key
|
198
|
+
}];
|
199
|
+
}
|
157
200
|
export function setThreeCategoryIdData(pen, data) {
|
158
201
|
let params = [];
|
159
202
|
const hasThreeCategoryId = pen.data.find((tc) => {
|
@@ -34,18 +34,20 @@ export function mousMoveFun(type, pos, data) {
|
|
34
34
|
|
35
35
|
for (var _i = 0, _a = data; _i < _a.length; _i++) {
|
36
36
|
var item = _a[_i];
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
37
|
+
if(item.visible) {
|
38
|
+
//const isPoint = ptInPolyXY(pos, item.rotatedAnchors);
|
39
|
+
let isInPointNode = null;
|
40
|
+
if(item.name === 'arbitraryGraph') {
|
41
|
+
// 任意多边形通过点获取区域
|
42
|
+
isInPointNode = ptInPolyXY(pos, item.rotatedAnchors);
|
43
|
+
}else {
|
44
|
+
if(!(item instanceof Node)) item = new Node(item);
|
45
|
+
isInPointNode = item.hit(pos);
|
46
|
+
}
|
47
|
+
if(isInPointNode) {
|
48
|
+
params.hoverNode = item;
|
49
|
+
params.order = _i;
|
50
|
+
}
|
49
51
|
}
|
50
52
|
}
|
51
53
|
// 不在此节点上停留
|
@@ -63,6 +65,7 @@ export function mousMoveFun(type, pos, data) {
|
|
63
65
|
}
|
64
66
|
export function mousDownFun(type, eventNode) {
|
65
67
|
let params = {};
|
68
|
+
if(eventNode === null) return params;
|
66
69
|
const action = eventNode ? parseInt(eventNode.action) : 0;
|
67
70
|
if(action === 3) {
|
68
71
|
params.eventType = downDataType.Window; // 打开会话窗口
|
package/core/src/utils/params.js
CHANGED
@@ -20,6 +20,7 @@ export function filterParams(id, node) {
|
|
20
20
|
let tagEcharts = [];
|
21
21
|
let echartData = [];
|
22
22
|
let varVaule = [];
|
23
|
+
let branchValue = [];
|
23
24
|
let doorIds = [];
|
24
25
|
let isMqttEventType = false;
|
25
26
|
node.events.map((ev) => {
|
@@ -45,6 +46,9 @@ export function filterParams(id, node) {
|
|
45
46
|
if (item.key.includes('varValue')) {
|
46
47
|
varVaule.push(item.value);
|
47
48
|
}
|
49
|
+
if (item.key === 'branchVal') {
|
50
|
+
branchValue.push(item.value);
|
51
|
+
}
|
48
52
|
})
|
49
53
|
}
|
50
54
|
if (node.data && Object.prototype.toString.call(node.data) === '[object Object]' && node.data.params && node.data.params.id) {
|
@@ -55,6 +59,7 @@ export function filterParams(id, node) {
|
|
55
59
|
commonStore[id].mqttParams.assetIds = [...commonStore[id].mqttParams.assetIds, ...assetIds];
|
56
60
|
commonStore[id].mqttParams.areaIds = [...commonStore[id].mqttParams.areaIds, ...areaIds];
|
57
61
|
commonStore[id].mqttParams.varVaule = [...commonStore[id].mqttParams.varVaule, ...varVaule];
|
62
|
+
commonStore[id].mqttParams.branchValue = [...commonStore[id].mqttParams.branchValue, ...branchValue];
|
58
63
|
commonStore[id].mqttParams.tagEcharts = [...commonStore[id].mqttParams.tagEcharts, ...tagEcharts];
|
59
64
|
commonStore[id].mqttParams.echartData = [...commonStore[id].mqttParams.echartData, ...echartData];
|
60
65
|
}
|
package/package.json
CHANGED
@@ -140,21 +140,32 @@ export const echartsTypeMap = {
|
|
140
140
|
};
|
141
141
|
// 图表颜色
|
142
142
|
export const echartsColorData = [
|
143
|
+
'#2648E9',
|
144
|
+
'#E513F7',
|
145
|
+
'#79E10E',
|
146
|
+
'#0D9BE7',
|
147
|
+
'#23CEE2',
|
148
|
+
'#E5B903',
|
149
|
+
'#2BDB8E',
|
150
|
+
'#CAD804',
|
151
|
+
'#117BEE',
|
152
|
+
'#DB8407',
|
153
|
+
'#E72B2B',
|
154
|
+
'#E96812',
|
155
|
+
'#7612D6',
|
156
|
+
'#A117B8',
|
157
|
+
'rgb(21, 151, 224)',
|
143
158
|
'rgb(36, 220, 132)',
|
144
159
|
'rgb(154, 77, 251)',
|
145
160
|
'rgb(226, 182, 56)',
|
146
161
|
'rgb(253, 92, 71)',
|
147
|
-
'rgb(26, 117, 255)',
|
148
162
|
'rgb(175, 215, 14)',
|
149
163
|
'rgb(214, 154, 37)',
|
150
164
|
'rgb(66, 251, 251)',
|
151
165
|
'rgb(255, 158, 4)',
|
152
|
-
'rgb(30, 107, 222)',
|
153
|
-
'rgb(21, 151, 224)',
|
154
166
|
'rgb(19, 236, 236)',
|
155
167
|
'rgb(68, 237, 146)',
|
156
168
|
'rgb(251, 94, 45)',
|
157
|
-
'rgb(18, 255, 113)',
|
158
169
|
'rgb(18, 255, 113)'];
|
159
170
|
// TOP排行榜默认颜色
|
160
171
|
export const rankingTopColorList = [
|
package/style/common.css
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
.topology-datePicker{
|
2
|
+
position: relative;
|
3
|
+
box-sizing: border-box;
|
4
|
+
}
|
5
|
+
.topology-datePicker i{
|
6
|
+
display: inline-block;
|
7
|
+
}
|
8
|
+
.topology-datePicker input{
|
9
|
+
width: 100%;
|
10
|
+
height: 100%;
|
11
|
+
line-height: 100%;
|
12
|
+
border: none;
|
13
|
+
background: transparent;
|
14
|
+
vertical-align: top;
|
15
|
+
}
|
16
|
+
.topology-datePicker input::placeholder{
|
17
|
+
font-weight: normal;
|
18
|
+
color: rgb(220, 223, 230);
|
19
|
+
}
|
20
|
+
.topology-datePicker input:active,
|
21
|
+
.topology-datePicker input:focus{
|
22
|
+
outline: none;
|
23
|
+
}
|
24
|
+
.topology-datePicker .icon-date,
|
25
|
+
.topology-datePicker .icon-arrow{
|
26
|
+
position: absolute;
|
27
|
+
top: 50%;
|
28
|
+
transform: translateY(-50%);
|
29
|
+
}
|
30
|
+
.layui-laydate-main{
|
31
|
+
width: 322px !important;
|
32
|
+
}
|
33
|
+
.layui-laydate-main table{
|
34
|
+
width: 100%;
|
35
|
+
}
|
36
|
+
.layui-laydate-header i{
|
37
|
+
font-size: 14px !important;
|
38
|
+
}
|
39
|
+
.laydate-set-ym {
|
40
|
+
font-size: 16px;
|
41
|
+
}
|
42
|
+
.layui-laydate-footer span.layui-laydate-preview{
|
43
|
+
font-size: 14px;
|
44
|
+
}
|
package/style/editor.css
CHANGED