|
@@ -1026,6 +1026,7 @@ export const formComponents = [
|
|
|
progressColor: '#4583FF',
|
|
|
progress: 0.8,
|
|
|
background: '#303746',
|
|
|
+ disableInput: true,
|
|
|
lineWidth: 0,
|
|
|
borderWidth: 0,
|
|
|
props: {
|
|
@@ -1232,11 +1233,6 @@ export const formComponents = [
|
|
|
label: '显示格式',
|
|
|
type: 'string',
|
|
|
},
|
|
|
- {
|
|
|
- key: 'borderWidth',
|
|
|
- label: '显示格式',
|
|
|
- type: 'string',
|
|
|
- },
|
|
|
],
|
|
|
},
|
|
|
},
|
|
@@ -1278,7 +1274,7 @@ export const formComponents = [
|
|
|
height: 40,
|
|
|
hiddenText: true,
|
|
|
direction: 'horizontal',
|
|
|
- labelAlign: 'left', //left/right/alternate/top/bottom
|
|
|
+ labelAlign: 'top', //left/right/alternate/top/bottom
|
|
|
mode: 'alternate', //alternate
|
|
|
data: [
|
|
|
{
|
|
@@ -1456,7 +1452,6 @@ export const formComponents = [
|
|
|
background: '#282E3B',
|
|
|
textColor: '#FFFFFF66',
|
|
|
hoverTextColor: '#FFFFFF66',
|
|
|
- // borderWidth:1,
|
|
|
data: [
|
|
|
{
|
|
|
title: '列表标题',
|
|
@@ -1528,11 +1523,11 @@ export const formComponents = [
|
|
|
text: '编辑',
|
|
|
fontSize: 0.6,
|
|
|
disableAnchor: true,
|
|
|
- activeBackground: '#40a9ff',
|
|
|
+ activeBackground: '#2D71EC',
|
|
|
activeColor: '#40a9ff',
|
|
|
- background: '#1890ff',
|
|
|
+ background: '#4583FF',
|
|
|
color: '#1890ff',
|
|
|
- hoverBackground: '#40a9ff',
|
|
|
+ hoverBackground: '#7DA4FF',
|
|
|
hoverColor: '#40a9ff',
|
|
|
textColor: '#ffffff',
|
|
|
hoverTextColor: '#ffffff',
|
|
@@ -1552,11 +1547,11 @@ export const formComponents = [
|
|
|
text: '实时数据',
|
|
|
fontSize: 0.6,
|
|
|
disableAnchor: true,
|
|
|
- activeBackground: '#40a9ff',
|
|
|
+ activeBackground: '#2D71EC',
|
|
|
activeColor: '#40a9ff',
|
|
|
- background: '#1890ff',
|
|
|
+ background: '#4583FF',
|
|
|
color: '#1890ff',
|
|
|
- hoverBackground: '#40a9ff',
|
|
|
+ hoverBackground: '#7DA4FF',
|
|
|
hoverColor: '#40a9ff',
|
|
|
textColor: '#ffffff',
|
|
|
hoverTextColor: '#ffffff',
|
|
@@ -1613,7 +1608,7 @@ export const formComponents = [
|
|
|
'MQTT',
|
|
|
{
|
|
|
text: '一级告警',
|
|
|
- background: '#650b09',
|
|
|
+ // background: '#650b09',
|
|
|
textColor: '#FF5D3CFF',
|
|
|
},
|
|
|
],
|
|
@@ -1623,7 +1618,7 @@ export const formComponents = [
|
|
|
'MQTT',
|
|
|
{
|
|
|
text: '二级告警',
|
|
|
- background: '#4d2a02',
|
|
|
+ // background: '#4d2a02',
|
|
|
textColor: '#E6A82EFF',
|
|
|
},
|
|
|
],
|
|
@@ -1633,7 +1628,7 @@ export const formComponents = [
|
|
|
'MQTT',
|
|
|
{
|
|
|
text: '一级告警',
|
|
|
- background: '#650b09',
|
|
|
+ // background: '#650b09',
|
|
|
textColor: '#FF5D3CFF',
|
|
|
},
|
|
|
],
|
|
@@ -1644,7 +1639,7 @@ export const formComponents = [
|
|
|
{
|
|
|
text: '三级告警',
|
|
|
textColor: '#58CC84FF',
|
|
|
- background: '#042617;',
|
|
|
+ // background: '#042617;',
|
|
|
},
|
|
|
],
|
|
|
],
|
|
@@ -2085,14 +2080,14 @@ export const formComponents = [
|
|
|
textColor: '#0052d9',
|
|
|
events: [
|
|
|
{
|
|
|
- where: {
|
|
|
- type: null,
|
|
|
- },
|
|
|
name: 'click',
|
|
|
- action: 0,
|
|
|
- params: '_blank',
|
|
|
- value: 'https://2d.le5le.com/',
|
|
|
- fn: null,
|
|
|
+ actions: [
|
|
|
+ {
|
|
|
+ action: 0,
|
|
|
+ params: '_blank',
|
|
|
+ value: 'https://2d.le5le.com/',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2108,10 +2103,13 @@ export const formComponents = [
|
|
|
iconFamily: 'l-icon',
|
|
|
events: [
|
|
|
{
|
|
|
- action: 5,
|
|
|
name: 'click',
|
|
|
- value: 'window.history.go(-1);',
|
|
|
- where: { type: null },
|
|
|
+ actions: [
|
|
|
+ {
|
|
|
+ action: 5,
|
|
|
+ value: 'window.history.go(-1);',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2126,13 +2124,22 @@ export const formComponents = [
|
|
|
icon: '\uea7b',
|
|
|
iconFamily: 'l-icon',
|
|
|
events: [
|
|
|
+ // {
|
|
|
+ // action: 5,
|
|
|
+ // name: 'click',
|
|
|
+ // params: 'pen.id/tag',
|
|
|
+ // value:
|
|
|
+ // 'let pens = context.meta2d.find(params);\r\nif (!pens.length) {\r\n pens = [pen]\r\n}\r\ncontext.meta2d.active(pens, true);\r\ncontext.meta2d.gotoView(pens[0]);\r\ncontext.meta2d.resize();\r\ncontext.meta2d.render();',
|
|
|
+ // where: { type: null },
|
|
|
+ // },
|
|
|
{
|
|
|
- action: 5,
|
|
|
name: 'click',
|
|
|
- params: 'pen.id/tag',
|
|
|
- value:
|
|
|
- 'let pens = context.meta2d.find(params);\r\nif (!pens.length) {\r\n pens = [pen]\r\n}\r\ncontext.meta2d.active(pens, true);\r\ncontext.meta2d.gotoView(pens[0]);\r\ncontext.meta2d.resize();\r\ncontext.meta2d.render();',
|
|
|
- where: { type: null },
|
|
|
+ actions: {
|
|
|
+ action: 5,
|
|
|
+ params: 'pen.id/tag',
|
|
|
+ value:
|
|
|
+ 'let pens = context.meta2d.find(params);\r\nif (!pens.length) {\r\n pens = [pen]\r\n}\r\ncontext.meta2d.active(pens, true);\r\ncontext.meta2d.gotoView(pens[0]);\r\ncontext.meta2d.resize();\r\ncontext.meta2d.render();',
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2163,17 +2170,27 @@ export const formComponents = [
|
|
|
icon: '\uec57',
|
|
|
iconFamily: 'l-icon',
|
|
|
events: [
|
|
|
+ // {
|
|
|
+ // action: 5,
|
|
|
+ // name: 'click',
|
|
|
+ // // params: 'pen.id/tag',
|
|
|
+ // value: `
|
|
|
+ // const { scale, origin, y: dataY } = context.meta2d.store.data;
|
|
|
+ // context.meta2d.translate(
|
|
|
+ // 0,
|
|
|
+ // ((parseInt(params)||32) * context.meta2d.store.data.scale - origin.y) / scale - dataY / scale
|
|
|
+ // );`,
|
|
|
+ // where: { type: null },
|
|
|
+ // },
|
|
|
{
|
|
|
- action: 5,
|
|
|
name: 'click',
|
|
|
- // params: 'pen.id/tag',
|
|
|
- value: `
|
|
|
- const { scale, origin, y: dataY } = context.meta2d.store.data;
|
|
|
- context.meta2d.translate(
|
|
|
- 0,
|
|
|
- ((parseInt(params)||32) * context.meta2d.store.data.scale - origin.y) / scale - dataY / scale
|
|
|
- );`,
|
|
|
- where: { type: null },
|
|
|
+ actions: [
|
|
|
+ {
|
|
|
+ action: 0,
|
|
|
+ params: '_blank',
|
|
|
+ value: 'https://2d.le5le.com/',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2282,12 +2299,13 @@ export const formComponents = [
|
|
|
title: '实时监测',
|
|
|
key: '0',
|
|
|
show: true,
|
|
|
- icon: 'l-icon t-10',
|
|
|
+ icon: 'l-icon l-suofang',
|
|
|
children: [
|
|
|
{
|
|
|
title: '站点看板',
|
|
|
key: '',
|
|
|
show: true,
|
|
|
+ icon: 'l-icon l-fenzuzhuzhuangtu',
|
|
|
children: [
|
|
|
{
|
|
|
title: '三级标题',
|
|
@@ -2305,16 +2323,13 @@ export const formComponents = [
|
|
|
title: '监控画面',
|
|
|
key: '',
|
|
|
show: true,
|
|
|
+ icon: 'l-icon l-biaoge',
|
|
|
},
|
|
|
{
|
|
|
title: '设备监控',
|
|
|
key: '',
|
|
|
show: true,
|
|
|
- },
|
|
|
- {
|
|
|
- title: '变压器监测',
|
|
|
- key: '',
|
|
|
- show: true,
|
|
|
+ icon: 'l-icon l-zhexiantu',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2322,11 +2337,13 @@ export const formComponents = [
|
|
|
title: '控制中心',
|
|
|
key: '',
|
|
|
show: true,
|
|
|
+ icon: 'l-icon l-tiaoxingtu',
|
|
|
},
|
|
|
{
|
|
|
title: '告警管理',
|
|
|
key: '',
|
|
|
show: true,
|
|
|
+ icon: 'l-icon l-zhishideng',
|
|
|
},
|
|
|
],
|
|
|
expand: true,
|
|
@@ -2381,21 +2398,20 @@ export const formComponents = [
|
|
|
width: 500,
|
|
|
height: 40,
|
|
|
hiddenText: true,
|
|
|
- direction: 'vertical', //horizontal/vertical
|
|
|
+ direction: 'horizontal', //horizontal/vertical
|
|
|
labelAlign: '', //left/right/alternate/top/bottom
|
|
|
// theme: 'dot', //dot
|
|
|
current: 2,
|
|
|
data: [
|
|
|
{
|
|
|
title: '已完成的步骤',
|
|
|
- content:
|
|
|
- '这里是提示文字dsafsdfadfafadsfdfadfadsfdafdafdasfsdfdfadfdafasdffdfadds',
|
|
|
+ content: '这里是提示文字',
|
|
|
status: 'finish', //default/process/finish/error
|
|
|
// path: 'M71.3,61.9v2.21L56.66,66V63.82l3.27-.43.25-1-2.39.31V60.84l2.84-.37.21-.87-3.4.44V57.85l13.08-1.73v2.2l-6.85.9-.21.88,6-.79-.15,2.85ZM58.11,66.56,69.86,65v5.63L58.11,72.19Zm2.59,3.09,6.44-.84V67.52l-6.44.85ZM62.78,63l3.87-.51.07-.95L63,62.05Z',
|
|
|
},
|
|
|
{
|
|
|
title: '出错的步骤',
|
|
|
- content: '这里是提示文字ssss',
|
|
|
+ content: '这里是提示文字',
|
|
|
status: 'error', //default/process/finish/error
|
|
|
},
|
|
|
{
|
|
@@ -2486,12 +2502,12 @@ export const formComponents = [
|
|
|
disableAnchor: true,
|
|
|
borderRadius: 2,
|
|
|
text: '按钮',
|
|
|
- activeBackground: '#40a9ff',
|
|
|
+ activeBackground: '#2D71EC',
|
|
|
activeColor: '#40a9ff',
|
|
|
- background: '#1890ff',
|
|
|
+ background: '#4583FF',
|
|
|
color: '#1890ff',
|
|
|
hoverBackground: '#40a9ff',
|
|
|
- hoverColor: '#40a9ff',
|
|
|
+ hoverColor: '#7DA4FF',
|
|
|
textColor: '#ffffff',
|
|
|
hoverTextColor: '#ffffff',
|
|
|
activeTextColor: '#ffffff',
|
|
@@ -2512,8 +2528,10 @@ export const formComponents = [
|
|
|
ellipsis: true,
|
|
|
text: '输入文本',
|
|
|
textAlign: 'left',
|
|
|
+ background:'#15181C',
|
|
|
+ color:'#424B61',
|
|
|
+ textColor: '#FFFFFFE6',
|
|
|
// color: '#D9D9D9FF',
|
|
|
- // textColor: '#000000FF',
|
|
|
// hoverTextColor: '#000000FF',
|
|
|
// activeTextColor: '#000000FF',
|
|
|
textLeft: 10,
|
|
@@ -2534,6 +2552,9 @@ export const formComponents = [
|
|
|
ellipsis: true,
|
|
|
text: '输入数字',
|
|
|
textAlign: 'left',
|
|
|
+ background:'#15181C',
|
|
|
+ color:'#424B61',
|
|
|
+ textColor: '#FFFFFFE6',
|
|
|
// color: '#D9D9D9FF',
|
|
|
// textColor: '#000000FF',
|
|
|
// hoverTextColor: '#000000FF',
|
|
@@ -2655,10 +2676,11 @@ export const formComponents = [
|
|
|
text: '选项1',
|
|
|
textAlign: 'left',
|
|
|
input: true,
|
|
|
- color: '#D9D9D9FF',
|
|
|
- textColor: '#FFFFFF',
|
|
|
- hoverTextColor: '#FFFFFF',
|
|
|
- activeTextColor: '#FFFFFF',
|
|
|
+ background:'#15181C',
|
|
|
+ color:'#424B61',
|
|
|
+ textColor: '#FFFFFFE6',
|
|
|
+ hoverTextColor: '#FFFFFFE6',
|
|
|
+ activeTextColor: '#FFFFFFE6',
|
|
|
textLeft: 10,
|
|
|
dropdownList: [
|
|
|
{
|
|
@@ -2724,8 +2746,8 @@ export const formComponents = [
|
|
|
height: 30,
|
|
|
width: 60,
|
|
|
checked: true,
|
|
|
- offColor: '#BFBFBF',
|
|
|
- onColor: '#1890ff',
|
|
|
+ offColor: '#303746',
|
|
|
+ onColor: '#4583FF',
|
|
|
disableOffColor: '#E5E5E5',
|
|
|
disableOnColor: '#A3D3FF',
|
|
|
hoverBackground: '#40a9ff',
|
|
@@ -2745,7 +2767,7 @@ export const formComponents = [
|
|
|
barHeight: 4,
|
|
|
min: 0,
|
|
|
max: 100,
|
|
|
- color: '#4583FF1890ff',
|
|
|
+ activeColor: '#4583FF',
|
|
|
background: '#303746',
|
|
|
textColor: '#FFFFFF66',
|
|
|
unit: '%',
|