diff --git a/src/api/home/homeimg/index.ts b/src/api/home/homeimg/index.ts index cde3c58..09629d9 100644 --- a/src/api/home/homeimg/index.ts +++ b/src/api/home/homeimg/index.ts @@ -2,14 +2,16 @@ import request from '@/config/axios' // 公告管理 VO export interface imgVO { - imgId: number // 公告id - imgName: string // 公告名称 - imgCreatetime: Date // 发布时间 - imgImg: string // 轮换图片 - imgContent: string // 发布内容 + id: number // 公告id + newsName: string // 公告名称 + newsCreatetime: Date // 发布时间 + newsImg: string // 轮换图片 + newsContent: string // 发布内容 contentType: number // 公告分类 - imgStatus: number // 公告图片状态 - contentStatus: number // 公告状态 + newsStatus: number // 公告图片状态 + status: number // 公告状态 + deptId: number // 公告状态 + userId: number // 部门id } // 公告管理 API diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index add85b7..07b5646 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -20,14 +20,14 @@ - - + + - {{filteredList[pageNo-1].imgName}} + {{filteredList[pageNo-1].newsName}} @@ -220,12 +220,12 @@
-
+
: - {{ item.imgName }} + {{ item.newsName }}
- {{ formatTime(item.imgCreatetime, 'yyyy-MM-dd') }} + {{ formatTime(item.newsCreatetime, 'yyyy-MM-dd') }}
@@ -303,11 +303,11 @@ - {{formData.imgName}} + {{formData.newsName}} - 发布时间: {{formatTime(formData.imgCreatetime,'yyyy-MM-dd')}} + 发布时间: {{formatTime(formData.newsCreatetime,'yyyy-MM-dd')}} - +