From 71a428f0342889b7e68b024881ec0ab36b9708f4 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Wed, 29 May 2024 13:13:46 +0800
Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/dict.js | 12 +
src/views/system/components/statusBtn2.vue | 38 +++
src/views/system/components/statusBtn3.vue | 41 +++
src/views/system/components/statusBtn4.vue | 38 +++
src/views/system/components/statusBtn5.vue | 39 +++
src/views/system/loginlog/index.vue | 275 ++++++++++----------
src/views/system/menu/index.vue | 215 +++++++++++-----
src/views/system/operatelog/index.vue | 220 ++++------------
src/views/system/role/index.vue | 49 ++--
src/views/system/user/index.vue | 285 +++++++++++++++++----
10 files changed, 766 insertions(+), 446 deletions(-)
create mode 100644 src/views/system/components/statusBtn2.vue
create mode 100644 src/views/system/components/statusBtn3.vue
create mode 100644 src/views/system/components/statusBtn4.vue
create mode 100644 src/views/system/components/statusBtn5.vue
diff --git a/src/utils/dict.js b/src/utils/dict.js
index 6019cdc..f70461a 100644
--- a/src/utils/dict.js
+++ b/src/utils/dict.js
@@ -139,3 +139,15 @@ export function getDictDataLabel(dictType, value) {
const dict = getDictData(dictType, value);
return dict ? dict.label : '';
}
+
+// table中用来过滤字典
+export function publicFormatter(dictTable) {
+ const dictDatas = getDictDatas(dictTable)
+ return function (val) {
+ const arr = {}
+ dictDatas.map((item) => {
+ arr[item.value] = item.label
+ })
+ return arr?.[val]
+ }
+}
diff --git a/src/views/system/components/statusBtn2.vue b/src/views/system/components/statusBtn2.vue
new file mode 100644
index 0000000..3a4ab29
--- /dev/null
+++ b/src/views/system/components/statusBtn2.vue
@@ -0,0 +1,38 @@
+
+
+
+ {{ state }}
+
+
+
+
diff --git a/src/views/system/components/statusBtn3.vue b/src/views/system/components/statusBtn3.vue
new file mode 100644
index 0000000..7b70fe1
--- /dev/null
+++ b/src/views/system/components/statusBtn3.vue
@@ -0,0 +1,41 @@
+
+
+
+ {{ state }}
+
+
+
+
diff --git a/src/views/system/components/statusBtn4.vue b/src/views/system/components/statusBtn4.vue
new file mode 100644
index 0000000..2f335b9
--- /dev/null
+++ b/src/views/system/components/statusBtn4.vue
@@ -0,0 +1,38 @@
+
+
+
+ {{ state }}
+
+
+
+
diff --git a/src/views/system/components/statusBtn5.vue b/src/views/system/components/statusBtn5.vue
new file mode 100644
index 0000000..6986341
--- /dev/null
+++ b/src/views/system/components/statusBtn5.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
diff --git a/src/views/system/loginlog/index.vue b/src/views/system/loginlog/index.vue
index e98e8e4..073e993 100644
--- a/src/views/system/loginlog/index.vue
+++ b/src/views/system/loginlog/index.vue
@@ -1,137 +1,26 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
+
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
+
+
@@ -139,17 +28,117 @@