Merge remote-tracking branch 'origin/dev_aliyun' into dev_aliyun

issues25489
杨树明 5 years ago
commit d31f470956

@ -54,6 +54,12 @@ class Modifytext extends Component {
} }
//取消
hideUpdating = () => {
this.props.modifysy(3);
}
render() { render() {
const {getFieldDecorator} = this.props.form; const {getFieldDecorator} = this.props.form;
@ -96,7 +102,7 @@ class Modifytext extends Component {
} }
.settingFormsy input { .settingFormsy input {
width: 275px; width: 200px;
height: 32px; height: 32px;
} }
.settingFormsy input.validateInput { .settingFormsy input.validateInput {
@ -147,9 +153,18 @@ class Modifytext extends Component {
</Form.Item> </Form.Item>
<div className="flexdirections yslzxueshi ml38 "> <div className="flexdirections yslzxueshi ml38 ">
<p className="fontcolorsyslhui1 font-14 myysllineheight myyslminwidth"></p> <p className="fontcolorsyslhui1 font-14 myysllineheight myyslminwidth"></p>
<div className=" flexdirections ml10"> <div className=" flexdirections ml10" style={{
{/*<div className="buttongo mycompitcursor" onClick={()=>this.yhBanksfalse()}><p className="fontwenzi mycompitcursor" >取消</p></div>*/} display: "flex",
<Button type="primary" onClick={() => this.Modifytext()}>确定</Button> flexDirection: "initial",
marginTop: "24px",
}}>
<Button style={{
background: "#CDCDCD !important",
border: "0.5px solid #CDCDCD"
}} type="primary grayBtn " onClick={() => this.hideUpdating()}>取消</Button>
<Button style={{
marginLeft: "10px",
}} type="primary" onClick={() => this.Modifytext()}>确定</Button>
</div> </div>
</div> </div>
</div> </div>

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

Loading…
Cancel
Save