From 0053138f9fb3c4bdab4f95962e6877225327c64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E8=90=BD=28YangLei=29?= Date: Wed, 30 Jun 2021 20:18:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/index.vue | 6 +- .../footer/LayoutCopyrightFooter.vue | 46 ----------- .../header/LayoutTopHeaderAvatar.vue | 11 +-- src/pages/frame/layouts/AdminLayout.vue | 10 +-- src/pages/frame/layouts/CommonLayout.vue | 3 - src/pages/system/view/log/LogManagement.vue | 4 - src/pages/system/view/log/index.js | 3 - src/pages/system/view/log/login_log/form.vue | 3 - src/pages/system/view/log/operation/form.vue | 9 +++ src/pages/system/view/log/operation/index.vue | 76 +++++++++++++++++++ src/pages/user/components/info.vue | 5 +- src/router/async/router.map.js | 25 +++--- src/router/config.js | 5 ++ 13 files changed, 113 insertions(+), 93 deletions(-) delete mode 100644 src/pages/frame/components/footer/LayoutCopyrightFooter.vue delete mode 100644 src/pages/system/view/log/LogManagement.vue delete mode 100644 src/pages/system/view/log/index.js delete mode 100644 src/pages/system/view/log/login_log/form.vue create mode 100644 src/pages/system/view/log/operation/form.vue create mode 100644 src/pages/system/view/log/operation/index.vue diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 2e808aa..40af63d 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -51,11 +51,11 @@ placement="right" :visible="addVisible" @close="addDrawerClose" - v-if="addBtn" - :maskClosable="!!addBtn.maskClosable" + v-if="$slots.drawer" + :maskClosable="addBtn && !!addBtn.maskClosable" :drawerStyle="drawerStyle" :bodyStyle="bodyStyle" - :width="addBtn.width || 600" + :width="(addBtn && addBtn.width) || 600" destroyOnClose >
diff --git a/src/pages/frame/components/footer/LayoutCopyrightFooter.vue b/src/pages/frame/components/footer/LayoutCopyrightFooter.vue deleted file mode 100644 index 80b1dce..0000000 --- a/src/pages/frame/components/footer/LayoutCopyrightFooter.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue b/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue index 9a18ec1..e5c4d66 100644 --- a/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue +++ b/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue @@ -1,12 +1,7 @@ diff --git a/src/pages/system/view/log/operation/index.vue b/src/pages/system/view/log/operation/index.vue new file mode 100644 index 0000000..87f09df --- /dev/null +++ b/src/pages/system/view/log/operation/index.vue @@ -0,0 +1,76 @@ + + + diff --git a/src/pages/user/components/info.vue b/src/pages/user/components/info.vue index b1d6157..9bc1b92 100644 --- a/src/pages/user/components/info.vue +++ b/src/pages/user/components/info.vue @@ -25,7 +25,7 @@
@@ -50,6 +50,9 @@ export default { loginId() { return this.$store.state.userInfo.loginId; }, + userAvatar() { + return this.form.userAvatar ? `${this.$fileUrl}${this.form.userAvatar}` : null; + }, }, watch: { '$store.state.userInfo'(userInfo) { diff --git a/src/router/async/router.map.js b/src/router/async/router.map.js index c0ba6b4..4249088 100644 --- a/src/router/async/router.map.js +++ b/src/router/async/router.map.js @@ -1,4 +1,3 @@ - // 视图组件 const view = { tabs: () => import('@/pages/frame/view/template/TabsTemplateView'), @@ -20,20 +19,20 @@ const routerMap = { component: view.tabs, }, exp403: { - authority: "*", - name: "403错误", - path: "403", - component: () => import("@/pages/frame/view/exception/403"), + authority: '*', + name: '403错误', + path: '403', + component: () => import('@/pages/frame/view/exception/403'), }, exp404: { - name: "404错误", - path: "404", - component: () => import("@/pages/frame/view/exception/404"), + name: '404错误', + path: '404', + component: () => import('@/pages/frame/view/exception/404'), }, exp500: { - name: "500错误", - path: "500", - component: () => import("@/pages/frame/view/exception/500"), + name: '500错误', + path: '500', + component: () => import('@/pages/frame/view/exception/500'), }, dashboard: { name: 'Dashboard', @@ -72,9 +71,5 @@ const routerMap = { name: '参数管理', component: () => import('@/pages/system/view/parameter'), }, - log_management: { - name: '日志管理', - component: () => import('@/pages/system/view/log'), - }, }; export default routerMap; diff --git a/src/router/config.js b/src/router/config.js index ae3948d..9bf1e0f 100644 --- a/src/router/config.js +++ b/src/router/config.js @@ -122,6 +122,11 @@ const options = { name: '登录日志', component: () => import('@/pages/system/view/log/login_log/index.vue'), }, + { + path: 'operation_log', + name: '操作日志', + component: () => import('@/pages/system/view/log/operation/index.vue'), + }, ], }, { -- GitLab