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

AlRead and ToRead function have been compeled,another add rightClick menu

This commit is contained in:
cccccyb
2023-05-19 03:14:32 +08:00
parent f7c9e71fe3
commit d1c3389efa
20 changed files with 358 additions and 250 deletions

View File

@@ -11,9 +11,9 @@ export default {
methods: {},
mounted() {
noticeStore.selectAllNoticeByUserId(1)
},
unmounted() {
console.log('alRead:unmounted')
noticeStore.$patch((state) => {
state.currentViewPage = 'AlRead'
})
}
}
</script>

View File

@@ -11,9 +11,9 @@ export default {
methods: {},
mounted() {
noticeStore.selectAllNoticeByUserId(-1)
},
unmounted() {
console.log('all:unmounted')
noticeStore.$patch((state) => {
state.currentViewPage = 'All'
})
}
}
</script>

View File

@@ -14,7 +14,12 @@
>发布公告</el-button
>
<!-- 添加公告对话框-->
<el-dialog v-model="dialogAddVisible" center>
<el-dialog
v-model="dialogAddVisible"
center
:close-on-click-modal="false"
:before-close="handleDialogClose"
>
<template #header>
<h2 style="color: red">发布公告</h2>
</template>
@@ -73,6 +78,15 @@ export default {
}
})
},
handleDialogClose() {
noticeStore.$patch((state) => {
state.dialogEditVisible = false
state.dialogAddVisible = false
state.dialogShowVisible = false
state.editFlag = false
state.hackReset = false
})
},
handleDeleteById(deleteID) {
ElMessageBox.confirm('确定是否要删除?该操作将无法回退', '警告', {
confirmButtonText: '确定',

View File

@@ -12,8 +12,8 @@
router
>
<el-menu-item index="/notice/noticeView/all">所有公告</el-menu-item>
<el-menu-item index="/notice/noticeView/alRead">已读</el-menu-item>
<el-menu-item index="/notice/noticeView/toRead">未读</el-menu-item>
<el-menu-item index="/notice/noticeView/alRead">已读</el-menu-item>
</el-menu>
<router-view />
</el-main>

View File

@@ -11,9 +11,9 @@ export default {
methods: {},
mounted() {
noticeStore.selectAllNoticeByUserId(0)
},
unmounted() {
console.log('toRead:unmounted')
noticeStore.$patch((state) => {
state.currentViewPage = 'ToRead'
})
}
}
</script>