From 721f6ec69e796fd5c9807eaf68ec25df2bcf4e66 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 29 二月 2024 11:53:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/daoAnOffice/right/danger/dataTable.vue |  177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 177 insertions(+), 0 deletions(-)

diff --git a/src/views/daoAnOffice/right/danger/dataTable.vue b/src/views/daoAnOffice/right/danger/dataTable.vue
new file mode 100644
index 0000000..9df40e7
--- /dev/null
+++ b/src/views/daoAnOffice/right/danger/dataTable.vue
@@ -0,0 +1,177 @@
+<template>
+  <div class="container flex flex-col">
+    <div class="table-top flex justify-between items-center">
+      <div class="top-title">瀹夊叏浜嬫晠鍒楄〃</div>
+      <div class="table-select flex">
+        <div class="select-item mr-2 ml-2 cursor-pointer flex items-center"
+          :class="{ 'item-active': selectItem.isActive }" v-for="selectItem in tableType" :key="selectItem.id">{{
+            selectItem.type }}</div>
+      </div>
+    </div>
+    <div class="table-container flex-1">
+      <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>
+      </div>
+
+    </div>
+  </div>
+</template>
+
+<script setup>
+import { ref } from 'vue';
+
+const tableType = ref([
+  { id: 1, type: '鏈湀', isActive: true },
+  { id: 2, type: '鏈', isActive: false },
+]);
+
+const tableData = [
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+  {
+    street: '濂庡厜濉旇閬�',
+    num1: 12,
+    num2: 5,
+    num3: 2
+  },
+];
+</script>
+
+<style lang="scss" scoped>
+.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);
+  border: 1px solid #29466A;
+  border-bottom: none;
+}
+
+.table-select {
+  height: 100%;
+}
+
+.top-title {
+  font-size: 16px;
+  color: #447ED6;
+  margin-left: 20px;
+}
+
+.select-item {
+  padding: 0 14px;
+  height: 100%;
+  border-bottom: 2px solid RGBA(98, 137, 230, 0);
+  color: rgba(94, 134, 194, 1);
+}
+
+.item-active {
+  color: #fff;
+  border-color: RGBA(98, 137, 230, 1);
+}
+
+.data-table {
+  font-size: 14px;
+  border: 1px solid #29466A;
+  width: 100%;
+  height: 100%;
+  background: transparent;
+}
+
+.table-color1 {}
+
+
+
+::v-deep .el-table__inner-wrapper::before {
+  background-color: transparent;
+}
+
+::v-deep .el-table thead tr {
+  background-color: rgba(36, 63, 103, 0.6);
+
+}
+
+::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td {
+  background-color: rgba(36, 63, 103, 0.6);
+}
+
+.el-table__fixed-right {
+  height: 100% !important;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.8.0