Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvsuo-pc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhilin
lvsuo-pc
Commits
98b6239e
Commit
98b6239e
authored
Dec 19, 2024
by
lizhilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
a92c0950
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/Admin/Controllers/PrincipalController.php
+5
-5
No files found.
app/Admin/Controllers/PrincipalController.php
View file @
98b6239e
...
@@ -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', "身份证号码不为空");
// }
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment