Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
查尔斯-BUG万象集
Continew Admin
提交
c6ae5db8
Continew Admin
项目概览
查尔斯-BUG万象集
/
Continew Admin
9 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
分析
仓库
DevOps
项目成员
Pages
Continew Admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c6ae5db8
编写于
9月 02, 2023
作者:
查尔斯-BUG万象集
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '1.1.x' into dev
上级
be394f3d
486da2f7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
7 deletion
+9
-7
README.md
README.md
+2
-1
continew-admin-system/src/main/java/top/charles7c/cnadmin/system/model/vo/AnnouncementVO.java
...top/charles7c/cnadmin/system/model/vo/AnnouncementVO.java
+4
-4
continew-admin-ui/src/views/system/announcement/index.vue
continew-admin-ui/src/views/system/announcement/index.vue
+3
-2
未找到文件。
README.md
浏览文件 @
c6ae5db8
...
@@ -225,6 +225,7 @@ continew-admin
...
@@ -225,6 +225,7 @@ continew-admin
├─ public
# 公共静态资源(favicon.ico、logo.svg)
├─ public
# 公共静态资源(favicon.ico、logo.svg)
├─ src
├─ src
│ ├─ api
# 请求接口
│ ├─ api
# 请求接口
│ │ ├─ demo
# 示例模块
│ │ ├─ auth
# 认证模块
│ │ ├─ auth
# 认证模块
│ │ ├─ common
# 公共模块
│ │ ├─ common
# 公共模块
│ │ ├─ monitor
# 系统监控模块
│ │ ├─ monitor
# 系统监控模块
...
@@ -247,7 +248,7 @@ continew-admin
...
@@ -247,7 +248,7 @@ continew-admin
│ ├─ types
# TypeScript 类型
│ ├─ types
# TypeScript 类型
│ ├─ utils
# 工具库
│ ├─ utils
# 工具库
│ ├─ views
# 页面模板
│ ├─ views
# 页面模板
│ │ ├─
arco-design
# Arco Design 相关示例模块
│ │ ├─
demo
# Arco Design 相关示例模块
│ │ ├─ dashboard
# 仪表盘模块
│ │ ├─ dashboard
# 仪表盘模块
│ │ ├─ login
# 登录模块
│ │ ├─ login
# 登录模块
│ │ ├─ monitor
# 系统监控模块
│ │ ├─ monitor
# 系统监控模块
...
...
continew-admin-system/src/main/java/top/charles7c/cnadmin/system/model/vo/AnnouncementVO.java
浏览文件 @
c6ae5db8
...
@@ -66,17 +66,17 @@ public class AnnouncementVO extends BaseVO {
...
@@ -66,17 +66,17 @@ public class AnnouncementVO extends BaseVO {
*
*
* @return 公告状态
* @return 公告状态
*/
*/
@Schema
(
description
=
"状态(1:
已发布,2
:已过期)"
,
example
=
"1"
)
@Schema
(
description
=
"状态(1:
待发布,2:已发布,3
:已过期)"
,
example
=
"1"
)
public
Integer
getStatus
()
{
public
Integer
getStatus
()
{
int
status
=
1
;
int
status
=
2
;
if
(
null
!=
this
.
effectiveTime
)
{
if
(
null
!=
this
.
effectiveTime
)
{
if
(
this
.
effectiveTime
.
isAfter
(
LocalDateTime
.
now
()))
{
if
(
this
.
effectiveTime
.
isAfter
(
LocalDateTime
.
now
()))
{
status
=
2
;
status
=
1
;
}
}
}
}
if
(
null
!=
this
.
terminateTime
)
{
if
(
null
!=
this
.
terminateTime
)
{
if
(
this
.
terminateTime
.
isBefore
(
LocalDateTime
.
now
()))
{
if
(
this
.
terminateTime
.
isBefore
(
LocalDateTime
.
now
()))
{
status
=
2
;
status
=
3
;
}
}
}
}
return
status
;
return
status
;
...
...
continew-admin-ui/src/views/system/announcement/index.vue
浏览文件 @
c6ae5db8
...
@@ -135,8 +135,9 @@
...
@@ -135,8 +135,9 @@
</a-table-column>
</a-table-column>
<a-table-column
title=
"状态"
align=
"center"
>
<a-table-column
title=
"状态"
align=
"center"
>
<
template
#cell=
"{ record }"
>
<
template
#cell=
"{ record }"
>
<a-tag
v-if=
"record.status === 1"
color=
"green"
>
已发布
</a-tag>
<a-tag
v-if=
"record.status === 1"
color=
"blue"
>
待发布
</a-tag>
<a-tag
v-else
color=
"orangered"
>
已过期
</a-tag>
<a-tag
v-else-if=
"record.status === 2"
color=
"green"
>
已发布
</a-tag>
<a-tag
v-else
color=
"red"
>
已过期
</a-tag>
</
template
>
</
template
>
</a-table-column>
</a-table-column>
<a-table-column
title=
"生效时间"
>
<a-table-column
title=
"生效时间"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录