Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xform
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田翔
xform
Commits
2f9b4eed
Commit
2f9b4eed
authored
Jan 12, 2024
by
罗剑
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交身份认证bug
parent
51a77407
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
settings.js
src/core/FormDesigner/config/settings.js
+1
-1
index.js
src/core/widgets/advanced/IDCard/index.js
+1
-2
index.js
src/core/widgets/settings/groupStyle/CheckBoxGroup/index.js
+2
-1
No files found.
src/core/FormDesigner/config/settings.js
View file @
2f9b4eed
...
...
@@ -2526,6 +2526,7 @@ const advancedWidgets = [
widget
:
'IDCard'
,
width
:
'100%'
,
preview
:
true
,
showField
:[
'身份号码'
,
'姓名'
,
'名族'
,
'住址'
,
'出生'
,
'性别'
,
'失效日期'
,
'签发机关'
,
'签发日期'
],
},
setting
:
{
widget
:
{
...
...
@@ -2554,7 +2555,6 @@ const advancedWidgets = [
title
:
'身份信息'
,
type
:
'array'
,
widget
:
'CheckBoxGroup'
,
default
:
[],
},
// hiddenCondition: {
// title: '隐藏条件',
...
...
src/core/widgets/advanced/IDCard/index.js
View file @
2f9b4eed
...
...
@@ -36,14 +36,13 @@ const IDCard = (props) => {
const
site
=
window
.
globalConfig
?.
userInfo
?.
site
||
window
.
globalConfig
?.
userInfo
?.
LocalSite
;
const
{
addons
,
value
,
schema
,
onChange
}
=
props
;
const
{
disabled
,
fileType
,
presetValue
,
placeholder
,
preview
,
download
}
=
schema
;
const
{
disabled
,
fileType
,
presetValue
,
placeholder
,
preview
,
download
,
showField
}
=
schema
;
const
[
showList
,
setShowList
]
=
useState
([]);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
showFile
,
setShowFile
]
=
useState
({
fileType
:
''
,
filePath
:
''
});
const
[
workbook
,
setWorkbook
]
=
useState
({
SheetNames
:
[]
});
const
[
cardSide
,
setCardSide
]
=
useState
(
"front"
);
const
[
cardInfo
,
setCardInfo
]
=
useState
({});
const
showField
=
schema
.
showField
||
[
'身份号码'
,
'姓名'
,
'名族'
,
'住址'
,
'出生'
,
'性别'
,
'失效日期'
,
'签发机关'
,
'签发日期'
];
const
showType
=
fileType
===
'图片'
?
'picture-card'
:
'picture'
;
const
option
=
{
...
...
src/core/widgets/settings/groupStyle/CheckBoxGroup/index.js
View file @
2f9b4eed
...
...
@@ -8,9 +8,10 @@ const CheckboxGroup = Checkbox.Group;
const
TableNames
=
(
props
)
=>
{
const
{
value
,
schema
,
onChange
}
=
props
;
const
[
checkedList
,
setCheckedList
]
=
useState
((
value
&&
value
.
length
>
0
)
?
value
:
defaultCheckedList
);
console
.
log
(
checkedList
,
"checkedListcheckedListcheckedList"
);
const
checkAll
=
plainOptions
.
length
===
checkedList
.
length
;
const
indeterminate
=
checkedList
.
length
>
0
&&
checkedList
.
length
<
plainOptions
.
length
;
...
...
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