-
+
- 新增角色
+ 新增
@@ -150,6 +150,8 @@ const remove = function (row) {
.opt-box {
padding-bottom: 10px;
+ display flex;
+ justify-content end
.el-icon {
margin-right: 5px;
diff --git a/web/src/views/admin/LoginLog.vue b/web/src/views/admin/LoginLog.vue
new file mode 100644
index 00000000..4e8e38b5
--- /dev/null
+++ b/web/src/views/admin/LoginLog.vue
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+ {{ dateFormat(scope.row['created_at']) }}
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/src/views/admin/RoleList.vue b/web/src/views/admin/RoleList.vue
index 15f0969d..d390a448 100644
--- a/web/src/views/admin/RoleList.vue
+++ b/web/src/views/admin/RoleList.vue
@@ -1,11 +1,11 @@
-
+
- 新增角色
+ 新增
@@ -292,6 +292,8 @@ const removeContext = function (index) {
.role-list {
.opt-box {
padding-bottom: 10px;
+ display flex;
+ justify-content end
.el-icon {
margin-right 5px;
diff --git a/web/src/views/admin/UserList.vue b/web/src/views/admin/UserList.vue
index e0daf8f6..085247a3 100644
--- a/web/src/views/admin/UserList.vue
+++ b/web/src/views/admin/UserList.vue
@@ -39,7 +39,7 @@
:hide-on-single-page="true"
v-model:current-page="users.page"
v-model:page-size="users.page_size"
- @update:current-change="fetchUserList(users.page, users.page_size)"
+ @current-change="fetchUserList(users.page, users.page_size)"
:total="users.total"/>
@@ -126,7 +126,7 @@ const loading = ref(true)
const userEditFormRef = ref(null)
onMounted(() => {
- fetchUserList(1, 20)
+ fetchUserList(1, 10)
// 获取角色列表
httpGet('/api/admin/role/list').then((res) => {
roles.value = res.data;
@@ -219,13 +219,6 @@ const handleSelectionChange = function (rows) {
}
}
- .pagination {
- padding-top 20px;
- display flex
- justify-content center
- width 100%
- }
-
.el-select {
width: 100%
}