From c6b64a014fb8bca041d8031523f59c7b3d296bc0 Mon Sep 17 00:00:00 2001
From: mouse <1014893517@qq.com>
Date: Sun, 17 Dec 2023 16:05:38 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/css/custom-element.scss | 16 ++++-
src/assets/css/global.scss | 52 ++++++++++++++
src/components/common-menu.vue | 55 +++++++++++++++
src/components/common-pagination.vue | 27 ++++++++
src/components/page-tabs.vue | 64 +++++++++++++++++
src/components/system-logs.vue | 1 -
src/router/index.ts | 18 +++++
src/utils/public-interface.ts | 4 ++
src/views/index.vue | 19 ++++--
.../permissions-manage/doctor-manage.vue | 68 +++++++++++++++++++
src/views/permissions-manage/menu-manage.vue | 15 ++++
.../permissions-manage/permissions-manage.vue | 66 +++++++++++++++++-
src/views/permissions-manage/role-manage.vue | 15 ++++
13 files changed, 406 insertions(+), 14 deletions(-)
create mode 100644 src/components/common-menu.vue
create mode 100644 src/components/common-pagination.vue
create mode 100644 src/components/page-tabs.vue
create mode 100644 src/utils/public-interface.ts
create mode 100644 src/views/permissions-manage/doctor-manage.vue
create mode 100644 src/views/permissions-manage/menu-manage.vue
create mode 100644 src/views/permissions-manage/role-manage.vue
diff --git a/src/assets/css/custom-element.scss b/src/assets/css/custom-element.scss
index 20551ab..de446ad 100644
--- a/src/assets/css/custom-element.scss
+++ b/src/assets/css/custom-element.scss
@@ -23,22 +23,32 @@
color: $main-color;
}
}
+.el-button.is-link {
+ color: $main-color;
+ &:hover,
+ &:active {
+ color: rgba($main-color, .8);
+ }
+ &:focus {
+ color: rgba($main-color, .7);
+ }
+}
.el-button.el-button--primary {
background-color: $main-color;
border-color: $main-color;
opacity: 1;
- transition: all .6;
+ transition: all .6s;
&:hover,
&:active {
opacity: .7;
- transition: all .6;
+ transition: all .6s;
}
&:focus {
opacity: .9;
- transition: all .6;
+ transition: all .6s;
}
}
.el-form-item {
diff --git a/src/assets/css/global.scss b/src/assets/css/global.scss
index 56c08e1..3155427 100644
--- a/src/assets/css/global.scss
+++ b/src/assets/css/global.scss
@@ -152,4 +152,56 @@ body {
}
}
}
+}
+
+.table-page {
+ width: 100%;
+ height: 100%;
+ .search-part {
+ width: 100%;
+ height: 40px;
+ display: flex;
+ align-items: center;
+ &>* ~ * {
+ margin-left: 20px;
+ }
+ .search-cell {
+ display: flex;
+ align-items: center;
+ .label {
+ flex-shrink: 0;
+ margin-right: 10px;
+ }
+ }
+ }
+ .button-part {
+ width: 100%;
+ height: 40px;
+ margin-top: 20px;
+ display: flex;
+ align-items: center;
+ &>* ~ * {
+ margin-left: 20px;
+ }
+ }
+ .table-part {
+ width: 100%;
+ height: calc(100% - 170px);
+ margin-top: 10px;
+ .el-table {
+ .el-table__header {
+ th {
+ background: rgba($main-color, .05);
+ }
+ }
+ }
+ }
+ .pagination-part {
+ width: 100%;
+ height: 50px;
+ margin-top: 20px;
+ .el-pagination {
+ justify-content: flex-end;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/components/common-menu.vue b/src/components/common-menu.vue
new file mode 100644
index 0000000..9123866
--- /dev/null
+++ b/src/components/common-menu.vue
@@ -0,0 +1,55 @@
+
+