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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user