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 @@