From 950b8f3bd89f71df3e74613c1fee1bc7f90d0773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 12 Mar 2020 22:42:42 +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 --- .../courses/signin/component/Teacherentry.js | 52 ++++++++++++++++- .../teachercomponent/Teaccomponent.js | 2 +- .../modules/courses/signin/css/signincdi.css | 58 ++++++++++++++++++- .../courses/signin/teacher/Teachers_signin.js | 33 +++++++++-- 4 files changed, 137 insertions(+), 8 deletions(-) diff --git a/public/react/src/modules/courses/signin/component/Teacherentry.js b/public/react/src/modules/courses/signin/component/Teacherentry.js index 1ec9aa1b6..0e35595b9 100644 --- a/public/react/src/modules/courses/signin/component/Teacherentry.js +++ b/public/react/src/modules/courses/signin/component/Teacherentry.js @@ -24,11 +24,12 @@ class Teacherentry extends Component{ render(){ + const isAdmin =this.props.isAdmin(); return(
-

+

2020-03-10第五次签到

@@ -45,8 +46,55 @@ class Teacherentry extends Component{
-
+
+
+ +
+ 签到发起人: +
+
+ 胡一菲 +
+ +
+ 签到方式: +
+
+ 二维码签到 +
+ +
+ 开始结束时间: +
+
+ 2010-03-10 10:00-11:00 +
+
+ +
+ { + isAdmin===true? + ( + this.props.defaultActiveKey==="0"? +
+
截止
+
删除
+
+ : +
+
截止
+
删除
+
+ ) + : +
+ + +
+ + } +
diff --git a/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js b/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js index 8d4215178..426f30dcf 100644 --- a/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js +++ b/public/react/src/modules/courses/signin/component/teachercomponent/Teaccomponent.js @@ -27,7 +27,7 @@ class Teaccomponent extends Component{ return( - + ) diff --git a/public/react/src/modules/courses/signin/css/signincdi.css b/public/react/src/modules/courses/signin/css/signincdi.css index e85d8a007..1457fc693 100644 --- a/public/react/src/modules/courses/signin/css/signincdi.css +++ b/public/react/src/modules/courses/signin/css/signincdi.css @@ -88,10 +88,15 @@ .ws70s{ width: 70%; } - +.ws80s{ + width: 80%; +} .hs30s{ height: 30%; } +.ws20s{ + width: 20%; +} .yslmaxheigthk{ } @@ -165,12 +170,26 @@ font-weight:bold; color:rgba(51,51,51,1); } +.ymaxnamewidthdivp{ + max-width:100%; + width: 100%; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} .teachedivps{ font-size:14px; font-family:Microsoft YaHei; font-weight:400; color:rgba(144,147,153,1); } +.teachedivpsy{ + font-size:14px; + font-family:Microsoft YaHei; + font-weight:400; + color:#333333; +} .progressivps{ width:200px; margin-left: 10px; @@ -183,3 +202,40 @@ color:rgba(64,158,255,1); margin-left: 15px; } +.w60ys{ + width: 60px; + } + +.ymaxnamewidth60{ + max-width: 60px; + width: 60px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} +.ymaxnamewidth80{ + max-width: 80px; + width: 80px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} +.w80ys{ + width: 80px; +} + +.jiezhis{ + font-size:14px; + font-family:Microsoft YaHei; + font-weight:400; + color:rgba(64,158,255,1); +} +.shanchu{ + font-size:14px; + font-family:Microsoft YaHei; + font-weight:400; + color:rgba(245,108,108,1); + margin-right: 30px; +} diff --git a/public/react/src/modules/courses/signin/teacher/Teachers_signin.js b/public/react/src/modules/courses/signin/teacher/Teachers_signin.js index 0486b1383..527fda152 100644 --- a/public/react/src/modules/courses/signin/teacher/Teachers_signin.js +++ b/public/react/src/modules/courses/signin/teacher/Teachers_signin.js @@ -1,6 +1,6 @@ import React,{ Component } from "react"; import '../css/signincdi.css'; -import { Tabs } from 'antd'; +import { Tabs,Pagination} from 'antd'; import Teaccomponent from '../component/teachercomponent/Teaccomponent'; import Histeacomponent from '../component/teachercomponent/Histeacomponent'; import Createsignmodel from '../model/Createsignmodel'; @@ -11,7 +11,11 @@ class Students_signin extends Component{ super(props); this.state={ - visible:false + visible:false, + page:1, + per_page:20, + count:50, + defaultActiveKey:"1", } } @@ -26,6 +30,9 @@ class Students_signin extends Component{ callback=(key)=> { console.log(key); + this.setState({ + defaultActiveKey: key, + }) } Createsign=()=>{ @@ -33,9 +40,16 @@ class Students_signin extends Component{ visible:true }) } + paginationonChange = (pageNumber) => { + this.setState({ + page: pageNumber, + }) + } render(){ + + let {page,per_page,count,defaultActiveKey} =this.state return(

共3个签到正在进行

- + + +
+ +

共3个签到正在进行

- + +
+ +
Content of Tab Pane 3