添加长度限制

This commit is contained in:
zhanghan11 2024-07-04 15:00:49 +08:00
parent 3c2987dc81
commit 91ef8ceb8e
2 changed files with 19 additions and 2 deletions

View File

@ -916,11 +916,11 @@ export default {
{ {
required: true, required: true,
trigger: ["change", "blur"], trigger: ["change", "blur"],
message: "请输入巡检内容", message: "请输入巡检计划内容",
}, },
{ {
max: 150, max: 150,
message: "巡检内容长度不能超过150个字符", message: "巡检计划内容长度不能超过150个字符",
trigger: ["change", "blur"], trigger: ["change", "blur"],
}, },
], ],

View File

@ -600,6 +600,11 @@ export default {
trigger: "blur", trigger: "blur",
message: "请输入巡检结果", message: "请输入巡检结果",
}, },
{
max: 25,
message: "巡检结果长度不能超过25个字符",
trigger: ["change", "blur"],
},
], ],
reportContent: [ reportContent: [
{ {
@ -607,6 +612,18 @@ export default {
trigger: "blur", trigger: "blur",
message: "请输入巡检报告内容", message: "请输入巡检报告内容",
}, },
{
max: 250,
message: "巡检报告内容长度不能超过250个字符",
trigger: ["change", "blur"],
},
],
remark: [
{
max: 150,
message: "备注长度不能超过150个字符",
trigger: ["change", "blur"],
},
], ],
}, },
props: { props: {