refactor: 优化系统配置页面样式

1.优化系统配置页面样式
2.修复部分错误及遗漏
This commit is contained in:
Charles7c 2023-09-21 22:53:20 +08:00
parent 3c07e571e3
commit c344bceb3f
5 changed files with 21 additions and 11 deletions

View File

@ -21,11 +21,13 @@ import java.time.LocalDateTime;
import lombok.Data; import lombok.Data;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
/** /**
* 系统参数 * 系统参数实体
* *
* @author Bull-BCLS * @author Bull-BCLS
* @since 2023/8/26 19:20 * @since 2023/8/26 19:20
@ -65,10 +67,12 @@ public class OptionDO implements Serializable {
/** /**
* 修改人 * 修改人
*/ */
@TableField(fill = FieldFill.UPDATE)
private Long updateUser; private Long updateUser;
/** /**
* 修改时间 * 修改时间
*/ */
@TableField(fill = FieldFill.UPDATE)
private LocalDateTime updateTime; private LocalDateTime updateTime;
} }

View File

@ -9,7 +9,7 @@
:disabled="!isEdit" :disabled="!isEdit"
> >
<a-list class="list-layout" :bordered="false"> <a-list class="list-layout" :bordered="false">
<a-list-item class="list-item"> <a-list-item>
<a-form-item class="image-item" hide-label field="favicon"> <a-form-item class="image-item" hide-label field="favicon">
{{ siteFavicon?.name }} {{ siteFavicon?.name }}
<template #extra> <template #extra>
@ -52,7 +52,7 @@
</template> </template>
</a-form-item> </a-form-item>
</a-list-item> </a-list-item>
<a-list-item class="list-item"> <a-list-item>
<a-form-item class="image-item" hide-label field="site_logo"> <a-form-item class="image-item" hide-label field="site_logo">
{{ siteLogo?.name }} {{ siteLogo?.name }}
<template #extra> <template #extra>
@ -95,7 +95,7 @@
</template> </template>
</a-form-item> </a-form-item>
</a-list-item> </a-list-item>
<a-list-item class="list-item" style="border: none"> <a-list-item style="padding-top: 20px; border: none">
<a-form-item <a-form-item
class="input-item" class="input-item"
:label="siteTitle?.name" :label="siteTitle?.name"
@ -344,16 +344,20 @@
} }
.arco-form .image-item { .arco-form .image-item {
margin-left: 2px;
margin-bottom: 0; margin-bottom: 0;
} }
.arco-form .input-item { .arco-form .input-item {
margin-left: -18px; margin-left: -20px;
} }
.list-layout .list-item { :deep(
padding: 20px 0; .arco-list-medium
.arco-list-content-wrapper
.arco-list-content
> .arco-list-item
) {
padding: 13px;
border-bottom: 1px solid var(--color-fill-3); border-bottom: 1px solid var(--color-fill-3);
} }
</style> </style>

View File

@ -3,10 +3,10 @@
<Breadcrumb :items="['menu.system', 'menu.system.config']" /> <Breadcrumb :items="['menu.system', 'menu.system.config']" />
<a-card class="general-card" :title="$t('menu.system.config')"> <a-card class="general-card" :title="$t('menu.system.config')">
<a-tabs default-active-key="1" type="rounded"> <a-tabs default-active-key="1" type="rounded">
<a-tab-pane key="1" title="基础配置(正在开发)"> <a-tab-pane key="1" title="基础配置">
<BasicSetting /> <BasicSetting />
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="2" title="高级配置(暂未开放)" disabled></a-tab-pane> <a-tab-pane key="2" title="高级配置" disabled></a-tab-pane>
</a-tabs> </a-tabs>
</a-card> </a-card>
</div> </div>

View File

@ -1,3 +1,3 @@
export default { export default {
'menu.system.config': '系统配置', 'menu.system.config': '系统配置(开发中)',
}; };

View File

@ -18,6 +18,7 @@ package top.charles7c.cnadmin.webapi.controller.system;
import java.util.List; import java.util.List;
import cn.dev33.satoken.annotation.SaCheckPermission;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
@ -48,6 +49,7 @@ public class OptionController {
private final OptionService optionService; private final OptionService optionService;
@Operation(summary = "查询系统参数列表", description = "查询系统参数列表") @Operation(summary = "查询系统参数列表", description = "查询系统参数列表")
@SaCheckPermission("system:config:list")
@GetMapping @GetMapping
public R<List<OptionVO>> list(@Validated OptionQuery query) { public R<List<OptionVO>> list(@Validated OptionQuery query) {
return R.ok(optionService.list(query)); return R.ok(optionService.list(query));