From 27bb96d426165e5ca066a2d2f41123e7c0d261b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 6 Nov 2019 10:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=95=99=E5=AD=A6=E5=9B=A2?= =?UTF-8?q?=E9=98=9F=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/paths/PathDetail/Modifytext.js | 23 ++++++++++++++--- .../paths/PathDetail/PathDetailIndex.js | 25 ++++++++++++++++--- 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/public/react/src/modules/paths/PathDetail/Modifytext.js b/public/react/src/modules/paths/PathDetail/Modifytext.js index ca12659a9..c7d95cd1a 100644 --- a/public/react/src/modules/paths/PathDetail/Modifytext.js +++ b/public/react/src/modules/paths/PathDetail/Modifytext.js @@ -54,6 +54,12 @@ class Modifytext extends Component { } + //取消 + hideUpdating = () => { + this.props.modifysy(3); + + } + render() { const {getFieldDecorator} = this.props.form; @@ -96,7 +102,7 @@ class Modifytext extends Component { } .settingFormsy input { - width: 275px; + width: 200px; height: 32px; } .settingFormsy input.validateInput { @@ -147,9 +153,18 @@ class Modifytext extends Component {

-
- {/*
this.yhBanksfalse()}>

取消

*/} - +
+ +
diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index b393d1bb6..02ef25aa1 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -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 (
+
this.modifysy(1)}>重命名
+
) + } render(){ this.updatamakedown("shixuns_propaedeutics"); @@ -664,17 +674,24 @@ class PathDetailIndex extends Component{ members ===undefined ?"":members === null ?"":
{ - detailInfoList === undefined ? "" : detailInfoList.allow_add_member === true ? + detailInfoList === undefined ? +

{team_title}

: detailInfoList.allow_add_member === true ? ( modify === false ? -

this.modifysy(1)}>{team_title}

+ +
+

this.modifysy(1)}>{team_title}

+ + + +
: this.modifysy(i)} setteam_title={(name) => this.setteam_title(name)}> ) - : "" + :

{team_title}

} { members===undefined?