Commit 98b6239e by lizhilin

更新

parent a92c0950
...@@ -120,7 +120,7 @@ protected function form() ...@@ -120,7 +120,7 @@ protected function form()
}) })
->when(2, function (Form $form) { ->when(2, function (Form $form) {
$form->text('name')->setLabelClass(['asterisk']); $form->text('name')->setLabelClass(['asterisk']);
$form->text('identity_card')->setLabelClass(['asterisk']); $form->text('identity_card');
}) })
->options([ ->options([
1 => '单位', 1 => '单位',
...@@ -164,11 +164,11 @@ protected function form() ...@@ -164,11 +164,11 @@ protected function form()
} }
} elseif ($wtype == 2) { } elseif ($wtype == 2) {
if (!$name) { if (!$name) {
$form->responseValidationMessages('name', "姓名"); $form->responseValidationMessages('name', "姓名不为空");
}
if (!$identity_card) {
$form->responseValidationMessages('identity_card', "身份证号码不为空");
} }
// if (!$identity_card) {
// $form->responseValidationMessages('identity_card', "身份证号码不为空");
// }
} }
}); });
......
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