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

提交身份认证bug

parent 51a77407
......@@ -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: '隐藏条件',
......
......@@ -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 = {
......
......@@ -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;
......
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