Commit 233f5276 authored by 彭俊龙's avatar 彭俊龙

feat:自动化工单校验优化

parent d9071e9f
Pipeline #96542 failed with stages
......@@ -1064,6 +1064,7 @@ const CaseModify = props => {
} else {
activityIdErrMsg = '';
}
console.log(userIds, roleIds , 'userIds, roleIdsuserIds, roleIds');
if (userIds.length < 1 && roleIds.length < 1) {
userIdsErrMsg = '请选择下一节点办理人';
} else {
......@@ -1104,7 +1105,7 @@ const CaseModify = props => {
}
setRuleInfos(infos);
} else {
isOk = isOk && userIds.length > 0;
isOk = isOk && (userIds.length > 0 || roleIds.length > 0);
let msg = '';
if (planType === 'ByLoop') {
if (!num || num < 0) {
......@@ -1677,7 +1678,7 @@ const lineText = v => {
style={{ color: '#1890ff', border: '1px solid #1890ff' }}
onClick={() => handleCKPerson(configInfo)}
>
{configInfo.userIds.length > 0 ? '已选下一节点办理人' : '选择下一节点办理人'}
{(configInfo.userIds.length > 0 || configInfo.roleIds.length > 0) ? '已选下一节点办理人' : '选择下一节点办理人'}
</Button>
<p style={{ position: 'absolute', color: 'red' }}>{configInfo.userIdsErrMsg}</p>
</div>
......
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