1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 06:51:23 +08:00

add the function of deleteNoticeType and modify the router of notice.ts

This commit is contained in:
cccccyb
2023-05-25 01:27:57 +08:00
parent c060a762af
commit 16325f21de
10 changed files with 243 additions and 165 deletions

View File

@@ -13,6 +13,7 @@ export interface IAddNoticeData {
receivers: []
}
export interface IAddNoticeTypeData {
id: string
name: string
enable: number
}
@@ -238,10 +239,12 @@ export const useNoticeTypeStore = defineStore('notice_type', {
}
],
addTypeData: {
id: '',
name: '',
enable: 1
},
showTypeData: {
id: '',
name: '',
enable: 1
}
@@ -309,6 +312,12 @@ export const useNoticeTypeStore = defineStore('notice_type', {
if (response.data.code === 20023) {
this.dialogEditTypeVisible = false
this.editFlag = false
this.hackReset = false
this.addTypeData = {
id: '',
name: '',
enable: 1
}
ElMessage({
message: '修改成功.',
type: 'success'