Merge branch '1.1.x' into dev
This commit is contained in:
commit
c6ae5db826
@ -225,6 +225,7 @@ continew-admin
|
||||
├─ public # 公共静态资源(favicon.ico、logo.svg)
|
||||
├─ src
|
||||
│ ├─ api # 请求接口
|
||||
│ │ ├─ demo # 示例模块
|
||||
│ │ ├─ auth # 认证模块
|
||||
│ │ ├─ common # 公共模块
|
||||
│ │ ├─ monitor # 系统监控模块
|
||||
@ -247,7 +248,7 @@ continew-admin
|
||||
│ ├─ types # TypeScript 类型
|
||||
│ ├─ utils # 工具库
|
||||
│ ├─ views # 页面模板
|
||||
│ │ ├─ arco-design # Arco Design 相关示例模块
|
||||
│ │ ├─ demo # Arco Design 相关示例模块
|
||||
│ │ ├─ dashboard # 仪表盘模块
|
||||
│ │ ├─ login # 登录模块
|
||||
│ │ ├─ monitor # 系统监控模块
|
||||
|
@ -66,17 +66,17 @@ public class AnnouncementVO extends BaseVO {
|
||||
*
|
||||
* @return 公告状态
|
||||
*/
|
||||
@Schema(description = "状态(1:已发布,2:已过期)", example = "1")
|
||||
@Schema(description = "状态(1:待发布,2:已发布,3:已过期)", example = "1")
|
||||
public Integer getStatus() {
|
||||
int status = 1;
|
||||
int status = 2;
|
||||
if (null != this.effectiveTime) {
|
||||
if (this.effectiveTime.isAfter(LocalDateTime.now())) {
|
||||
status = 2;
|
||||
status = 1;
|
||||
}
|
||||
}
|
||||
if (null != this.terminateTime) {
|
||||
if (this.terminateTime.isBefore(LocalDateTime.now())) {
|
||||
status = 2;
|
||||
status = 3;
|
||||
}
|
||||
}
|
||||
return status;
|
||||
|
@ -135,8 +135,9 @@
|
||||
</a-table-column>
|
||||
<a-table-column title="状态" align="center">
|
||||
<template #cell="{ record }">
|
||||
<a-tag v-if="record.status === 1" color="green">已发布</a-tag>
|
||||
<a-tag v-else color="orangered">已过期</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="blue">待发布</a-tag>
|
||||
<a-tag v-else-if="record.status === 2" color="green">已发布</a-tag>
|
||||
<a-tag v-else color="red">已过期</a-tag>
|
||||
</template>
|
||||
</a-table-column>
|
||||
<a-table-column title="生效时间">
|
||||
|
Loading…
Reference in New Issue
Block a user