|
|
@@ -62,7 +62,7 @@
|
|
|
<el-button :class="btnActive == 'powerOff' ? 'btn-active':'btn-no-active'" type="primary"
|
|
|
size="medium" round @click="top_btn_click('powerOff')">关机</el-button>
|
|
|
<el-button :class="btnActive == 'abnormal' ? 'btn-active':'btn-no-active'" type="primary"
|
|
|
- size="medium" round @click="top_btn_click('abnormal')">异常</el-button>
|
|
|
+ size="medium" round @click="top_btn_click('abnormal')">离线</el-button>
|
|
|
</div>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
@@ -118,13 +118,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="开关状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.onOffStatus == 0"
|
|
|
+ <span v-if="scope.row.onOffStatus == 0" title="已关机"
|
|
|
@click="open_close_airs(0, scope.$index, scope.row, 'open')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-off" />
|
|
|
</span>
|
|
|
- <span v-else class="txt-cell-blue"
|
|
|
+ <span v-else class="txt-cell-blue" title="已开机"
|
|
|
@click="open_close_airs(0, scope.$index, scope.row, 'close')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-on" />
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -198,13 +198,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="开关状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.onOffStatus == 0"
|
|
|
+ <span v-if="scope.row.onOffStatus == 0" title="已关机"
|
|
|
@click="open_close_airs(1, scope.$index, scope.row, 'open')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-off" />
|
|
|
</span>
|
|
|
- <span v-else class="txt-cell-blue"
|
|
|
+ <span v-else class="txt-cell-blue" title="已开机"
|
|
|
@click="open_close_airs(1, scope.$index, scope.row, 'close')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-on" />
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -280,13 +280,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="开关状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.onOffStatus == 0"
|
|
|
+ <span v-if="scope.row.onOffStatus == 0" title="已关机"
|
|
|
@click="open_close_airs(2, scope.$index, scope.row, 'open')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-off" />
|
|
|
</span>
|
|
|
- <span v-else class="txt-cell-blue"
|
|
|
+ <span v-else class="txt-cell-blue" title="已开机"
|
|
|
@click="open_close_airs(2, scope.$index, scope.row, 'close')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-on" />
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -360,13 +360,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="开关状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.onOffStatus == 0"
|
|
|
+ <span v-if="scope.row.onOffStatus == 0" title="已关机"
|
|
|
@click="open_close_airs(3, scope.$index, scope.row, 'open')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-off" />
|
|
|
</span>
|
|
|
- <span v-else class="txt-cell-blue"
|
|
|
+ <span v-else class="txt-cell-blue" title="已开机"
|
|
|
@click="open_close_airs(3, scope.$index, scope.row, 'close')">
|
|
|
- <svg-icon icon-class="power" class="power-icon" />
|
|
|
+ <svg-icon icon-class="power" class="power-icon-on" />
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -904,7 +904,7 @@
|
|
|
} else {
|
|
|
this.$set(this.currentData.rooms[roomIndex].tableData[rowIndex],
|
|
|
'alarmStatus',
|
|
|
- '异常')
|
|
|
+ '离线')
|
|
|
}
|
|
|
// let _this = this;
|
|
|
// setTimeout(() => {
|
|
|
@@ -942,7 +942,7 @@
|
|
|
} else {
|
|
|
this.$set(this.currentData.rooms[roomIndex].tableData[rowIndex],
|
|
|
'alarmStatus',
|
|
|
- '异常')
|
|
|
+ '离线')
|
|
|
}
|
|
|
// let _this = this;
|
|
|
// setTimeout(() => {
|
|
|
@@ -1221,7 +1221,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -1233,7 +1233,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -1245,7 +1245,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -1257,7 +1257,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -1447,7 +1447,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -1459,7 +1459,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -1471,7 +1471,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -1483,7 +1483,7 @@
|
|
|
building: data[i].build, // 楼栋
|
|
|
device: data[i].air_config, // 空调配置
|
|
|
userTime: data[i].duration_use, // 使用时长
|
|
|
- alarmStatus: data[i].is_normal == 1 ? '正常' : '异常', // 是否正常
|
|
|
+ alarmStatus: data[i].is_normal == 1 ? '正常' : '离线', // 是否正常
|
|
|
onOffStatus: data[i].is_on, // 是否开启
|
|
|
userName: data[i].cao, // 操作员
|
|
|
contact: '待接口返回,待优化' // 联系方式
|
|
|
@@ -2366,9 +2366,16 @@
|
|
|
border: 1px solid #2B4CFE;
|
|
|
}
|
|
|
|
|
|
- .power-icon {
|
|
|
- font-size: 20px;
|
|
|
+ .power-icon-on {
|
|
|
+ font-size: 22px;
|
|
|
+ cursor: pointer;
|
|
|
+ color: #00ff00;
|
|
|
+ }
|
|
|
+
|
|
|
+ .power-icon-off {
|
|
|
+ font-size: 22px;
|
|
|
cursor: pointer;
|
|
|
+ color: #ff0000;
|
|
|
}
|
|
|
}
|
|
|
}
|