Commit 942cf0ed authored by zhangwenshuai's avatar zhangwenshuai

update daterange check null

parent d3313b5f
......@@ -353,7 +353,7 @@ const Cell = (props: CellProps) => {
rowData={record}
onEmitChange={(changedValue: any, optionValue: any, reset?: boolean) => {
// 校验必填项
if (requiredFlag&&!changedValue) {
if (requiredFlag && (!changedValue || changedValue.length === 0)) {
message.error('该字段为必填项');
resetEditStatus();
return;
......
......@@ -192,7 +192,7 @@ class FormWrap extends Component {
rowId={rowId}
onEmitChange={(changedValue: any, optionValue: any) => {
// 校验必填项
if (requiredFlag && !changedValue) {
if (requiredFlag && (!changedValue || changedValue.length === 0)) {
// message.error('必填项不能为空');
return;
}
......
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