|
|
@ -11,7 +11,7 @@ import CommonWorkItem from './CommonWorkItem'
|
|
|
|
import PublishRightnow from './PublishRightnow'
|
|
|
|
import PublishRightnow from './PublishRightnow'
|
|
|
|
import ConnectProject from './ConnectProject'
|
|
|
|
import ConnectProject from './ConnectProject'
|
|
|
|
|
|
|
|
|
|
|
|
import { WordsBtn } from 'educoder'
|
|
|
|
import { WordsBtn, on, off } from 'educoder'
|
|
|
|
import Modals from '../../modals/Modals'
|
|
|
|
import Modals from '../../modals/Modals'
|
|
|
|
import NoneData from "../coursesPublic/NoneData"
|
|
|
|
import NoneData from "../coursesPublic/NoneData"
|
|
|
|
import Titlesearchsection from '../common/titleSearch/TitleSearchSection';
|
|
|
|
import Titlesearchsection from '../common/titleSearch/TitleSearchSection';
|
|
|
@ -76,18 +76,29 @@ class commonWork extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentDidUpdate(prevProps, prevState) {
|
|
|
|
componentDidUpdate(prevProps, prevState) {
|
|
|
|
if (prevProps.match.path != this.props.match.path) {
|
|
|
|
if (prevProps.match.path != this.props.match.path) {
|
|
|
|
this.componentDidMount()
|
|
|
|
this._getList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getList = () => {
|
|
|
|
componentDidMount(){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
isSpin:true
|
|
|
|
isSpin:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let {page,search,order}=this.state;
|
|
|
|
let {page,search,order}=this.state;
|
|
|
|
this.getList(page,search,order);
|
|
|
|
this.getList(page,search,order);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
|
|
|
this._getList()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
on('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
|
|
|
off('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
updateNavSuccess = () => {
|
|
|
|
|
|
|
|
this._getList()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
useBankSuccess = (checkBoxValues, newWorkIdArray) => {
|
|
|
|
useBankSuccess = (checkBoxValues, newWorkIdArray) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
page:1,
|
|
|
|
page:1,
|
|
|
|