From b6d2fba1812a3934e7ea86477584a313931e1401 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Sun, 10 Mar 2024 16:28:00 +0800 Subject: [PATCH] '20240310' --- .../java/com/ruoyi/system/domain/SysConfig.java | 6 +++--- ruoyi-ui/src/views/system/config/index.vue | 14 +++++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java index c54678c..2375057 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java @@ -10,7 +10,7 @@ import com.ruoyi.common.core.domain.BaseEntity; /** * 参数配置表 sys_config - * + * * @author ruoyi */ public class SysConfig extends BaseEntity @@ -71,7 +71,7 @@ public class SysConfig extends BaseEntity this.configKey = configKey; } - @NotBlank(message = "参数键值不能为空") + /*@NotBlank(message = "参数键值不能为空")*/ @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") public String getConfigValue() { @@ -92,7 +92,7 @@ public class SysConfig extends BaseEntity { this.configType = configType; } - + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/ruoyi-ui/src/views/system/config/index.vue b/ruoyi-ui/src/views/system/config/index.vue index c1c09be..fc3a0bf 100644 --- a/ruoyi-ui/src/views/system/config/index.vue +++ b/ruoyi-ui/src/views/system/config/index.vue @@ -151,13 +151,13 @@ - + - + - + @@ -206,6 +206,8 @@ export default { title: "", // 是否显示弹出层 open: false, + //是否可编辑 + isDis: false, // 日期范围 dateRange: [], // 查询参数 @@ -226,9 +228,9 @@ export default { configKey: [ { required: true, message: "参数键名不能为空", trigger: "blur" } ], - configValue: [ + /*configValue: [ { required: true, message: "参数键值不能为空", trigger: "blur" } - ] + ]*/ } }; }, @@ -279,6 +281,7 @@ export default { this.reset(); this.open = true; this.title = "添加参数"; + this.isDis = false; }, // 多选框选中数据 handleSelectionChange(selection) { @@ -294,6 +297,7 @@ export default { this.form = response.data; this.open = true; this.title = "修改参数"; + this.isDis = true; }); }, /** 提交按钮 */