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

The modification which the function of fuzzy query has been completed.

This commit is contained in:
cccccyb
2023-06-04 00:54:34 +08:00
parent 9803e78a5f
commit 25690c0871
9 changed files with 175 additions and 289 deletions

View File

@@ -48,6 +48,12 @@ export const useNoticeStore = defineStore('notice', {
total: 0,
pageSize: 5,
currentPage: 1,
search: {
title: '',
type: '',
startTime: '',
endTime: ''
},
selectData: [
{
content: '',
@@ -114,11 +120,22 @@ export const useNoticeStore = defineStore('notice', {
},
getters: {},
actions: {
async selectAllNotice(currentPage: number, pageSize: number) {
async selectAllNotice(
currentPage: number,
pageSize: number,
title: string,
type: string,
startTime: string,
endTime: string
) {
void request
.get('/notice/page', {
currentPage,
pageSize
pageSize,
title,
type,
startTime,
endTime
})
.then((response) => {
if (response.data.code === 20021) {
@@ -174,7 +191,7 @@ export const useNoticeStore = defineStore('notice', {
})
}
})
await this.selectAllNotice(1, 5)
await this.selectAllNotice(1, 5, '', '', '', '')
},
async handleUpdateNotice(updateNotice: IAddNoticeData) {
await request.put('/notice', updateNotice).then((response) => {
@@ -192,7 +209,7 @@ export const useNoticeStore = defineStore('notice', {
})
}
})
await this.selectAllNotice(1, 5)
await this.selectAllNotice(1, 5, '', '', '', '')
this.hackReset = false
},
async modifyNoticeIsRead(notice: INotice) {