Commit 6f589f22 authored by 皮倩雯's avatar 皮倩雯

流程管理功能优化

parent 2496db36
Pipeline #33956 passed with stages
in 1 minute 7 seconds
......@@ -15,6 +15,7 @@ const ProcessModal = props => {
const [isType, setIsType] = useState(''); // 弹窗类型
const [record1, setRecord1] = useState('')
const [obj, setObj] = useState('')
const [flag, setFlag] = useState(0)
const columns = [
......@@ -91,7 +92,7 @@ const ProcessModal = props => {
setTableData(res.data)
}
})
},[visible])
},[visible,flag])
const addIncident = () => {
console.log(formObj.ID)
setObj(formObj.ID)
......@@ -112,7 +113,9 @@ const ProcessModal = props => {
message: '提示',
duration: 3,
description: '删除成功',
});
setFlag(flag+1)
} else {
notification.error({
message: '提示',
......@@ -121,12 +124,6 @@ const ProcessModal = props => {
});
}
})
GetCM_Event_LoadEvenFlows({ eventTypeId: formObj.ID }).then(res => {
if (res.msg === 'Ok') {
console.log(res.data)
setTableData(res.data)
}
})
}
const onOK = () => {
setAddVisible(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