ZhangXianQiang
2024-02-29 b1100ae06eb22cc825cab42611d772468948ab95
src/views/daoAnOffice/right/danger/dataTable.vue
@@ -9,34 +9,37 @@
      </div>
    </div>
    <div class="table-container flex-1">
      <el-table class="data-table" :data="tableData" :highlight-current-row="false" :stripe="true"
        :header-cell-style="{ backgroundColor: 'transparent', color: '#79A5E9', borderColor: '#29466A' }"
        :cell-style="{ color: '#79A5E9', borderColor: '#29466A', paddingTop: '10px', paddingBottom: '10px' }"
        :row-style="{ backgroundColor: 'transparent' }">
        <el-table-column prop="street" label="镇/街道" align="center" />
        <el-table-column label="发现数量" align="center">
          <template #default="scope">
            <div style="color: #6289E6;">
              {{ scope.row.num1 }}
            </div>
          </template>
        </el-table-column>
      <div class="table-content">
        <el-table class="data-table" :data="tableData" :highlight-current-row="false" :stripe="true"
          :header-cell-style="{ backgroundColor: 'transparent', color: '#79A5E9', borderColor: '#29466A' }"
          :cell-style="{ color: '#79A5E9', borderColor: '#29466A', paddingTop: '10px', paddingBottom: '10px' }"
          :row-style="{ backgroundColor: 'transparent' }">
          <el-table-column prop="street" label="镇/街道" align="center" />
          <el-table-column label="发现数量" align="center">
            <template #default="scope">
              <div style="color: #6289E6;">
                {{ scope.row.num1 }}
              </div>
            </template>
          </el-table-column>
        <el-table-column label="下发通知书" align="center">
          <template #default="scope">
            <div style="color: #CFB249;">
              {{ scope.row.num2 }}
            </div>
          </template>
        </el-table-column>
        <el-table-column label="处置数量" align="center">
          <template #default="scope">
            <div style="color: #2BB06D;">
              {{ scope.row.num3 }}
            </div>
          </template>
        </el-table-column>
      </el-table>
          <el-table-column label="下发通知书" align="center">
            <template #default="scope">
              <div style="color: #CFB249;">
                {{ scope.row.num2 }}
              </div>
            </template>
          </el-table-column>
          <el-table-column label="处置数量" align="center">
            <template #default="scope">
              <div style="color: #2BB06D;">
                {{ scope.row.num3 }}
              </div>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>
@@ -86,6 +89,18 @@
    num2: 5,
    num3: 2
  },
  {
    street: '奎光塔街道',
    num1: 12,
    num2: 5,
    num3: 2
  },
  {
    street: '奎光塔街道',
    num1: 12,
    num2: 5,
    num3: 2
  },
];
</script>
@@ -93,7 +108,15 @@
.container {
  height: 360px;
}
.table-container {
  position: relative;
}
.table-content {
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
}
.table-top {
  height: 51px;
  background-color: rgba(17, 34, 58, 0.6);