|
@@ -255,6 +255,7 @@ function CommitAuditModal(props) {
|
|
|
addAuditList.push(res.data.result);
|
|
|
}
|
|
|
}
|
|
|
+ console.log(addAuditList);
|
|
|
setAuditList(
|
|
|
addAuditList.map((item, index) => {
|
|
|
let FormComponents = Form3x.create({
|
|
@@ -267,7 +268,7 @@ function CommitAuditModal(props) {
|
|
|
|
|
|
return {
|
|
|
...item,
|
|
|
- FormComponents: <FormComponents items={schemaContent.items} />,
|
|
|
+ FormComponents: <FormComponents items={item.schemaContent.items} />,
|
|
|
};
|
|
|
})
|
|
|
);
|
|
@@ -403,11 +404,11 @@ function CommitAuditModal(props) {
|
|
|
</Form.Item>
|
|
|
</Form>
|
|
|
<Tabs defaultActiveKey="1" onChange={onTabChange}>
|
|
|
- {auditList.map(item => (
|
|
|
+ {auditList.map((item, idx) => (
|
|
|
// <TabPane tab={item.label} key={`${item.Id}_${item.label}`}>
|
|
|
// <AuditDetailed />
|
|
|
// </TabPane>
|
|
|
- <TabPane tab={schemaContent.title} key={`${item.Id}_${item.label}`}>
|
|
|
+ <TabPane tab={item.title} key={`${idx}_${item.title}`}>
|
|
|
{item.FormComponents}
|
|
|
</TabPane>
|
|
|
))}
|