提交 69bd00c1 authored 作者: 钟是志's avatar 钟是志

批量审批 bug修改

上级 a64ad6d2
...@@ -36,20 +36,20 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) { ...@@ -36,20 +36,20 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) {
getTaskDefinition({ getTaskDefinition({
appId: res.appId, appId: res.appId,
key: res.taskDefinitionKey, key: res.taskDefinitionKey,
}).then((res2) =>{ }).then((res2) => {
if(res2){ if (res2) {
setTaskDefinition(res2); setTaskDefinition(res2);
if(res2.id && res2.formProperties){ // 从流程的配置项里面去取 批量审批时是否显示表单的配置项 if (res2.id && res2.formProperties) {
// 从流程的配置项里面去取 批量审批时是否显示表单的配置项
let check = res2.formProperties.find((g) => g.name === 'batchAuditHiddenForm'); let check = res2.formProperties.find((g) => g.name === 'batchAuditHiddenForm');
if(!check || check.expression !== 'true'){ if (!check || check.expression !== 'true') {
setConfigNeedForm(false); setConfigNeedForm(false);
} }
}else{ } else {
setConfigNeedForm(false); setConfigNeedForm(false);
} }
} }
}); });
} }
}); });
}, },
...@@ -71,9 +71,10 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) { ...@@ -71,9 +71,10 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) {
return ( return (
<> <>
{visible && (
<Modal <Modal
width={900} width={900}
visible={visible} visible={true}
title="批量审核" title="批量审核"
maskClosable={false} maskClosable={false}
footer={footer} footer={footer}
...@@ -102,6 +103,8 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) { ...@@ -102,6 +103,8 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) {
</div> </div>
</Spin> </Spin>
</Modal> </Modal>
)}
{children({ onShow: () => setVisible(true) })} {children({ onShow: () => setVisible(true) })}
</> </>
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论