|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="equipmentStatusBox">
|
|
|
|
|
<div class="searchBox" ref="searchref">
|
|
|
|
|
<div class="equipmentStatusBox" ref="statisRef">
|
|
|
|
|
<div class="searchBox" ref="searchref" v-if="drawerSearch">
|
|
|
|
|
<el-form :inline="true" :model="formdata" class="demo-form-inline">
|
|
|
|
|
<el-form-item label="电压等级" class="dyclass">
|
|
|
|
|
<el-select v-model="formdata.dyid" @change="getSearchxl">
|
|
|
|
@ -76,7 +76,7 @@
|
|
|
|
|
tooltip-effect="dark"
|
|
|
|
|
stripe
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
height="calc(100% - 0px)"
|
|
|
|
|
:height="tableheight"
|
|
|
|
|
fit
|
|
|
|
|
>
|
|
|
|
|
<template slot="empty">
|
|
|
|
@ -88,10 +88,10 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="dyName" label="电压等级" fixed> </el-table-column>
|
|
|
|
|
<el-table-column prop="dyName" label="电压等级" fixed show-overflow-tooltip> </el-table-column>
|
|
|
|
|
<el-table-column prop="lineName" label="线路名称" min-width="180" fixed> </el-table-column>
|
|
|
|
|
<el-table-column prop="towerName" label="杆塔名称" min-width="180" show-overflow-tooltip fixed> </el-table-column>
|
|
|
|
|
<el-table-column prop="displayName" label="设备名称" min-width="180" fixed> </el-table-column>
|
|
|
|
|
<!-- <el-table-column prop="displayName" label="设备名称" min-width="180" fixed> </el-table-column> -->
|
|
|
|
|
<el-table-column prop="cmdid" label="装置id" min-width="180" fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.cmdid }}
|
|
|
|
@ -100,7 +100,20 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="sim" label="SIM卡号" min-width="180"> </el-table-column>
|
|
|
|
|
<el-table-column prop="netType" label="网络类型"> </el-table-column>
|
|
|
|
|
<el-table-column prop="onlinestatus" label="状态"> </el-table-column>
|
|
|
|
|
<el-table-column prop="onlinestatus" label="状态">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
|
<span style="color: #169e8c" v-if="scope.row.onlinestatus == 1"
|
|
|
|
|
>在线</span
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
style="color: #f56c6c"
|
|
|
|
|
v-else-if="scope.row.onlinestatus == 0"
|
|
|
|
|
>离线</span
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="model" label="装置型号" min-width="120"> </el-table-column>
|
|
|
|
|
<el-table-column prop="bsManufacturer" label="装置厂家"> </el-table-column>
|
|
|
|
|
<el-table-column prop="protocolName" label="规约版本" min-width="180"> </el-table-column>
|
|
|
|
@ -222,6 +235,8 @@ export default {
|
|
|
|
|
pageSize: 20, // 每页数量
|
|
|
|
|
total: 0, //总条数
|
|
|
|
|
termLoading: false,
|
|
|
|
|
drawerSearch: false,
|
|
|
|
|
tableheight: "100%",
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
@ -331,6 +346,24 @@ export default {
|
|
|
|
|
// handleShowIp(row) {
|
|
|
|
|
// this.$refs.ipDialogref.display(row);
|
|
|
|
|
// },
|
|
|
|
|
showSearch() {
|
|
|
|
|
this.drawerSearch = !this.drawerSearch;
|
|
|
|
|
console.log(this.drawerSearch);
|
|
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
if (this.drawerSearch) {
|
|
|
|
|
// 如果抽屉现在是可见的,获取其高度
|
|
|
|
|
console.log(this.$refs.statisRef.offsetHeight);
|
|
|
|
|
const searchBoxHeight = this.$refs.searchref.offsetHeight;
|
|
|
|
|
console.log("搜索框的高度:", searchBoxHeight);
|
|
|
|
|
this.tableheight =
|
|
|
|
|
this.$refs.statisRef.offsetHeight - searchBoxHeight - 36;
|
|
|
|
|
console.log(this.tableheight);
|
|
|
|
|
} else {
|
|
|
|
|
this.tableheight = "100%";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
@ -366,7 +399,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.deviceTable {
|
|
|
|
|
height: calc(100% - 94px);
|
|
|
|
|
height: calc(100% - 32px);
|
|
|
|
|
//background: #fcc;
|
|
|
|
|
.el-table {
|
|
|
|
|
.cell {
|
|
|
|
@ -374,6 +407,23 @@ export default {
|
|
|
|
|
vertical-align: middle; /* 如果需要垂直居中 */
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-table {
|
|
|
|
|
color: #000;
|
|
|
|
|
thead {
|
|
|
|
|
color: #000;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
th.el-table__cell {
|
|
|
|
|
background: #dcdcdc !important;
|
|
|
|
|
}
|
|
|
|
|
td.el-table__cell,
|
|
|
|
|
th.el-table__cell.is-leaf {
|
|
|
|
|
border-bottom: 1px solid #dcdcdc;
|
|
|
|
|
}
|
|
|
|
|
.el-table__cell {
|
|
|
|
|
border-right: 1px solid #dcdcdc;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|