From 925451ea65356d335dd7886a88e529e2b9598e2c Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Fri, 25 Oct 2024 13:42:49 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=88=97=E8=A1=A8=E5=B1=95?=
=?UTF-8?q?=E7=A4=BA=E8=B4=A6=E5=8F=B7=E6=9C=80=E5=90=8E=E4=B8=80=E6=AC=A1?=
=?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=B6=E9=97=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/BaseTable/index.vue | 81 ++++++---
src/views/system/user/list/index.vue | 260 ++++++++++++++++++---------
2 files changed, 236 insertions(+), 105 deletions(-)
diff --git a/src/components/BaseTable/index.vue b/src/components/BaseTable/index.vue
index 7f967dc2..8311d4e8 100644
--- a/src/components/BaseTable/index.vue
+++ b/src/components/BaseTable/index.vue
@@ -2,7 +2,7 @@
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
+
- {{ operate.name }}
+ {{ operate.name }}
@@ -52,7 +87,12 @@
-
+
@@ -96,45 +136,44 @@ export default {
// 核心数据
list: {
type: Array,
- default: () => []
+ default: () => [],
},
// columns
columns: {
type: Array,
required: true,
- default: () => []
+ default: () => [],
},
// is hidden page for table
hiddenPage: {
type: Boolean,
- default: false
+ default: false,
},
bottomOffset: {
type: Number,
- default: 45
+ default: 45,
},
searchData: {
type: Object,
- default: () => {}
+ default: () => {},
},
total: {
type: Number,
- default: 0
+ default: 0,
},
highlightCurrentRow: {
type: Boolean,
- default: false
- }
+ default: false,
+ },
},
data() {
- return {
- }
+ return {}
},
computed: {
tableHeight() {
return 100
- }
+ },
},
methods: {
// 处理点击事件
@@ -157,12 +196,12 @@ export default {
},
pagination() {
this.$emit('getList')
- }
- }
+ },
+ },
}