提交 4049b316 authored 作者: 钟是志's avatar 钟是志

batchAuditHiddenForm 配置项修改

上级 b10e616c
...@@ -25,7 +25,7 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) { ...@@ -25,7 +25,7 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) {
const [data, setData] = useState(null); const [data, setData] = useState(null);
const [taskDefinition, setTaskDefinition] = useState({}); const [taskDefinition, setTaskDefinition] = useState({});
const [configNoNeedForm, setConfigNeedForm] = useState(false); const [configNoNeedForm, setConfigNeedForm] = useState(true);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
useEffect( useEffect(
...@@ -48,12 +48,14 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) { ...@@ -48,12 +48,14 @@ function AuditModal({ form, selectRows, children, getPage, noNeedForm }) {
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(true); setConfigNeedForm(false);
} }
}else{
setConfigNeedForm(false);
} }
} }
}) });
} }
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论