Commit 2f9b4eed authored by 罗剑's avatar 罗剑

提交身份认证bug

parent 51a77407
...@@ -2526,6 +2526,7 @@ const advancedWidgets = [ ...@@ -2526,6 +2526,7 @@ const advancedWidgets = [
widget: 'IDCard', widget: 'IDCard',
width: '100%', width: '100%',
preview: true, preview: true,
showField:['身份号码','姓名', '名族', '住址','出生','性别', '失效日期', '签发机关','签发日期'],
}, },
setting: { setting: {
widget: { widget: {
...@@ -2554,7 +2555,6 @@ const advancedWidgets = [ ...@@ -2554,7 +2555,6 @@ const advancedWidgets = [
title: '身份信息', title: '身份信息',
type: 'array', type: 'array',
widget:'CheckBoxGroup', widget:'CheckBoxGroup',
default: [],
}, },
// hiddenCondition: { // hiddenCondition: {
// title: '隐藏条件', // title: '隐藏条件',
......
...@@ -36,14 +36,13 @@ const IDCard = (props) => { ...@@ -36,14 +36,13 @@ const IDCard = (props) => {
const site = window.globalConfig?.userInfo?.site || window.globalConfig?.userInfo?.LocalSite; const site = window.globalConfig?.userInfo?.site || window.globalConfig?.userInfo?.LocalSite;
const { addons, value, schema, onChange } = props; 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 [showList, setShowList] = useState([]);
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
const [showFile, setShowFile] = useState({ fileType: '', filePath: '' }); const [showFile, setShowFile] = useState({ fileType: '', filePath: '' });
const [workbook, setWorkbook] = useState({ SheetNames: [] }); const [workbook, setWorkbook] = useState({ SheetNames: [] });
const [cardSide, setCardSide] = useState("front"); const [cardSide, setCardSide] = useState("front");
const [cardInfo, setCardInfo] = useState({}); const [cardInfo, setCardInfo] = useState({});
const showField = schema.showField || ['身份号码','姓名', '名族', '住址','出生','性别', '失效日期', '签发机关','签发日期'];
const showType = fileType === '图片' ? 'picture-card' : 'picture'; const showType = fileType === '图片' ? 'picture-card' : 'picture';
const option = { const option = {
......
...@@ -8,9 +8,10 @@ const CheckboxGroup = Checkbox.Group; ...@@ -8,9 +8,10 @@ const CheckboxGroup = Checkbox.Group;
const TableNames = (props) => { const TableNames = (props) => {
const { value, schema ,onChange} = props; const { value, schema ,onChange} = props;
const [checkedList, setCheckedList] = useState((value && value.length>0) const [checkedList, setCheckedList] = useState((value && value.length>0)
? value : defaultCheckedList); ? value : defaultCheckedList);
console.log(checkedList,"checkedListcheckedListcheckedList");
const checkAll = plainOptions.length === checkedList.length; const checkAll = plainOptions.length === checkedList.length;
const indeterminate = checkedList.length > 0 && checkedList.length < plainOptions.length; const indeterminate = checkedList.length > 0 && checkedList.length < plainOptions.length;
......
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