|
|
|
@ -3,7 +3,7 @@ import {getImageUrl,markdownToHTML, configShareForCustom} from 'educoder';
|
|
|
|
|
import DetailTop from './DetailTop.js';
|
|
|
|
|
import DetailCards from './DetailCards.js'
|
|
|
|
|
import AddCollaborators from "./addCollaborators.js";
|
|
|
|
|
import {Icon,Tooltip} from 'antd';
|
|
|
|
|
import {Icon, Tooltip, Popover} from 'antd';
|
|
|
|
|
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
|
|
|
|
|
import { DragDropContext , Draggable, Droppable} from 'react-beautiful-dnd';
|
|
|
|
|
import '../../paths/ShixunPaths.css';
|
|
|
|
@ -498,6 +498,10 @@ class PathDetailIndex extends Component{
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
} else if (i === 3) {
|
|
|
|
|
this.setState({
|
|
|
|
|
modify: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -506,6 +510,12 @@ class PathDetailIndex extends Component{
|
|
|
|
|
team_title: name
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
maincontent = () => {
|
|
|
|
|
return (<div className={"sandianbox"}>
|
|
|
|
|
<div onClick={() => this.modifysy(1)}>重命名</div>
|
|
|
|
|
</div>)
|
|
|
|
|
}
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
this.updatamakedown("shixuns_propaedeutics");
|
|
|
|
@ -664,17 +674,24 @@ class PathDetailIndex extends Component{
|
|
|
|
|
members ===undefined ?"":members === null ?"":
|
|
|
|
|
<div className="teacherTeam edu-back-white clearfix" id="subject_members">
|
|
|
|
|
{
|
|
|
|
|
detailInfoList === undefined ? "" : detailInfoList.allow_add_member === true ?
|
|
|
|
|
detailInfoList === undefined ?
|
|
|
|
|
<p className="font-16 clearfix">{team_title}</p> : detailInfoList.allow_add_member === true ?
|
|
|
|
|
(
|
|
|
|
|
modify === false ?
|
|
|
|
|
<p className="font-16 clearfix" onDoubleClick={() => this.modifysy(1)}>{team_title}</p>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<p className="font-16 clearfix fl" onDoubleClick={() => this.modifysy(1)}>{team_title}</p>
|
|
|
|
|
<Popover placement="right" content={this.maincontent()} trigger="hover">
|
|
|
|
|
<i className={"iconfont icon-sandian fr color999"}></i>
|
|
|
|
|
</Popover>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<Modifytext {...this.props} {...this.state} pathid={this.props.match.params.pathId}
|
|
|
|
|
modifysy={(i) => this.modifysy(i)}
|
|
|
|
|
setteam_title={(name) => this.setteam_title(name)}></Modifytext>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
: ""
|
|
|
|
|
: <p className="font-16 clearfix">{team_title}</p>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{ members===undefined?
|
|
|
|
|