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