| | |
| | | <template> |
| | | <div class="table-container"> |
| | | <wrapper-title :title="'区域设备数据'" :path="'/monitorServe/recovery'"></wrapper-title> |
| | | <!-- <wrapper-title |
| | | :title="'区域设备数据'" |
| | | :path="'/monitorServe/recovery'" |
| | | ></wrapper-title> --> |
| | | <div class="table-content" ref="tabContent"> |
| | | <div class="table-wrapper"> |
| | | <el-table :data="tableData" border :height="tableHeight" :max-height="tableHeight" class="rank-table"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | :height="tableHeight" |
| | | :max-height="tableHeight" |
| | | class="rank-table" |
| | | > |
| | | <el-table-column prop="name" label="地区" align="center" width="100"> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="人脸设备正常率" align="center"> |
| | | <el-table-column label="人脸设备" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="车辆设备正常率" align="center"> |
| | | <el-table-column label="车辆设备" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="视频设备正常率" align="center"> |
| | | <el-table-column label="视频设备" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-tooltip placement="top"> |
| | | <div slot="content"> |
| | |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import WrapperTitle from '../wrapper-title/index'; |
| | | import WrapperTitle from "../wrapper-title/index"; |
| | | |
| | | export default { |
| | | name: 'ScreenTable', |
| | | name: "ScreenTable", |
| | | |
| | | components: { |
| | | WrapperTitle |
| | | WrapperTitle, |
| | | }, |
| | | data() { |
| | | return { |
| | | tableHeight: 40, |
| | | tableData: [ |
| | | { |
| | | name: '富顺县', |
| | | name: "富顺县", |
| | | data1: 1123, |
| | | data2: 1123, |
| | | data3: 1123 |
| | | data3: 1123, |
| | | }, |
| | | { |
| | | name: '荣县', |
| | | name: "荣县", |
| | | data1: 1123, |
| | | data2: 1123, |
| | | data3: 1123 |
| | | data3: 1123, |
| | | }, |
| | | { |
| | | name: '高新区', |
| | | name: "高新区", |
| | | data1: 1123, |
| | | data2: 1123, |
| | | data3: 1123 |
| | | data3: 1123, |
| | | }, |
| | | { |
| | | name: '自流井区', |
| | | name: "自流井区", |
| | | data1: 1123, |
| | | data2: 1123, |
| | | data3: 1123 |
| | | data3: 1123, |
| | | }, |
| | | { |
| | | name: '贡井区', |
| | | name: "贡井区", |
| | | data1: 1123, |
| | | data2: 1123, |
| | | data3: 1123 |
| | | data3: 1123, |
| | | }, |
| | | { |
| | | name: '大安区', |
| | | name: "大安区", |
| | | data1: 1123, |
| | | data2: 1123, |
| | | data3: 1123 |
| | | data3: 1123, |
| | | }, |
| | | { |
| | | name: '沿滩区', |
| | | name: "沿滩区", |
| | | data1: 1123, |
| | | data2: 1123, |
| | | data3: 1123 |
| | | data3: 1123, |
| | | }, |
| | | ] |
| | | } |
| | | ], |
| | | }; |
| | | }, |
| | | methods: { |
| | | computedHeight() { |
| | |
| | | setTimeout(() => { |
| | | const content = this.$refs.tabContent; |
| | | this.tableHeight = content.offsetHeight; |
| | | }) |
| | | }) |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.computedHeight(); |
| | | } |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .table-container { |
| | | width: 100%; |
| | | // flex: 1; |
| | | height: 350px; |
| | | height: 240px; |
| | | position: relative; |
| | | |
| | | display: flex; |
| | |
| | | |
| | | .table-content { |
| | | flex: 1; |
| | | background: rgba(67, 102, 155, 0.3); |
| | | border: 1px solid rgba(47, 91, 157, 0.8); |
| | | // position: absolute; |
| | | // width: 100%; |
| | | // top: 0; |
| | | // bottom: 0; |
| | | // background: url("../../../../assets/images/screen/cardBg.png"); |
| | | // background-size: cover !important; |
| | | // background-repeat: no-repeat !important; |
| | | // background-position: center center !important; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | .rank-table { |
| | | background-color: transparent !important; |
| | |
| | | ::v-deep .el-table .el-table__header-wrapper th, |
| | | .el-table .el-table__fixed-header-wrapper th { |
| | | background-color: transparent !important; |
| | | |
| | | } |
| | | |
| | | ::v-deep .el-table--group, |
| | |
| | | border-color: #56739e99 !important; |
| | | } |
| | | |
| | | ::v-deep .el-table th.el-table__cell>.cell { |
| | | color: #447ED6; |
| | | ::v-deep .el-table th.el-table__cell > .cell { |
| | | color: #447ed6; |
| | | } |
| | | |
| | | ::v-deep .el-scrollbar__bar.is-vertical { |
| | |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | ::v-deep .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell { |
| | | ::v-deep |
| | | .el-table--enable-row-hover |
| | | .el-table__body |
| | | tr:hover |
| | | > td.el-table__cell { |
| | | background-color: #447ed648; |
| | | } |
| | | |
| | |
| | | color: #e20c0c; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |