pull/480/head
parent
914c39db5e
commit
6e15b825f3
|
|
@ -15,7 +15,7 @@
|
||||||
</el-avatar>
|
</el-avatar>
|
||||||
<div>
|
<div>
|
||||||
<div class="text-14px">
|
<div class="text-14px">
|
||||||
<Highlight :keys="item.keys.map((v) => t(v))">
|
<Highlight :keys="item.keys">
|
||||||
{{ item.type }} : {{ item.title }}
|
{{ item.type }} : {{ item.title }}
|
||||||
</Highlight>
|
</Highlight>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -100,7 +100,7 @@ import { formatTime } from '@/utils'
|
||||||
|
|
||||||
import { useUserStore } from '@/store/modules/user'
|
import { useUserStore } from '@/store/modules/user'
|
||||||
import type { TodoList, Notice, Message } from './types'
|
import type { TodoList, Notice, Message } from './types'
|
||||||
|
import * as NoticeApi from '@/api/system/notice'
|
||||||
|
|
||||||
defineOptions({ name: 'Home' })
|
defineOptions({ name: 'Home' })
|
||||||
|
|
||||||
|
|
@ -179,31 +179,44 @@ const getTodoList = async () => {
|
||||||
TodoList = Object.assign(TodoList, data)
|
TodoList = Object.assign(TodoList, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const queryParams = reactive({
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 100,
|
||||||
|
title: '',
|
||||||
|
type: undefined,
|
||||||
|
status: undefined
|
||||||
|
})
|
||||||
// 获取通知公告
|
// 获取通知公告
|
||||||
let notice = reactive<Notice[]>([])
|
let notice = reactive<Notice[]>([])
|
||||||
const getNotice = async () => {
|
const getNotice = async () => {
|
||||||
const data = [
|
try {
|
||||||
{
|
const data = await NoticeApi.getNoticePage(queryParams)
|
||||||
title: '系统升级版本',
|
notice = data.list
|
||||||
type: '通知',
|
|
||||||
keys: ['通知', '升级'],
|
} finally {
|
||||||
date: new Date()
|
loading.value = false
|
||||||
},
|
}
|
||||||
{
|
// const data = [
|
||||||
title: '系统凌晨维护',
|
// {
|
||||||
type: '公告',
|
// title: '系统升级版本',
|
||||||
keys: ['公告', '维护'],
|
// type: '通知',
|
||||||
date: new Date()
|
// keys: ['通知', '升级'],
|
||||||
},
|
// date: new Date()
|
||||||
{
|
// },
|
||||||
title: '系统升级版本',
|
// {
|
||||||
type: '通知',
|
// title: '系统凌晨维护',
|
||||||
keys: ['通知', '升级'],
|
// type: '公告',
|
||||||
date: new Date()
|
// keys: ['公告', '维护'],
|
||||||
},
|
// date: new Date()
|
||||||
]
|
// },
|
||||||
notice = Object.assign(notice, data)
|
// {
|
||||||
|
// title: '系统升级版本',
|
||||||
|
// type: '通知',
|
||||||
|
// keys: ['通知', '升级'],
|
||||||
|
// date: new Date()
|
||||||
|
// },
|
||||||
|
// ]
|
||||||
|
// notice = Object.assign(notice, data)
|
||||||
}
|
}
|
||||||
//获取通知
|
//获取通知
|
||||||
let message = reactive<Message[]>([])
|
let message = reactive<Message[]>([])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue