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

add the function of fuzzy query in the page of NoticeView had been completed

This commit is contained in:
cccccyb
2023-06-04 18:32:25 +08:00
parent 385127a314
commit 7031dd593b
15 changed files with 284 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
<template>
<el-container>
<el-header>
<notice-head></notice-head>
<notice-view-head @selectSelfByCond="getLoading" />
</el-header>
<el-main>
<el-menu :default-active="$route.path" class="el-menu-demo" mode="horizontal" router>
@@ -15,14 +15,31 @@
</template>
<script lang="ts">
import { useNoticeTypeStore } from '@/store/notice'
import { useNoticeTypeStore, useNoticeStore } from '@/store/notice'
import { mapState } from 'pinia'
const noticeTypeStore = useNoticeTypeStore()
const noticeStore = useNoticeStore()
export default {
name: 'NoticeView',
computed: {
...mapState(useNoticeStore, ['showLoading', 'searchBySelf'])
},
data() {
return {}
},
methods: {},
methods: {
getLoading(status) {
noticeStore.showLoading = true
noticeStore.selectAllNoticeSelf(
status,
this.searchBySelf.title,
this.searchBySelf.type,
this.searchBySelf.startTime,
this.searchBySelf.endTime
)
}
},
mounted() {
noticeTypeStore.selectEnableNoticeType()
}