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:
@@ -10,10 +10,11 @@ export default {
|
||||
},
|
||||
methods: {},
|
||||
mounted() {
|
||||
noticeStore.selectAllNoticeSelf(1)
|
||||
noticeStore.$patch((state) => {
|
||||
state.showLoading = true
|
||||
state.currentViewPage = 'AlRead'
|
||||
})
|
||||
noticeStore.selectAllNoticeSelf(1)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -10,10 +10,11 @@ export default {
|
||||
},
|
||||
methods: {},
|
||||
mounted() {
|
||||
noticeStore.selectAllNoticeSelf(0)
|
||||
noticeStore.$patch((state) => {
|
||||
state.showLoading = true
|
||||
state.currentViewPage = 'ToRead'
|
||||
})
|
||||
noticeStore.selectAllNoticeSelf(0)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user