|
@@ -350,26 +350,29 @@ export const testConfigA: Config[] = [
|
|
|
layout: ['board'],
|
|
|
board: [
|
|
|
{
|
|
|
- label: '风速1',
|
|
|
type: 'A',
|
|
|
layout: 'val-top',
|
|
|
- prop: 'readData.windSpeed1',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '风速2',
|
|
|
- type: 'B',
|
|
|
- layout: 'label-top',
|
|
|
- prop: 'readData.windSpeed2',
|
|
|
+ items: [
|
|
|
+ {
|
|
|
+ prop: 'readData.windSpeed1',
|
|
|
+ label: '风速1',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '风速2',
|
|
|
+ prop: 'readData.windSpeed2',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
list: [],
|
|
|
chart: [],
|
|
|
table: [],
|
|
|
+ preset: [],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
+ size: '标准尺寸(450*280)',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:60px;left:0;',
|
|
|
+ position: '左上',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -413,11 +416,12 @@ export const testConfigA: Config[] = [
|
|
|
},
|
|
|
],
|
|
|
table: [],
|
|
|
+ preset: [],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
+ size: '标准尺寸(450*280)',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:350px;left:0;',
|
|
|
+ position: '左中',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -448,11 +452,12 @@ export const testConfigA: Config[] = [
|
|
|
chart: [],
|
|
|
table: [],
|
|
|
list: [],
|
|
|
+ preset: [{}],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
+ size: '标准尺寸(450*280)',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:640px;left:0;',
|
|
|
+ position: '左下',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -482,6 +487,7 @@ export const testConfigA: Config[] = [
|
|
|
board: [],
|
|
|
list: [],
|
|
|
table: [],
|
|
|
+ preset: [],
|
|
|
chart: [
|
|
|
{
|
|
|
type: 'bar',
|
|
@@ -499,9 +505,9 @@ export const testConfigA: Config[] = [
|
|
|
],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:1000px;height:280px;',
|
|
|
+ size: '横向拉伸(1000*280)',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:640px;left:460px;',
|
|
|
+ position: '中下',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -530,13 +536,101 @@ export const testConfigA: Config[] = [
|
|
|
list: [],
|
|
|
table: [],
|
|
|
chart: [],
|
|
|
+ preset: [{}],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
+ size: '标准尺寸(450*280)',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:60px;right:0;',
|
|
|
+ position: '右上',
|
|
|
},
|
|
|
},
|
|
|
+ // {
|
|
|
+ // deviceType: 'sys_majorpath',
|
|
|
+ // moduleName: 'unknown-右中',
|
|
|
+ // pageType: '',
|
|
|
+ // moduleData: {
|
|
|
+ // header: {
|
|
|
+ // show: false,
|
|
|
+ // showSelector: true,
|
|
|
+ // showSlot: true,
|
|
|
+ // selector: {
|
|
|
+ // prop: 'devicePos',
|
|
|
+ // },
|
|
|
+ // slot: {
|
|
|
+ // prop: 'devicePos',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // background: {
|
|
|
+ // show: false,
|
|
|
+ // type: 'video',
|
|
|
+ // link: '',
|
|
|
+ // },
|
|
|
+ // layout: ['table'],
|
|
|
+ // board: [],
|
|
|
+ // list: [],
|
|
|
+ // preset: [],
|
|
|
+ // table: [
|
|
|
+ // {
|
|
|
+ // type: 'A',
|
|
|
+ // readFrom: 'history',
|
|
|
+ // columns: [
|
|
|
+ // {
|
|
|
+ // prop: 'index',
|
|
|
+ // label: '编号',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'time',
|
|
|
+ // label: '报警时间',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'warn',
|
|
|
+ // label: '报警内容',
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // chart: [],
|
|
|
+ // },
|
|
|
+ // showStyle: {
|
|
|
+ // size: '标准尺寸(450*280)',
|
|
|
+ // version: 'enhanced',
|
|
|
+ // position: '右中',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // deviceType: 'sys_majorpath',
|
|
|
+ // moduleName: 'fire_control-右下预设类',
|
|
|
+ // pageType: '',
|
|
|
+ // moduleData: {
|
|
|
+ // header: {
|
|
|
+ // show: false,
|
|
|
+ // showSelector: true,
|
|
|
+ // showSlot: true,
|
|
|
+ // selector: {
|
|
|
+ // prop: 'devicePos',
|
|
|
+ // },
|
|
|
+ // slot: {
|
|
|
+ // prop: 'devicePos',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // background: {
|
|
|
+ // show: false,
|
|
|
+ // type: 'video',
|
|
|
+ // link: '',
|
|
|
+ // },
|
|
|
+ // layout: ['fire_control'],
|
|
|
+ // board: [],
|
|
|
+ // list: [],
|
|
|
+ // table: [],
|
|
|
+ // chart: [],
|
|
|
+ // preset: [{}],
|
|
|
+ // },
|
|
|
+ // showStyle: {
|
|
|
+ // size: '标准尺寸(450*280)',
|
|
|
+ // version: 'enhanced',
|
|
|
+ // position: '右下',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
deviceType: 'sys_majorpath',
|
|
|
moduleName: 'unknown-右中',
|
|
@@ -561,21 +655,27 @@ export const testConfigA: Config[] = [
|
|
|
layout: ['table'],
|
|
|
board: [],
|
|
|
list: [],
|
|
|
+ preset: [],
|
|
|
table: [
|
|
|
{
|
|
|
+ type: 'A',
|
|
|
readFrom: 'history',
|
|
|
columns: [
|
|
|
{
|
|
|
- prop: 'index',
|
|
|
- label: '编号',
|
|
|
+ prop: 'cate',
|
|
|
+ label: '类别',
|
|
|
},
|
|
|
{
|
|
|
- prop: 'time',
|
|
|
- label: '报警时间',
|
|
|
+ prop: 'temp',
|
|
|
+ label: '温度',
|
|
|
},
|
|
|
{
|
|
|
- prop: 'warn',
|
|
|
- label: '报警内容',
|
|
|
+ prop: 'wspd',
|
|
|
+ label: '风速',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'spst',
|
|
|
+ label: '喷雾状态',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -583,9 +683,9 @@ export const testConfigA: Config[] = [
|
|
|
chart: [],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
+ size: '标准尺寸(450*280)',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:350px;right:0;',
|
|
|
+ position: '右中',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -609,325 +709,352 @@ export const testConfigA: Config[] = [
|
|
|
type: 'video',
|
|
|
link: '',
|
|
|
},
|
|
|
- layout: ['fire_control'],
|
|
|
- board: [],
|
|
|
- list: [],
|
|
|
- table: [],
|
|
|
- chart: [],
|
|
|
- },
|
|
|
- showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
- version: 'enhanced',
|
|
|
- position: 'top:640px;right:0;',
|
|
|
- },
|
|
|
- },
|
|
|
-];
|
|
|
-
|
|
|
-export const testConfigB: Config[] = [
|
|
|
- {
|
|
|
- deviceType: 'warn',
|
|
|
- moduleName: 'warn-左上',
|
|
|
- pageType: '',
|
|
|
- moduleData: {
|
|
|
- header: {
|
|
|
- show: false,
|
|
|
- showSelector: false,
|
|
|
- showSlot: true,
|
|
|
- selector: {
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- slot: {
|
|
|
- prop: 'netstatus.val',
|
|
|
- formatter: '网络异常:${} 台',
|
|
|
- },
|
|
|
- },
|
|
|
- background: {
|
|
|
- show: false,
|
|
|
- type: 'video',
|
|
|
- link: '',
|
|
|
- },
|
|
|
layout: ['list'],
|
|
|
board: [],
|
|
|
- chart: [],
|
|
|
- table: [],
|
|
|
list: [
|
|
|
{
|
|
|
- label: '正常',
|
|
|
- prop: 'blue.val',
|
|
|
- color: 'blue',
|
|
|
- type: 'timeline',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '告警',
|
|
|
- prop: 'orange.val',
|
|
|
- color: 'orange',
|
|
|
- type: 'timeline',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '报警',
|
|
|
- prop: 'yellow.val',
|
|
|
- color: 'yellow',
|
|
|
- type: 'timeline',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '危险',
|
|
|
- prop: 'red.val',
|
|
|
- color: 'red',
|
|
|
- type: 'timeline',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '错误',
|
|
|
- prop: 'alarm.val',
|
|
|
- color: 'green',
|
|
|
- type: 'timeline',
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
- version: 'enhanced',
|
|
|
- position: 'top:60px;left:0;',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- deviceType: 'sys_wind',
|
|
|
- moduleName: 'sys_wind-左中',
|
|
|
- pageType: '',
|
|
|
- moduleData: {
|
|
|
- header: {
|
|
|
- show: false,
|
|
|
- showSelector: true,
|
|
|
- showSlot: false,
|
|
|
- selector: {
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- slot: {
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- },
|
|
|
- background: {
|
|
|
- show: false,
|
|
|
- type: 'video',
|
|
|
- link: '',
|
|
|
- },
|
|
|
- layout: ['board', 'chart', 'table'],
|
|
|
- board: [
|
|
|
- {
|
|
|
- label: 'F1',
|
|
|
- type: 'C',
|
|
|
- layout: 'val-top',
|
|
|
- prop: 'f1Val',
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'F2',
|
|
|
- type: 'C',
|
|
|
- layout: 'val-top',
|
|
|
- prop: 'f2Val',
|
|
|
- },
|
|
|
- ],
|
|
|
- list: [],
|
|
|
- table: [
|
|
|
- {
|
|
|
- readFrom: 'history',
|
|
|
- columns: [
|
|
|
+ type: 'A',
|
|
|
+ items: [
|
|
|
{
|
|
|
- prop: 'index',
|
|
|
- label: '编号',
|
|
|
+ prop: 'total',
|
|
|
+ label: '设备总数',
|
|
|
+ color: 'blue',
|
|
|
},
|
|
|
{
|
|
|
- prop: 'time',
|
|
|
- label: '自定义字段A',
|
|
|
+ prop: 'pwkqs',
|
|
|
+ label: '喷雾开启数',
|
|
|
+ color: 'blue',
|
|
|
},
|
|
|
{
|
|
|
- prop: 'warn',
|
|
|
- label: '自定义字段B',
|
|
|
+ prop: 'online',
|
|
|
+ label: '联网数量',
|
|
|
+ color: 'blue',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'offline',
|
|
|
+ label: '断网数量',
|
|
|
+ color: 'blue',
|
|
|
},
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- chart: [
|
|
|
- {
|
|
|
- type: 'pie',
|
|
|
- readFrom: 'readData',
|
|
|
- xAxis: [{ prop: 'stationname' }],
|
|
|
- yAxis: [
|
|
|
- { label: '风量1', align: 'left' },
|
|
|
- // { label: '回2', align: 'right' },
|
|
|
- ],
|
|
|
- series: [
|
|
|
- { label: '风量1', prop: 'va' },
|
|
|
- { label: '风量2', prop: 'va2' },
|
|
|
- // { label: '回2', prop: 'hui2' },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- showStyle: {
|
|
|
- size: 'width:450px;height:570px;',
|
|
|
- version: 'enhanced',
|
|
|
- position: 'top:350px;left:0;',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- deviceType: 'midinfo',
|
|
|
- moduleName: 'midinfo-中间',
|
|
|
- pageType: '',
|
|
|
- moduleData: {
|
|
|
- header: {
|
|
|
- show: false,
|
|
|
- showSelector: false,
|
|
|
- showSlot: false,
|
|
|
- selector: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- slot: {
|
|
|
- icon: 'SwapOutlined',
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- },
|
|
|
- background: {
|
|
|
- show: false,
|
|
|
- type: 'video',
|
|
|
- link: '',
|
|
|
- },
|
|
|
- layout: ['chart'],
|
|
|
- board: [],
|
|
|
- list: [],
|
|
|
- table: [],
|
|
|
- chart: [
|
|
|
- {
|
|
|
- type: 'bar',
|
|
|
- readFrom: 'sysdata.history',
|
|
|
- xAxis: [{ prop: 'time' }],
|
|
|
- yAxis: [
|
|
|
- { label: '回1', align: 'left' },
|
|
|
- // { label: '回2', align: 'right' },
|
|
|
- ],
|
|
|
- series: [
|
|
|
- { label: '回1', prop: 'hui1' },
|
|
|
- // { label: '回2', prop: 'hui2' },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- showStyle: {
|
|
|
- size: 'width:1000px;height:280px;',
|
|
|
- version: 'enhanced',
|
|
|
- position: 'top:640px;left:460px;',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- deviceType: 'sys_majorpath',
|
|
|
- moduleName: 'sys_majorpath-右上',
|
|
|
- pageType: '',
|
|
|
- moduleData: {
|
|
|
- header: {
|
|
|
- show: true,
|
|
|
- showSelector: true,
|
|
|
- showSlot: true,
|
|
|
- selector: {
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- slot: {
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- },
|
|
|
- background: {
|
|
|
- show: false,
|
|
|
- type: 'video',
|
|
|
- link: '',
|
|
|
- },
|
|
|
- layout: ['chart'],
|
|
|
- board: [],
|
|
|
- list: [],
|
|
|
- chart: [
|
|
|
- {
|
|
|
- type: 'line',
|
|
|
- readFrom: 'majorpath.paths',
|
|
|
- xAxis: [{ prop: 'name' }],
|
|
|
- yAxis: [
|
|
|
- { label: 'Drag', align: 'left' },
|
|
|
- { label: 'M3', align: 'right' },
|
|
|
- ],
|
|
|
- series: [
|
|
|
- { label: 'Drag', prop: 'drag' },
|
|
|
- { label: 'M3', prop: 'm3' },
|
|
|
- // { label: '回2', prop: 'hui2' },
|
|
|
],
|
|
|
},
|
|
|
],
|
|
|
table: [],
|
|
|
- },
|
|
|
- showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
- version: 'enhanced',
|
|
|
- position: 'top:60px;right:0;',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- deviceType: 'warn',
|
|
|
- moduleName: 'warn-右中',
|
|
|
- pageType: '',
|
|
|
- moduleData: {
|
|
|
- header: {
|
|
|
- show: false,
|
|
|
- showSelector: false,
|
|
|
- showSlot: true,
|
|
|
- selector: {
|
|
|
- prop: 'strinstallpos',
|
|
|
- },
|
|
|
- slot: {
|
|
|
- prop: 'netstatus.val',
|
|
|
- formatter: '网络异常:${} 台',
|
|
|
- },
|
|
|
- },
|
|
|
- background: {
|
|
|
- show: false,
|
|
|
- type: 'video',
|
|
|
- link: '',
|
|
|
- },
|
|
|
- layout: ['list'],
|
|
|
- board: [],
|
|
|
chart: [],
|
|
|
- table: [],
|
|
|
- list: [
|
|
|
- {
|
|
|
- label: '正常',
|
|
|
- prop: 'blue.val',
|
|
|
- color: 'blue',
|
|
|
- type: 'B',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '告警',
|
|
|
- prop: 'orange.val',
|
|
|
- color: 'orange',
|
|
|
- type: 'B',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '报警',
|
|
|
- prop: 'yellow.val',
|
|
|
- color: 'yellow',
|
|
|
- type: 'B',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '危险',
|
|
|
- prop: 'red.val',
|
|
|
- color: 'red',
|
|
|
- type: 'B',
|
|
|
- },
|
|
|
- {
|
|
|
- label: '错误',
|
|
|
- prop: 'alarm.val',
|
|
|
- color: 'green',
|
|
|
- type: 'B',
|
|
|
- },
|
|
|
- ],
|
|
|
+ preset: [],
|
|
|
},
|
|
|
showStyle: {
|
|
|
- size: 'width:450px;height:280px;',
|
|
|
+ size: '标准尺寸(450*280)',
|
|
|
version: 'enhanced',
|
|
|
- position: 'top:350px;right:0;',
|
|
|
+ position: '右下',
|
|
|
},
|
|
|
},
|
|
|
];
|
|
|
+
|
|
|
+export const testConfigB: Config[] = [
|
|
|
+ // {
|
|
|
+ // deviceType: 'warn',
|
|
|
+ // moduleName: 'warn-左上',
|
|
|
+ // pageType: '',
|
|
|
+ // moduleData: {
|
|
|
+ // header: {
|
|
|
+ // show: false,
|
|
|
+ // showSelector: false,
|
|
|
+ // showSlot: true,
|
|
|
+ // selector: {
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // slot: {
|
|
|
+ // prop: 'netstatus.val',
|
|
|
+ // formatter: '网络异常:${} 台',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // background: {
|
|
|
+ // show: false,
|
|
|
+ // type: 'video',
|
|
|
+ // link: '',
|
|
|
+ // },
|
|
|
+ // layout: ['list'],
|
|
|
+ // board: [],
|
|
|
+ // chart: [],
|
|
|
+ // table: [],
|
|
|
+ // list: [
|
|
|
+ // {
|
|
|
+ // label: '正常',
|
|
|
+ // prop: 'blue.val',
|
|
|
+ // color: 'blue',
|
|
|
+ // type: 'timeline',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '告警',
|
|
|
+ // prop: 'orange.val',
|
|
|
+ // color: 'orange',
|
|
|
+ // type: 'timeline',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '报警',
|
|
|
+ // prop: 'yellow.val',
|
|
|
+ // color: 'yellow',
|
|
|
+ // type: 'timeline',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '危险',
|
|
|
+ // prop: 'red.val',
|
|
|
+ // color: 'red',
|
|
|
+ // type: 'timeline',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '错误',
|
|
|
+ // prop: 'alarm.val',
|
|
|
+ // color: 'green',
|
|
|
+ // type: 'timeline',
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // showStyle: {
|
|
|
+ // size: 'width:450px;height:280px;',
|
|
|
+ // version: 'enhanced',
|
|
|
+ // position: 'top:60px;left:0;',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // deviceType: 'sys_wind',
|
|
|
+ // moduleName: 'sys_wind-左中',
|
|
|
+ // pageType: '',
|
|
|
+ // moduleData: {
|
|
|
+ // header: {
|
|
|
+ // show: false,
|
|
|
+ // showSelector: true,
|
|
|
+ // showSlot: false,
|
|
|
+ // selector: {
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // slot: {
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // background: {
|
|
|
+ // show: false,
|
|
|
+ // type: 'video',
|
|
|
+ // link: '',
|
|
|
+ // },
|
|
|
+ // layout: ['board', 'chart', 'table'],
|
|
|
+ // board: [
|
|
|
+ // {
|
|
|
+ // label: 'F1',
|
|
|
+ // type: 'C',
|
|
|
+ // layout: 'val-top',
|
|
|
+ // prop: 'f1Val',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: 'F2',
|
|
|
+ // type: 'C',
|
|
|
+ // layout: 'val-top',
|
|
|
+ // prop: 'f2Val',
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // list: [],
|
|
|
+ // table: [
|
|
|
+ // {
|
|
|
+ // readFrom: 'history',
|
|
|
+ // columns: [
|
|
|
+ // {
|
|
|
+ // prop: 'index',
|
|
|
+ // label: '编号',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'time',
|
|
|
+ // label: '自定义字段A',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'warn',
|
|
|
+ // label: '自定义字段B',
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // chart: [
|
|
|
+ // {
|
|
|
+ // type: 'pie',
|
|
|
+ // readFrom: 'readData',
|
|
|
+ // xAxis: [{ prop: 'stationname' }],
|
|
|
+ // yAxis: [
|
|
|
+ // { label: '风量1', align: 'left' },
|
|
|
+ // // { label: '回2', align: 'right' },
|
|
|
+ // ],
|
|
|
+ // series: [
|
|
|
+ // { label: '风量1', prop: 'va' },
|
|
|
+ // { label: '风量2', prop: 'va2' },
|
|
|
+ // // { label: '回2', prop: 'hui2' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // showStyle: {
|
|
|
+ // size: 'width:450px;height:570px;',
|
|
|
+ // version: 'enhanced',
|
|
|
+ // position: 'top:350px;left:0;',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // deviceType: 'midinfo',
|
|
|
+ // moduleName: 'midinfo-中间',
|
|
|
+ // pageType: '',
|
|
|
+ // moduleData: {
|
|
|
+ // header: {
|
|
|
+ // show: false,
|
|
|
+ // showSelector: false,
|
|
|
+ // showSlot: false,
|
|
|
+ // selector: {
|
|
|
+ // icon: 'SwapOutlined',
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // slot: {
|
|
|
+ // icon: 'SwapOutlined',
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // background: {
|
|
|
+ // show: false,
|
|
|
+ // type: 'video',
|
|
|
+ // link: '',
|
|
|
+ // },
|
|
|
+ // layout: ['chart'],
|
|
|
+ // board: [],
|
|
|
+ // list: [],
|
|
|
+ // table: [],
|
|
|
+ // chart: [
|
|
|
+ // {
|
|
|
+ // type: 'bar',
|
|
|
+ // readFrom: 'sysdata.history',
|
|
|
+ // xAxis: [{ prop: 'time' }],
|
|
|
+ // yAxis: [
|
|
|
+ // { label: '回1', align: 'left' },
|
|
|
+ // // { label: '回2', align: 'right' },
|
|
|
+ // ],
|
|
|
+ // series: [
|
|
|
+ // { label: '回1', prop: 'hui1' },
|
|
|
+ // // { label: '回2', prop: 'hui2' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // showStyle: {
|
|
|
+ // size: 'width:1000px;height:280px;',
|
|
|
+ // version: 'enhanced',
|
|
|
+ // position: 'top:640px;left:460px;',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // deviceType: 'sys_majorpath',
|
|
|
+ // moduleName: 'sys_majorpath-右上',
|
|
|
+ // pageType: '',
|
|
|
+ // moduleData: {
|
|
|
+ // header: {
|
|
|
+ // show: true,
|
|
|
+ // showSelector: true,
|
|
|
+ // showSlot: true,
|
|
|
+ // selector: {
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // slot: {
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // background: {
|
|
|
+ // show: false,
|
|
|
+ // type: 'video',
|
|
|
+ // link: '',
|
|
|
+ // },
|
|
|
+ // layout: ['chart'],
|
|
|
+ // board: [],
|
|
|
+ // list: [],
|
|
|
+ // chart: [
|
|
|
+ // {
|
|
|
+ // type: 'line',
|
|
|
+ // readFrom: 'majorpath.paths',
|
|
|
+ // xAxis: [{ prop: 'name' }],
|
|
|
+ // yAxis: [
|
|
|
+ // { label: 'Drag', align: 'left' },
|
|
|
+ // { label: 'M3', align: 'right' },
|
|
|
+ // ],
|
|
|
+ // series: [
|
|
|
+ // { label: 'Drag', prop: 'drag' },
|
|
|
+ // { label: 'M3', prop: 'm3' },
|
|
|
+ // // { label: '回2', prop: 'hui2' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // table: [],
|
|
|
+ // },
|
|
|
+ // showStyle: {
|
|
|
+ // size: 'width:450px;height:280px;',
|
|
|
+ // version: 'enhanced',
|
|
|
+ // position: 'top:60px;right:0;',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // deviceType: 'warn',
|
|
|
+ // moduleName: 'warn-右中',
|
|
|
+ // pageType: '',
|
|
|
+ // moduleData: {
|
|
|
+ // header: {
|
|
|
+ // show: false,
|
|
|
+ // showSelector: false,
|
|
|
+ // showSlot: true,
|
|
|
+ // selector: {
|
|
|
+ // prop: 'strinstallpos',
|
|
|
+ // },
|
|
|
+ // slot: {
|
|
|
+ // prop: 'netstatus.val',
|
|
|
+ // formatter: '网络异常:${} 台',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // background: {
|
|
|
+ // show: false,
|
|
|
+ // type: 'video',
|
|
|
+ // link: '',
|
|
|
+ // },
|
|
|
+ // layout: ['list'],
|
|
|
+ // board: [],
|
|
|
+ // chart: [],
|
|
|
+ // table: [],
|
|
|
+ // list: [
|
|
|
+ // {
|
|
|
+ // label: '正常',
|
|
|
+ // prop: 'blue.val',
|
|
|
+ // color: 'blue',
|
|
|
+ // type: 'B',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '告警',
|
|
|
+ // prop: 'orange.val',
|
|
|
+ // color: 'orange',
|
|
|
+ // type: 'B',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '报警',
|
|
|
+ // prop: 'yellow.val',
|
|
|
+ // color: 'yellow',
|
|
|
+ // type: 'B',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '危险',
|
|
|
+ // prop: 'red.val',
|
|
|
+ // color: 'red',
|
|
|
+ // type: 'B',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: '错误',
|
|
|
+ // prop: 'alarm.val',
|
|
|
+ // color: 'green',
|
|
|
+ // type: 'B',
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // showStyle: {
|
|
|
+ // size: 'width:450px;height:280px;',
|
|
|
+ // version: 'enhanced',
|
|
|
+ // position: 'top:350px;right:0;',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+];
|