派生自 wuyushui/SewerAndRainNetwork

chenyabin
2021-04-14 faadb3a39e89b2cb7a00e81e3778f480f1f09998
src/components/BaseNav/PublicBounced/common/PublicTable.vue
@@ -1,17 +1,22 @@
<template>
  <div class="win">
    <!-- 四个角的边框效果 -->
    <div class="border_corner border_corner_left_top"></div>
    <div class="border_corner border_corner_right_top"></div>
    <div class="border_corner border_corner_left_bottom"></div>
    <div class="border_corner border_corner_right_bottom"></div>
    <div class="main">
      <div class="main-table">
        <el-table :data="listData" style="width: 100%" height="200px" :row-class-name="tableRowClassName">
          <el-table-column v-for="(item, index) in listLabel" :key="index" :prop="item.prop"
                           :label="item.label"></el-table-column>
        </el-table>
      </div>
  <!--  <div class="react">-->
  <!--    <div class="main-table">-->
  <!--      <el-table :data="listData" style="width: 100%" height="255px" :row-class-name="tableRowClassName">-->
  <!--        <el-table-column v-for="(item, index) in listLabel" :key="index" :prop="item.prop"-->
  <!--                         :label="item.label" :show-overflow-tooltip="true"></el-table-column>-->
  <!--      </el-table>-->
  <!--    </div>-->
  <!--  </div>-->
  <div class="main">
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <div class="main-table">
      <el-table :data="listData" style="width: 100%" height="325px" :row-class-name="tableRowClassName">
        <el-table-column v-for="(item, index) in listLabel" :key="index" :prop="item.prop"
                         :label="item.label" :show-overflow-tooltip="true"></el-table-column>
      </el-table>
    </div>
  </div>
</template>
@@ -57,12 +62,11 @@
  },
  mounted () {
    this.$nextTick(() => {
      this.displayContentTable.forEach(item => {
        this.listData = item
      })
      this.listData.push(this.displayContentTable[0], {}, {}, {}, {}, {}, {})
    })
  },
  methods: {
    // 隔行颜色设置
    tableRowClassName ({
      row,
      rowIndex
@@ -79,52 +83,84 @@
</script>
<style lang="less" scoped>
//.react {
//  position: relative;
//  background: rgba(33, 41, 69, 0.9);
//  background: linear-gradient(to left, #02a6b5, #02a6b5) left top no-repeat,
//  linear-gradient(to bottom, #02a6b5, #02a6b5) left top no-repeat,
//  linear-gradient(to left, #02a6b5, #02a6b5) right top no-repeat,
//  linear-gradient(to bottom, #02a6b5, #02a6b5) right top no-repeat,
//  linear-gradient(to left, #02a6b5, #02a6b5) left bottom no-repeat,
//  linear-gradient(to bottom, #02a6b5, #02a6b5) left bottom no-repeat,
//  linear-gradient(to left, #02a6b5, #02a6b5) right bottom no-repeat,
//  linear-gradient(to left, #02a6b5, #02a6b5) right bottom no-repeat;
//  background-size: 2px 20px, 20px 2px, 2px 20px, 20px 2px;
//
//  .main-table {
//    //border: 1px red solid;
//  }
//}
/deep/ .el-table td {
  border-bottom: none !important;
}
.win {
  position: relative;
  background-color: rgba(33, 41, 69, 0.9);
/deep/ .el-table th.is-leaf {
  border-bottom: none !important;
}
/deep/ .el-table td {
  height: 45px !important;
  line-height: 45px !important;
}
/deep/ .el-table tbody tr:hover > td {
  background: none !important
}
.main {
  .main-table {
    width: 100%;
  }
  position: relative;
  background: rgba(33, 41, 69, 0.9);
  //border: 1px solid red;
}
.border_corner {
  z-index: 999;
.main span:nth-child(1) {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(0, 0, 0, 0);
  border: 1px solid #47d5ea;
  left: -1px;
  top: -1px;
  padding: 10px;
  border-style: solid;
  border-color: #02a6b5;
  border-width: 1px 0 0 1px;
}
.border_corner_left_top {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
.main span:nth-child(2) {
  position: absolute;
  right: -1px;
  top: -1px;
  padding: 10px;
  border-style: solid;
  border-color: #02a6b5;
  border-width: 1px 1px 0 0;
}
.border_corner_right_top {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
.main span:nth-child(3) {
  position: absolute;
  right: -1px;
  bottom: -1px;
  padding: 10px;
  border-style: solid;
  border-color: #02a6b5;
  border-width: 0 1px 1px 0;
}
.border_corner_left_bottom {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
.main span:nth-child(4) {
  position: absolute;
  left: -1px;
  bottom: -1px;
  padding: 10px;
  border-style: solid;
  border-color: #02a6b5;
  border-width: 0 0 1px 1px;
}
.border_corner_right_bottom {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}
</style>