|
@@ -8,73 +8,21 @@ export default {
|
|
|
data: [
|
|
|
{
|
|
|
left: 0,
|
|
|
- top: 0,
|
|
|
- width: 500,
|
|
|
- height: 400,
|
|
|
- value: 20,
|
|
|
- name: '董事办公室',
|
|
|
- type: 'office',
|
|
|
- lamp: 'all', //灯的不同状态会显示 不同的颜色
|
|
|
- air: 'part',
|
|
|
- curtain: 'part',
|
|
|
- //device 到时候需要生成
|
|
|
- //当前设备的状态status :all全部开启 part部分开启 close全都关闭
|
|
|
- //还有设备类型type :包括air lamp curtain
|
|
|
- device: [
|
|
|
- { type: 'lamp', status: 'close' },
|
|
|
- { type: 'air', status: 'part' },
|
|
|
- { type: 'curtain', status: 'all' },
|
|
|
- ],
|
|
|
- timeList: ['08:00-16:00', '08:00-16:00'],
|
|
|
- //normalRun: 22, overtimeWork: 22, overtimeBook: 22,
|
|
|
- runTimeStatus: 'normalRun',
|
|
|
- },
|
|
|
- {
|
|
|
- left: 500,
|
|
|
- top: 0,
|
|
|
- width: 500,
|
|
|
- height: 400,
|
|
|
- value: 25,
|
|
|
- name: '休息区',
|
|
|
- type: 'rest',
|
|
|
- lamp: 'part',
|
|
|
- air: 'close',
|
|
|
- curtain: 'close',
|
|
|
- device: [
|
|
|
- { type: 'lamp', status: 'close' },
|
|
|
- { type: 'air', status: 'close' },
|
|
|
- ],
|
|
|
- runTimeStatus: 'overtimeWork',
|
|
|
- },
|
|
|
- {
|
|
|
- left: 1000,
|
|
|
- top: 0,
|
|
|
- width: 500,
|
|
|
- height: 400,
|
|
|
- value: 28,
|
|
|
- name: '会议室',
|
|
|
- type: 'meeting',
|
|
|
- lamp: 'close',
|
|
|
- device: [
|
|
|
- { type: 'lamp', status: 'all' },
|
|
|
- { type: 'air', status: 'part' },
|
|
|
- { type: 'curtain', status: 'part' },
|
|
|
- ],
|
|
|
- runTimeStatus: 'overtimeBook',
|
|
|
- },
|
|
|
- {
|
|
|
- left: 0,
|
|
|
top: 400,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 16,
|
|
|
- name: '第一办公区',
|
|
|
- type: 'work',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '第一办公区',
|
|
|
+ roomFuncType: 'work',
|
|
|
lamp: 'all',
|
|
|
curtain: 'all',
|
|
|
+ air: 'all',
|
|
|
device: [
|
|
|
{ type: 'lamp', status: 'all' },
|
|
|
-
|
|
|
{ type: 'curtain', status: 'all' },
|
|
|
],
|
|
|
},
|
|
@@ -83,11 +31,16 @@ export default {
|
|
|
top: 400,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 20,
|
|
|
- name: '收发室',
|
|
|
- type: 'letter',
|
|
|
- air: 'close',
|
|
|
- curtain: 'part',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '收发室',
|
|
|
+ roomFuncType: 'letter',
|
|
|
+ air: 'all',
|
|
|
+ curtain: 'all',
|
|
|
+ lamp: 'all',
|
|
|
device: [{ type: 'lamp', status: 'all' }],
|
|
|
},
|
|
|
{
|
|
@@ -95,12 +48,16 @@ export default {
|
|
|
top: 400,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 23,
|
|
|
- name: '走廊',
|
|
|
- type: 'walk',
|
|
|
- lamp: 'close',
|
|
|
- air: 'part',
|
|
|
- curtain: 'close',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '走廊',
|
|
|
+ roomFuncType: 'walk',
|
|
|
+ lamp: 'all',
|
|
|
+ air: 'all',
|
|
|
+ curtain: 'all',
|
|
|
device: [
|
|
|
{ type: 'lamp', status: 'part' },
|
|
|
{ type: 'air', status: 'close' },
|
|
@@ -112,12 +69,16 @@ export default {
|
|
|
top: 800,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 16,
|
|
|
- name: '第一办公区',
|
|
|
- type: 'work',
|
|
|
- lamp: 'close',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '第一办公区',
|
|
|
+ roomFuncType: 'work',
|
|
|
+ lamp: 'all',
|
|
|
air: 'all',
|
|
|
- curtain: 'part',
|
|
|
+ curtain: 'all',
|
|
|
device: [
|
|
|
{ type: 'lamp', status: 'close' },
|
|
|
{ type: 'air', status: 'close' },
|
|
@@ -129,11 +90,14 @@ export default {
|
|
|
top: 800,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 20,
|
|
|
- name: '收发室',
|
|
|
- type: 'letter',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '收发室',
|
|
|
+ roomFuncType: 'letter',
|
|
|
lamp: 'all',
|
|
|
-
|
|
|
curtain: 'all',
|
|
|
device: [
|
|
|
{ type: 'lamp', status: 'part' },
|
|
@@ -146,9 +110,13 @@ export default {
|
|
|
top: 800,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 23,
|
|
|
- name: '走廊',
|
|
|
- type: 'walk',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '走廊',
|
|
|
+ roomFuncType: 'walk',
|
|
|
device: [],
|
|
|
lamp: 'all',
|
|
|
air: 'all',
|
|
@@ -159,12 +127,16 @@ export default {
|
|
|
top: 0,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 20,
|
|
|
- name: '董事办公室',
|
|
|
- type: 'office',
|
|
|
- lamp: 'close',
|
|
|
- air: 'part',
|
|
|
- curtain: 'close',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '董事办公室',
|
|
|
+ roomFuncType: 'office',
|
|
|
+ lamp: 'all',
|
|
|
+ air: 'all',
|
|
|
+ curtain: 'all',
|
|
|
device: [{ type: 'curtain', status: 'all' }],
|
|
|
},
|
|
|
{
|
|
@@ -172,12 +144,16 @@ export default {
|
|
|
top: 0,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 25,
|
|
|
- name: '休息区',
|
|
|
- type: 'rest',
|
|
|
- lamp: 'part',
|
|
|
- air: 'part',
|
|
|
- curtain: 'part',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '休息区',
|
|
|
+ roomFuncType: 'rest',
|
|
|
+ lamp: 'all',
|
|
|
+ air: 'all',
|
|
|
+ curtain: 'all',
|
|
|
device: [
|
|
|
{ type: 'lamp', status: 'all' },
|
|
|
{ type: 'air', status: 'all' },
|
|
@@ -189,9 +165,13 @@ export default {
|
|
|
top: 0,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 28,
|
|
|
- name: '会议室',
|
|
|
- type: 'meeting',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '会议室',
|
|
|
+ roomFuncType: 'meeting',
|
|
|
|
|
|
curtain: 'all',
|
|
|
device: [
|
|
@@ -205,9 +185,13 @@ export default {
|
|
|
top: 400,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 16,
|
|
|
- name: '第一办公区',
|
|
|
- type: 'work',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '第一办公区',
|
|
|
+ roomFuncType: 'work',
|
|
|
lamp: 'all',
|
|
|
air: 'all',
|
|
|
device: [
|
|
@@ -221,10 +205,14 @@ export default {
|
|
|
top: 400,
|
|
|
width: 500,
|
|
|
height: 400,
|
|
|
- value: 20,
|
|
|
- name: '收发室',
|
|
|
- type: 'letter',
|
|
|
- lamp: 'close',
|
|
|
+ Tdb: 27,
|
|
|
+ RH: 27,
|
|
|
+ CO2: 27,
|
|
|
+ PM2d5: 27,
|
|
|
+ HCHO: 27,
|
|
|
+ localName: '收发室',
|
|
|
+ roomFuncType: 'letter',
|
|
|
+ lamp: 'all',
|
|
|
curtain: 'all',
|
|
|
device: [
|
|
|
{ type: 'lamp', status: 'close' },
|
|
@@ -232,75 +220,377 @@ export default {
|
|
|
{ type: 'curtain', status: 'part' },
|
|
|
],
|
|
|
},
|
|
|
- {
|
|
|
- left: 2500,
|
|
|
- top: 400,
|
|
|
- width: 500,
|
|
|
- height: 400,
|
|
|
- value: 23,
|
|
|
- name: '走廊',
|
|
|
- type: 'walk',
|
|
|
- lamp: 'all',
|
|
|
- air: 'part',
|
|
|
- curtain: 'all',
|
|
|
- device: [
|
|
|
- { type: 'lamp', status: 'part' },
|
|
|
- { type: 'air', status: 'close' },
|
|
|
- { type: 'curtain', status: 'all' },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- left: 1500,
|
|
|
- top: 800,
|
|
|
- width: 500,
|
|
|
- height: 400,
|
|
|
- value: 16,
|
|
|
- name: '第一办公区',
|
|
|
- type: 'work',
|
|
|
- device: [{ type: 'curtain', status: 'all' }],
|
|
|
- },
|
|
|
- {
|
|
|
- left: 2000,
|
|
|
- top: 800,
|
|
|
- width: 500,
|
|
|
- height: 400,
|
|
|
- value: 20,
|
|
|
- name: '收发室',
|
|
|
- type: 'letter',
|
|
|
- device: [
|
|
|
- { type: 'lamp', status: 'all' },
|
|
|
- { type: 'air', status: 'all' },
|
|
|
- { type: 'curtain', status: 'all' },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- left: 2500,
|
|
|
- top: 800,
|
|
|
- width: 500,
|
|
|
- height: 400,
|
|
|
- value: 23,
|
|
|
- name: '走廊',
|
|
|
- type: 'walk',
|
|
|
- lamp: 'part',
|
|
|
- air: 'part',
|
|
|
- curtain: 'all',
|
|
|
- device: [
|
|
|
- { type: 'lamp', status: 'all' },
|
|
|
- { type: 'air', status: 'all' },
|
|
|
- { type: 'curtain', status: 'all' },
|
|
|
- ],
|
|
|
- },
|
|
|
],
|
|
|
+ // data: [
|
|
|
+ // {
|
|
|
+ // left: 0,
|
|
|
+ // top: 0,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 17,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 2800,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 0.01,
|
|
|
+ // localName: '董事办公室',
|
|
|
+ // roomFuncType: 'office',
|
|
|
+ // lamp: 'all', //灯的不同状态会显示 不同的颜色
|
|
|
+ // air: 'part',
|
|
|
+ // curtain: 'part',
|
|
|
+ // //device 到时候需要生成
|
|
|
+ // //当前设备的状态status :all全部开启 part部分开启 close全都关闭
|
|
|
+ // //还有设备类型type :包括air lamp curtain
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'close' },
|
|
|
+ // { type: 'air', status: 'part' },
|
|
|
+ // { type: 'curtain', status: 'all' },
|
|
|
+ // ],
|
|
|
+ // timeList: ['08:00-16:00', '08:00-16:00'],
|
|
|
+ // // normalRun
|
|
|
+ // // overtimeWork
|
|
|
+ // // overtimeBook
|
|
|
+ // runTimeStatus: 'normalRun',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 500,
|
|
|
+ // top: 0,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 65,
|
|
|
+ // CO2: 1008,
|
|
|
+ // PM2d5: 38,
|
|
|
+ // HCHO: 0.03,
|
|
|
+ // localName: '休息区',
|
|
|
+ // roomFuncType: 'rest',
|
|
|
+ // lamp: 'part',
|
|
|
+ // air: 'close',
|
|
|
+ // curtain: 'close',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'close' },
|
|
|
+ // { type: 'air', status: 'close' },
|
|
|
+ // ],
|
|
|
+ // runTimeStatus: 'overtimeWork',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 1000,
|
|
|
+ // top: 0,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 20,
|
|
|
+ // RH: 53,
|
|
|
+ // CO2: 1808,
|
|
|
+ // PM2d5: 88,
|
|
|
+ // HCHO: 0.06,
|
|
|
+ // localName: '会议室',
|
|
|
+ // roomFuncType: 'meeting',
|
|
|
+ // lamp: 'close',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'all' },
|
|
|
+ // { type: 'air', status: 'part' },
|
|
|
+ // { type: 'curtain', status: 'part' },
|
|
|
+ // ],
|
|
|
+ // runTimeStatus: 'overtimeBook',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 0,
|
|
|
+ // top: 400,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 27,
|
|
|
+ // RH: 37,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 68,
|
|
|
+ // HCHO: 0.1,
|
|
|
+ // localName: '第一办公区',
|
|
|
+ // roomFuncType: 'work',
|
|
|
+ // lamp: 'all',
|
|
|
+ // curtain: 'all',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'all' },
|
|
|
+
|
|
|
+ // { type: 'curtain', status: 'all' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 500,
|
|
|
+ // top: 400,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 30,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 0.17,
|
|
|
+ // localName: '收发室',
|
|
|
+ // roomFuncType: 'letter',
|
|
|
+ // air: 'close',
|
|
|
+ // curtain: 'part',
|
|
|
+ // device: [{ type: 'lamp', status: 'all' }],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 1000,
|
|
|
+ // top: 400,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 12,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '走廊',
|
|
|
+ // roomFuncType: 'walk',
|
|
|
+ // lamp: 'close',
|
|
|
+ // air: 'part',
|
|
|
+ // curtain: 'close',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'part' },
|
|
|
+ // { type: 'air', status: 'close' },
|
|
|
+ // { type: 'curtain', status: 'close' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 0,
|
|
|
+ // top: 800,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '第一办公区',
|
|
|
+ // roomFuncType: 'work',
|
|
|
+ // lamp: 'close',
|
|
|
+ // air: 'all',
|
|
|
+ // curtain: 'part',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'close' },
|
|
|
+ // { type: 'air', status: 'close' },
|
|
|
+ // { type: 'curtain', status: 'close' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 500,
|
|
|
+ // top: 800,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 2000,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '收发室',
|
|
|
+ // roomFuncType: 'letter',
|
|
|
+ // lamp: 'all',
|
|
|
+
|
|
|
+ // curtain: 'all',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'part' },
|
|
|
+ // { type: 'air', status: 'part' },
|
|
|
+ // { type: 'curtain', status: 'part' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 1000,
|
|
|
+ // top: 800,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '走廊',
|
|
|
+ // roomFuncType: 'walk',
|
|
|
+ // device: [],
|
|
|
+ // lamp: 'all',
|
|
|
+ // air: 'all',
|
|
|
+ // curtain: 'all',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 1500,
|
|
|
+ // top: 0,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '董事办公室',
|
|
|
+ // roomFuncType: 'office',
|
|
|
+ // lamp: 'close',
|
|
|
+ // air: 'part',
|
|
|
+ // curtain: 'close',
|
|
|
+ // device: [{ type: 'curtain', status: 'all' }],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 2000,
|
|
|
+ // top: 0,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '休息区',
|
|
|
+ // roomFuncType: 'rest',
|
|
|
+ // lamp: 'part',
|
|
|
+ // air: 'part',
|
|
|
+ // curtain: 'part',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'all' },
|
|
|
+ // { type: 'air', status: 'all' },
|
|
|
+ // { type: 'curtain', status: 'all' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 2500,
|
|
|
+ // top: 0,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 2000,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '会议室',
|
|
|
+ // roomFuncType: 'meeting',
|
|
|
+
|
|
|
+ // curtain: 'all',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'all' },
|
|
|
+ // { type: 'air', status: 'close' },
|
|
|
+ // { type: 'curtain', status: 'part' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 1500,
|
|
|
+ // top: 400,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '第一办公区',
|
|
|
+ // roomFuncType: 'work',
|
|
|
+ // lamp: 'all',
|
|
|
+ // air: 'all',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'all' },
|
|
|
+ // { type: 'air', status: 'part' },
|
|
|
+ // { type: 'curtain', status: 'close' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 2000,
|
|
|
+ // top: 400,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 2000,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '收发室',
|
|
|
+ // roomFuncType: 'letter',
|
|
|
+ // lamp: 'close',
|
|
|
+ // curtain: 'all',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'close' },
|
|
|
+ // { type: 'air', status: 'close' },
|
|
|
+ // { type: 'curtain', status: 'part' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 2500,
|
|
|
+ // top: 400,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 28,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '走廊',
|
|
|
+ // roomFuncType: 'walk',
|
|
|
+ // lamp: 'all',
|
|
|
+ // air: 'part',
|
|
|
+ // curtain: 'all',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'part' },
|
|
|
+ // { type: 'air', status: 'close' },
|
|
|
+ // { type: 'curtain', status: 'all' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 1500,
|
|
|
+ // top: 800,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 2000,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '第一办公区',
|
|
|
+ // roomFuncType: 'work',
|
|
|
+ // device: [{ type: 'curtain', status: 'all' }],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 2000,
|
|
|
+ // top: 800,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 2000,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '收发室',
|
|
|
+ // roomFuncType: 'letter',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'all' },
|
|
|
+ // { type: 'air', status: 'all' },
|
|
|
+ // { type: 'curtain', status: 'all' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // left: 2500,
|
|
|
+ // top: 800,
|
|
|
+ // width: 500,
|
|
|
+ // height: 400,
|
|
|
+ // Tdb: 25,
|
|
|
+ // RH: 26,
|
|
|
+ // CO2: 700,
|
|
|
+ // PM2d5: 28,
|
|
|
+ // HCHO: 39,
|
|
|
+ // localName: '走廊',
|
|
|
+ // roomFuncType: 'walk',
|
|
|
+ // lamp: 'part',
|
|
|
+ // air: 'part',
|
|
|
+ // curtain: 'all',
|
|
|
+ // device: [
|
|
|
+ // { type: 'lamp', status: 'all' },
|
|
|
+ // { type: 'air', status: 'all' },
|
|
|
+ // { type: 'curtain', status: 'all' },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
success: true,
|
|
|
});
|
|
|
},
|
|
|
'POST /api/environment/Building': (req: Request, res: Response) => {
|
|
|
res.send({
|
|
|
data: [
|
|
|
- { name: '11#', id: '11111' },
|
|
|
- { name: '22#', id: '22222' },
|
|
|
- { name: '33#', id: '33333' },
|
|
|
- { name: '44#', id: '444444' },
|
|
|
+ { localName: '11#', id: '11111' },
|
|
|
+ { localName: '22#', id: '22222' },
|
|
|
+ { localName: '33#', id: '33333' },
|
|
|
+ { localName: '44#', id: '444444' },
|
|
|
],
|
|
|
success: true,
|
|
|
});
|
|
@@ -308,14 +598,14 @@ export default {
|
|
|
'POST /api/environment/Floor': (req: Request, res: Response) => {
|
|
|
res.send({
|
|
|
data: [
|
|
|
- { name: 'F1', id: 'ffff1' },
|
|
|
- { name: 'F2', id: 'ffff2' },
|
|
|
- { name: 'F3', id: 'ffff3' },
|
|
|
- { name: 'F4', id: 'ffff4' },
|
|
|
- { name: 'F5', id: 'ffff5' },
|
|
|
- { name: 'F6', id: 'ffff6' },
|
|
|
- { name: 'F7', id: 'ffff7' },
|
|
|
- { name: 'F8', id: 'ffff8' },
|
|
|
+ { localName: 'F1', id: 'ffff1' },
|
|
|
+ { localName: 'F2', id: 'ffff2' },
|
|
|
+ { localName: 'F3', id: 'ffff3' },
|
|
|
+ { localName: 'F4', id: 'ffff4' },
|
|
|
+ { localName: 'F5', id: 'ffff5' },
|
|
|
+ { localName: 'F6', id: 'ffff6' },
|
|
|
+ { localName: 'F7', id: 'ffff7' },
|
|
|
+ { localName: 'F8', id: 'ffff8' },
|
|
|
],
|
|
|
success: true,
|
|
|
});
|