Commit e3e71d8b authored by 皮倩雯's avatar 皮倩雯

事件模块限制摘要字段配置长度

parent 83c0f277
Pipeline #59535 passed with stages
......@@ -1540,9 +1540,22 @@ const AddModal = props => {
rules={[
{
validator: (rule, value) => {
if (form.getFieldValue().SummaryFields == '') {
console.log(checkedList1);
let aa =form.getFieldValue().SummaryFields
let bb =[];
console.log(aa.split(','));
aa.split(',').map(i=>{
if(i!=''){
bb.push(i)
}
})
console.log(bb);
if (aa == '') {
return Promise.reject('摘要字段必选');
}
if(bb.length<3|| aa.split(',').length>5){
return Promise.reject('最少配置三个字段,最多配置五个字段');
}
return Promise.resolve();
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment