'20240310'
This commit is contained in:
parent
bf95182e7f
commit
b6d2fba181
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -151,13 +151,13 @@
|
|||
<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="请输入参数键值" />
|
||||
<el-input v-model="form.configValue" placeholder="请输入参数键值"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="系统内置" prop="configType">
|
||||
<el-radio-group v-model="form.configType">
|
||||
|
@ -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;
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
|
|
Loading…
Reference in New Issue