提交 1ef18b20 编写于 作者: Mosher's avatar Mosher

update:开始流程增加值规则校验错误提示

上级 6b90938d
...@@ -19,6 +19,15 @@ ...@@ -19,6 +19,15 @@
validateStatus = xData.formValidateStatus(); validateStatus = xData.formValidateStatus();
} }
if (!validateStatus) { if (!validateStatus) {
if(xData.errorMessages && xData.errorMessages.length > 0) {
let descMessage: string = '';
xData.errorMessages.forEach((message: any) => {
descMessage = descMessage + '<p>' + message.error + '<p>';
})
xData.$Notice.error({ title: (xData.$t('app.commonWords.wrong') as string), desc: descMessage });
} else {
xData.$Notice.error({ title: (xData.$t('app.commonWords.wrong') as string), desc: (xData.$t('app.formpage.valuecheckex') as string) });
}
return; return;
} }
const startWorkFlow: Function = (param: any, localdata: any) => { const startWorkFlow: Function = (param: any, localdata: any) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册