Commit 55bdccd7 by zhaochengxiang

评审流程提示

parent 52c9bfe3
......@@ -3,7 +3,7 @@ import { Space, Button, Descriptions, Form, Input, Tooltip, Typography, Select,
import produce from "immer"
import Table from '../../../util/Component/Table'
import { isSzseEnv, getQueryParam, showMessage } from "../../../util"
import { isSzseEnv, getQueryParam, showMessage, showNotifaction } from "../../../util"
import { dispatch } from '../../../model';
import { Action, ApprovalId, ApprovalType, ModelerId, TaskId } from "../../../util/constant"
......@@ -100,8 +100,15 @@ const FC = (props) => {
},
callback: (data) => {
setWaiting(false)
showMessage('success', '提交成功')
window.close()
if (!data?.success) {
if (data?.msg) {
const msg = (data?.msg||'').replace(RegExp("\n", "g"),"<br />")
showNotifaction('提示', msg, 5)
}
} else {
showMessage('success', '提交成功')
window.close()
}
},
error: () => {
setWaiting(false)
......
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