From 76e778aba0eb8723fc1878ec013c8546e9e2fd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 9 Sep 2019 21:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AB=A0=E8=8A=82=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coursesDetail/MyEduChapterupdate.js | 46 +++++++++++++++++-- .../courses/coursesDetail/chapterupdate.css | 25 ++++++++++ 2 files changed, 68 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/courses/coursesDetail/MyEduChapterupdate.js b/public/react/src/modules/courses/coursesDetail/MyEduChapterupdate.js index eeb0bc199..e3b07078b 100644 --- a/public/react/src/modules/courses/coursesDetail/MyEduChapterupdate.js +++ b/public/react/src/modules/courses/coursesDetail/MyEduChapterupdate.js @@ -41,6 +41,21 @@ const treeData = [ { title: '0-1-0-0', key: '0-1-0-0' }, { title: '0-1-0-1', key: '0-1-0-1' }, { title: '0-1-0-2', key: '0-1-0-2' }, + { title: '0-1-0-3', key: '0-1-0-3' }, + { title: '0-1-0-4', key: '0-1-0-4' }, + { title: '0-1-0-5', key: '0-1-0-5' }, + { title: '0-1-0-6', key: '0-1-0-6' }, + { title: '0-1-0-7', key: '0-1-0-7' }, + { title: '0-1-0-8', key: '0-1-0-8' }, + { title: '0-1-0-9', key: '0-1-0-9' }, + { title: '0-1-0-10', key: '0-1-0-10' }, + { title: '0-1-0-11', key: '0-1-0-11' }, + { title: '0-1-0-12', key: '0-1-0-12' }, + { title: '0-1-0-13', key: '0-1-0-13' }, + { title: '0-1-0-14', key: '0-1-0-15' }, + { title: '0-1-0-16', key: '0-1-0-16' }, + { title: '0-1-0-17', key: '0-1-0-17' }, + { title: '0-1-0-18', key: '0-1-0-18' }, ], }, { @@ -79,6 +94,16 @@ class MyEduChapterupdate extends Component { myeduchecked:e.target.checked, }) // console.log(`checked = ${e.target.checked}`); + if(e.target.checked===true){ + this.setState({ + checkedKeys:['0-0','0-1','0-2'], + }) + }else { + this.setState({ + checkedKeys:[], + }) + + } } onExpand =(expandedKeys) => { @@ -132,9 +157,24 @@ class MyEduChapterupdate extends Component { width:"100%" }}>