rsf-admin/src/i18n/en.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
rsf-admin/src/i18n/zh.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
rsf-admin/src/page/tenant/TenantList.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
rsf-server/src/main/java/com/vincent/rsf/server/system/entity/Tenant.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
rsf-admin/src/i18n/en.js
@@ -135,6 +135,7 @@ tenant: { name: "name", flag: "flag", root: "root", }, role: { name: "name", rsf-admin/src/i18n/zh.js
@@ -135,6 +135,7 @@ tenant: { name: "租户名", flag: "代码", root: "管理员", }, role: { name: "角色名称", rsf-admin/src/page/tenant/TenantList.jsx
@@ -113,6 +113,7 @@ <NumberField source="id" /> <TextField source="name" label="table.field.tenant.name" /> <TextField source="flag" label="table.field.tenant.flag" /> {/* <TextField source="root$" label="table.field.tenant.root" /> */} <DateField source="updateTime" label="common.field.updateTime" showTime /> <DateField source="createTime" label="common.field.createTime" showTime /> <BooleanField source="statusBool" label="common.field.status" sortable={false} /> rsf-server/src/main/java/com/vincent/rsf/server/system/entity/Tenant.java
@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import com.vincent.rsf.framework.common.Cools; import com.vincent.rsf.framework.common.SpringUtils; import com.vincent.rsf.server.system.service.UserService; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -38,6 +40,12 @@ private String flag; /** * 管理员 */ @ApiModelProperty(value= "管理员") private Long root; /** * 状态 1: 正常 0: 禁用 */ @ApiModelProperty(value= "状态 1: 正常 0: 禁用 ") @@ -68,6 +76,15 @@ @ApiModelProperty(value= "备注") private String memo; public String getRoot$(){ UserService service = SpringUtils.getBean(UserService.class); User user = service.getById(this.root); if (!Cools.isEmpty(user)){ return String.valueOf(user.getUsername()); } return null; } public Boolean getStatusBool(){ if (null == this.status){ return null; } switch (this.status){