dev_hjm
hjm 6 years ago
parent 9442fa2705
commit cde78d7603

@ -64,3 +64,4 @@ export { default as ImageLayerHook } from './hooks/ImageLayerHook'
// 外部
export { default as CBreadcrumb } from '../modules/courses/common/CBreadcrumb'
export { CNotificationHOC as CNotificationHOC } from '../modules/courses/common/CNotificationHOC'

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import { SnackbarHOC } from 'educoder';
import { SnackbarHOC, CNotificationHOC } from 'educoder';
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
@ -55,4 +55,4 @@ class Index extends Component{
)
}
}
export default SnackbarHOC() ( TPMIndexHOC(Index) );
export default CNotificationHOC() (SnackbarHOC() ( TPMIndexHOC(Index) ));

@ -112,6 +112,10 @@ class PathDetailIndex extends Component{
this.setState({
Modalstype:false,
})
// TODO 这个是临时处理,还需要优化,这里要看怎么区分处理
if (this.state.Modalstopval == '你确定要删除该成员吗?') {
return;
}
this.props.history.goBack()
}
@ -248,11 +252,12 @@ class PathDetailIndex extends Component{
let param={user_id:user_id};
axios.delete(url,{data:param}).then((response) => {
if(response.data.status===1){
this.props.showNotification(response.data.message)
this.setState({
Modalstype:true,
Modalstopval:response.data.message,
loadtype:true,
cardsModalsave:this.cardsModalsave,
Modalstype:false,
// Modalstopval:response.data.message,
loadtype:false,
// cardsModalsave:this.cardsModalsave,
})
this.updatadetailInfoList();
}

Loading…
Cancel
Save