From aec658c44218e3812cce99b972fe8169fb0039b2 Mon Sep 17 00:00:00 2001 From: linhaojun Date: Fri, 12 May 2023 21:17:58 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aurora-vue/aurora-admin/src/store/index.js | 30 +++++++++++++--- .../aurora-admin/src/views/album/Photo.vue | 20 +++++++---- .../src/views/friendLink/FriendLink.vue | 2 ++ .../src/views/log/ExceptionLog.vue | 3 ++ .../src/views/log/OperationLog.vue | 3 ++ .../aurora-admin/src/views/log/QuartzLog.vue | 36 ++++++++++++++++--- .../aurora-admin/src/views/quartz/Quartz.vue | 2 ++ .../aurora-admin/src/views/role/Role.vue | 2 ++ .../aurora-admin/src/views/user/Online.vue | 2 ++ 9 files changed, 85 insertions(+), 15 deletions(-) diff --git a/aurora-vue/aurora-admin/src/store/index.js b/aurora-vue/aurora-admin/src/store/index.js index 30552d1..b06a486 100644 --- a/aurora-vue/aurora-admin/src/store/index.js +++ b/aurora-vue/aurora-admin/src/store/index.js @@ -20,7 +20,17 @@ export default new Vuex.Store({ online: 1, role: 1, quartz: 1, - friendLinks: 1 + friendLink: 1, + operationLog: 1, + exceptionLog: 1, + quartzLog: { + jobId: -1, + current: 1 + }, + photo: { + albumId: -1, + current: 1 + } } }, mutations: { @@ -87,11 +97,23 @@ export default new Vuex.Store({ state.pageState.quartz = current }, updateFriendLinkPageState(state, current) { - state.pageState.current = current + state.pageState.friendLink = current + }, + updateOperationLogPageState(state, current) { + state.pageState.operationLog = current + }, + updateExceptionLogPageState(state, current) { + state.pageState.exceptionLog = current + }, + updateQuartzLogPageState(state, quartzLog) { + state.pageState.quartzLog.jobId = quartzLog.jobId + state.pageState.quartzLog.current = quartzLog.current + }, + updatePhotoPageState(state, photo) { + state.pageState.photo.albumId = photo.albumId + state.pageState.photo.current = photo.current } }, - actions: {}, - modules: {}, plugins: [ createPersistedState({ storage: window.sessionStorage diff --git a/aurora-vue/aurora-admin/src/views/album/Photo.vue b/aurora-vue/aurora-admin/src/views/album/Photo.vue index 195016a..3b4a0ea 100644 --- a/aurora-vue/aurora-admin/src/views/album/Photo.vue +++ b/aurora-vue/aurora-admin/src/views/album/Photo.vue @@ -68,7 +68,6 @@ { this.albumList = data.data - console.log(this.albumList) }) }, listPhotos() { @@ -232,12 +240,12 @@ export default { this.loading = false }) }, - sizeChange(size) { - this.size = size - this.listPhotos() - }, currentChange(current) { this.current = current + this.$store.commit('updatePhotoPageState', { + albumId: this.$route.params.albumId, + current: this.current + }) this.listPhotos() }, savePhotos() { diff --git a/aurora-vue/aurora-admin/src/views/friendLink/FriendLink.vue b/aurora-vue/aurora-admin/src/views/friendLink/FriendLink.vue index 9d58bfb..97ecf90 100644 --- a/aurora-vue/aurora-admin/src/views/friendLink/FriendLink.vue +++ b/aurora-vue/aurora-admin/src/views/friendLink/FriendLink.vue @@ -94,6 +94,7 @@