'20240310'

This commit is contained in:
xd 2024-03-10 16:28:00 +08:00
parent bf95182e7f
commit b6d2fba181
2 changed files with 12 additions and 8 deletions

View File

@ -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()
{

View File

@ -151,10 +151,10 @@
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="参数名称" prop="configName">
<el-input v-model="form.configName" placeholder="请输入参数名称" />
<el-input v-model="form.configName" placeholder="请输入参数名称" :disabled="isDis"/>
</el-form-item>
<el-form-item label="参数键名" prop="configKey">
<el-input v-model="form.configKey" placeholder="请输入参数键名" />
<el-input v-model="form.configKey" placeholder="请输入参数键名" :disabled="isDis" />
</el-form-item>
<el-form-item label="参数键值" prop="configValue">
<el-input v-model="form.configValue" placeholder="请输入参数键值"/>
@ -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;
});
},
/** 提交按钮 */