From 21caa0b9c2b2e3d77f3cbd45df122f6a84d30afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 17 Mar 2020 00:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/AppConfig.js | 2 +- .../src/modules/courses/Video/VideoIndex.js | 26 ++++++++++++++----- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 043c0f78d..fee6eb724 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -46,7 +46,7 @@ debugType="admin"; // 老师 // debugType="teacher"; // 学生 -//debugType="student"; +// debugType="student"; diff --git a/public/react/src/modules/courses/Video/VideoIndex.js b/public/react/src/modules/courses/Video/VideoIndex.js index d8e600f4c..e2b3a0841 100644 --- a/public/react/src/modules/courses/Video/VideoIndex.js +++ b/public/react/src/modules/courses/Video/VideoIndex.js @@ -268,6 +268,9 @@ class VideoIndex extends Component { const newOperation = flag; const new_upload = flag && (is_teacher && this.props.checkIfProfessionalCertification()); + const isAdmin = this.props&& this.props.isAdmin(); + + return ( + + { + videoId ? + "" + : + this.statisticsy(true)} + >统计 + } + + { newOperation ? @@ -332,13 +346,7 @@ class VideoIndex extends Component { onClick={() => this.editDir(videoData && videoData.category_name, videoId)} className={"ml30 font-16"}>目录重命名 : - - - this.statisticsy(true)} - >统计 - 新建目录 - + 新建目录 } : "" } + + + + : 添加直播