1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 07:21:24 +08:00

delete the function of visitByMyself and optimize the loading of noticeReceiveBySelf

This commit is contained in:
cccccyb
2023-05-30 03:09:15 +08:00
parent 1cec2e191d
commit 3af559c5e4
8 changed files with 25 additions and 25 deletions

View File

@@ -10,10 +10,11 @@ export default {
},
methods: {},
mounted() {
noticeStore.selectAllNoticeSelf(1)
noticeStore.$patch((state) => {
state.showLoading = true
state.currentViewPage = 'AlRead'
})
noticeStore.selectAllNoticeSelf(1)
}
}
</script>

View File

@@ -3,6 +3,7 @@
</template>
<script lang="ts">
import { useNoticeStore } from '@/store/notice'
import { mapState } from 'pinia'
const noticeStore = useNoticeStore()
export default {
data() {
@@ -10,10 +11,14 @@ export default {
},
methods: {},
mounted() {
noticeStore.selectAllNoticeSelf(-1)
noticeStore.$patch((state) => {
state.showLoading = true
state.currentViewPage = 'All'
})
noticeStore.selectAllNoticeSelf(-1)
},
computed: {
...mapState(useNoticeStore, ['showLoading'])
}
}
</script>

View File

@@ -111,7 +111,7 @@ export default {
message: '删除成功.',
type: 'success'
})
noticeStore.selectAllNotice(1, 5)
noticeStore.selectAllNotice(this.currentPage, this.pageSize)
} else if (response.data.code === 20034) {
ElMessage({
message: response.data.msg,

View File

@@ -10,10 +10,11 @@ export default {
},
methods: {},
mounted() {
noticeStore.selectAllNoticeSelf(0)
noticeStore.$patch((state) => {
state.showLoading = true
state.currentViewPage = 'ToRead'
})
noticeStore.selectAllNoticeSelf(0)
}
}
</script>