|
@@ -1,4 +1,5 @@
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
|
|
+import { BDdustMock, BDfireMock } from './configurable.data.bd';
|
|
|
|
|
|
export const testConfigVent: Config[] = [
|
|
export const testConfigVent: Config[] = [
|
|
{
|
|
{
|
|
@@ -510,7 +511,7 @@ export const testConfigDust: Config[] = [
|
|
list: [],
|
|
list: [],
|
|
complex_list: [
|
|
complex_list: [
|
|
{
|
|
{
|
|
- type: 'A',
|
|
|
|
|
|
+ type: 'C',
|
|
readFrom: 'dustManageInfo.sysList',
|
|
readFrom: 'dustManageInfo.sysList',
|
|
mapFromData: true,
|
|
mapFromData: true,
|
|
items: [
|
|
items: [
|
|
@@ -535,12 +536,12 @@ export const testConfigDust: Config[] = [
|
|
},
|
|
},
|
|
],
|
|
],
|
|
preset: [],
|
|
preset: [],
|
|
- // mock: BDdustMock,
|
|
|
|
|
|
+ mock: BDdustMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
- size: 'width:450px;height:750px;',
|
|
|
|
|
|
+ size: 'width:450px;height:860px;',
|
|
version: '保德',
|
|
version: '保德',
|
|
- position: 'top:170px;left:0;',
|
|
|
|
|
|
+ position: 'top:60px;left:0;',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -593,6 +594,7 @@ export const testConfigDust: Config[] = [
|
|
list: [],
|
|
list: [],
|
|
complex_list: [],
|
|
complex_list: [],
|
|
preset: [],
|
|
preset: [],
|
|
|
|
+ mock: BDdustMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:1000px;height:280px;',
|
|
size: 'width:1000px;height:280px;',
|
|
@@ -630,7 +632,7 @@ export const testConfigDust: Config[] = [
|
|
chart: [],
|
|
chart: [],
|
|
gallery: [
|
|
gallery: [
|
|
{
|
|
{
|
|
- type: 'E',
|
|
|
|
|
|
+ type: 'A',
|
|
readFrom: 'atomObj',
|
|
readFrom: 'atomObj',
|
|
items: [
|
|
items: [
|
|
{
|
|
{
|
|
@@ -662,7 +664,7 @@ export const testConfigDust: Config[] = [
|
|
complex_list: [],
|
|
complex_list: [],
|
|
preset: [],
|
|
preset: [],
|
|
to: 'http://10.248.210.154:8801',
|
|
to: 'http://10.248.210.154:8801',
|
|
- // mock: BDdustMock,
|
|
|
|
|
|
+ mock: BDdustMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:450px;height:280px;',
|
|
size: 'width:450px;height:280px;',
|
|
@@ -723,7 +725,7 @@ export const testConfigDust: Config[] = [
|
|
list: [],
|
|
list: [],
|
|
complex_list: [],
|
|
complex_list: [],
|
|
preset: [],
|
|
preset: [],
|
|
- // mock: BDdustMock,
|
|
|
|
|
|
+ mock: BDdustMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:450px;height:280px;',
|
|
size: 'width:450px;height:280px;',
|
|
@@ -785,7 +787,7 @@ export const testConfigDust: Config[] = [
|
|
list: [],
|
|
list: [],
|
|
complex_list: [],
|
|
complex_list: [],
|
|
preset: [],
|
|
preset: [],
|
|
- // mock: BDdustMock,
|
|
|
|
|
|
+ mock: BDdustMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:450px;height:280px;',
|
|
size: 'width:450px;height:280px;',
|
|
@@ -871,7 +873,7 @@ export const testConfigFire: Config[] = [
|
|
},
|
|
},
|
|
],
|
|
],
|
|
preset: [],
|
|
preset: [],
|
|
- // mock: BDfireMock,
|
|
|
|
|
|
+ mock: BDfireMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:450px;height:280px;',
|
|
size: 'width:450px;height:280px;',
|
|
@@ -954,13 +956,13 @@ export const testConfigFire: Config[] = [
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- deviceType: 'obfObj.arrayDev',
|
|
|
|
|
|
+ deviceType: '',
|
|
moduleName: '矿井火情走势',
|
|
moduleName: '矿井火情走势',
|
|
pageType: '',
|
|
pageType: '',
|
|
moduleData: {
|
|
moduleData: {
|
|
header: {
|
|
header: {
|
|
- show: true,
|
|
|
|
- showSelector: true,
|
|
|
|
|
|
+ show: false,
|
|
|
|
+ showSelector: false,
|
|
showSlot: false,
|
|
showSlot: false,
|
|
selector: {
|
|
selector: {
|
|
value: '${strinstallpos}',
|
|
value: '${strinstallpos}',
|
|
@@ -982,17 +984,17 @@ export const testConfigFire: Config[] = [
|
|
board: [],
|
|
board: [],
|
|
chart: [
|
|
chart: [
|
|
{
|
|
{
|
|
- type: 'line_area',
|
|
|
|
- readFrom: '',
|
|
|
|
- legend: { show: true },
|
|
|
|
- xAxis: [{ show: true }],
|
|
|
|
- yAxis: [{ show: true, name: '温度(℃)', position: 'left' }],
|
|
|
|
|
|
+ type: 'pie',
|
|
|
|
+ readFrom: 'sgGxObj',
|
|
|
|
+ legend: { show: false },
|
|
|
|
+ xAxis: [{ show: false }],
|
|
|
|
+ yAxis: [{ show: false, name: '温度(℃)', position: 'left' }],
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
- label: '${strinstallpos}',
|
|
|
|
- readFrom: 'fibreTemperatureArr',
|
|
|
|
- xprop: 'pos',
|
|
|
|
- yprop: 'value',
|
|
|
|
|
|
+ label: '',
|
|
|
|
+ readFrom: 'btArray',
|
|
|
|
+ xprop: 'name',
|
|
|
|
+ yprop: 'val',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
@@ -1003,7 +1005,7 @@ export const testConfigFire: Config[] = [
|
|
list: [],
|
|
list: [],
|
|
complex_list: [],
|
|
complex_list: [],
|
|
preset: [],
|
|
preset: [],
|
|
- // mock: BDfireMock,
|
|
|
|
|
|
+ mock: BDfireMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:450px;height:280px;',
|
|
size: 'width:450px;height:280px;',
|
|
@@ -1061,7 +1063,7 @@ export const testConfigFire: Config[] = [
|
|
list: [],
|
|
list: [],
|
|
complex_list: [],
|
|
complex_list: [],
|
|
preset: [],
|
|
preset: [],
|
|
- // mock: BDfireMock,
|
|
|
|
|
|
+ mock: BDfireMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:1000px;height:280px;',
|
|
size: 'width:1000px;height:280px;',
|
|
@@ -1092,9 +1094,10 @@ export const testConfigFire: Config[] = [
|
|
},
|
|
},
|
|
slice: {
|
|
slice: {
|
|
direction: 'column',
|
|
direction: 'column',
|
|
- basis: ['40%', '60%'],
|
|
|
|
|
|
+ basis: ['30%', '50%', '20%'],
|
|
|
|
+ ignoreOverflow: true,
|
|
},
|
|
},
|
|
- layout: ['gallery_list', 'list'],
|
|
|
|
|
|
+ layout: ['gallery_list', 'blast_delta', 'list'],
|
|
board: [],
|
|
board: [],
|
|
chart: [],
|
|
chart: [],
|
|
// chart: [
|
|
// chart: [
|
|
@@ -1198,36 +1201,40 @@ export const testConfigFire: Config[] = [
|
|
color: 'blue',
|
|
color: 'blue',
|
|
info: '',
|
|
info: '',
|
|
},
|
|
},
|
|
- {
|
|
|
|
- label: '乙烯',
|
|
|
|
- value: '${c2h4Val}',
|
|
|
|
- color: 'blue',
|
|
|
|
- info: '',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '甲烷',
|
|
|
|
- value: '${ch4Val}',
|
|
|
|
- color: 'blue',
|
|
|
|
- info: '',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '乙炔',
|
|
|
|
- value: '${c2h2Val}',
|
|
|
|
- color: 'blue',
|
|
|
|
- info: '',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '压差',
|
|
|
|
- value: '${dpVal}',
|
|
|
|
- color: 'blue',
|
|
|
|
- info: '',
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // label: '乙烯',
|
|
|
|
+ // value: '${c2h4Val}',
|
|
|
|
+ // color: 'blue',
|
|
|
|
+ // info: '',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '甲烷',
|
|
|
|
+ // value: '${ch4Val}',
|
|
|
|
+ // color: 'blue',
|
|
|
|
+ // info: '',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '乙炔',
|
|
|
|
+ // value: '${c2h2Val}',
|
|
|
|
+ // color: 'blue',
|
|
|
|
+ // info: '',
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // label: '压差',
|
|
|
|
+ // value: '${dpVal}',
|
|
|
|
+ // color: 'blue',
|
|
|
|
+ // info: '',
|
|
|
|
+ // },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
],
|
|
],
|
|
complex_list: [],
|
|
complex_list: [],
|
|
- preset: [],
|
|
|
|
- // mock: BDfireMock,
|
|
|
|
|
|
+ preset: [
|
|
|
|
+ {
|
|
|
|
+ readFrom: '',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ mock: BDfireMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:450px;height:570px;',
|
|
size: 'width:450px;height:570px;',
|
|
@@ -1292,7 +1299,7 @@ export const testConfigFire: Config[] = [
|
|
list: [],
|
|
list: [],
|
|
complex_list: [],
|
|
complex_list: [],
|
|
preset: [],
|
|
preset: [],
|
|
- // mock: BDfireMock,
|
|
|
|
|
|
+ mock: BDfireMock,
|
|
},
|
|
},
|
|
showStyle: {
|
|
showStyle: {
|
|
size: 'width:450px;height:280px;',
|
|
size: 'width:450px;height:280px;',
|