You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.7 KiB
79 lines
1.7 KiB
<template> |
|
<div class="paramsDetails"> |
|
<div class="details-content"> |
|
<div class="details-header"> |
|
<el-tabs v-model="activeName" @tab-click="handleClick"> |
|
<el-tab-pane label="设备热量" name="second"> |
|
<equipment v-if="activeName === 'second'"></equipment> |
|
</el-tab-pane> |
|
<el-tab-pane label="设备组热量" name="three"> |
|
<device-energy v-if="activeName === 'three'"></device-energy> |
|
</el-tab-pane> |
|
</el-tabs> |
|
</div> |
|
</div> |
|
</div> |
|
</template> |
|
|
|
<script> |
|
import equipment from "./components/equipment.vue"; |
|
import DeviceEnergy from "./components/deviceEnergy.vue"; |
|
export default { |
|
components: { equipment, DeviceEnergy }, |
|
data() { |
|
return { |
|
activeName: "second", //设备热量 |
|
}; |
|
}, |
|
methods: { |
|
handleClick(tab, event) { |
|
console.log(tab, event); |
|
}, |
|
}, |
|
}; |
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
.paramsDetails { |
|
display: flex; |
|
flex-direction: row; |
|
align-items: stretch; |
|
justify-content: space-between; |
|
|
|
.details-content { |
|
width: 100%; |
|
// height: 0.42rem; |
|
position: relative; |
|
} |
|
} |
|
</style> |
|
<style scoped> |
|
.none-div { |
|
padding-top: 0.31rem; |
|
} |
|
|
|
.none-div >>> .el-tree { |
|
background: transparent; |
|
color: #789d9f; |
|
} |
|
|
|
.none-div >>> .el-tree-node:focus > .el-tree-node__content { |
|
background-color: #00be97; |
|
color: #fff; |
|
} |
|
|
|
.none-div >>> .el-tree-node__content:hover, |
|
.none-div >>> .el-upload-list__item:hover { |
|
background-color: #00be97; |
|
color: #fff; |
|
} |
|
|
|
.none-div >>> .el-tree-node__content { |
|
height: 0.48rem; |
|
justify-content: center; |
|
} |
|
|
|
.none-div >>> .el-tree-node__expand-icon.is-leaf { |
|
display: none !important; |
|
} |
|
</style>
|
|
|