From d62406284c902bd9c26993adaa708fcf73f501ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 16 Mar 2020 16:28:34 +0800 Subject: [PATCH 01/18] =?UTF-8?q?=E8=AF=BE=E5=A0=82=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=AD=BE=E5=88=B0=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/new/CoursesNew.js | 1 + public/react/src/modules/courses/new/Goldsubject.js | 1 + 2 files changed, 2 insertions(+) diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index 27fcb5c1e..836ae3bb5 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -949,6 +949,7 @@ class CoursesNew extends Component { 讨论 分班 统计 + 签到 )} diff --git a/public/react/src/modules/courses/new/Goldsubject.js b/public/react/src/modules/courses/new/Goldsubject.js index 6d637552d..fd82d0f12 100644 --- a/public/react/src/modules/courses/new/Goldsubject.js +++ b/public/react/src/modules/courses/new/Goldsubject.js @@ -1003,6 +1003,7 @@ class Goldsubject extends Component { 讨论 分班 统计 + 签到 )} From d89cb40a704b5fcb3d231794ceb898891efbe065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 16 Mar 2020 17:02:48 +0800 Subject: [PATCH 02/18] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/new/CoursesNew.js | 2 +- .../react/src/modules/courses/new/Goldsubject.js | 2 +- .../courses/signin/component/Teacherentry.js | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index 836ae3bb5..12f4341e0 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -933,7 +933,7 @@ class CoursesNew extends Component { > {getFieldDecorator("checkboxgroup", { initialValue: [ - "shixun_homework", "common_homework", "group_homework", "exercise", "attachment", "course_group","video" + "shixun_homework", "common_homework", "group_homework", "exercise", "attachment", "course_group","video","attendance" ], })( diff --git a/public/react/src/modules/courses/new/Goldsubject.js b/public/react/src/modules/courses/new/Goldsubject.js index fd82d0f12..3cd707284 100644 --- a/public/react/src/modules/courses/new/Goldsubject.js +++ b/public/react/src/modules/courses/new/Goldsubject.js @@ -989,7 +989,7 @@ class Goldsubject extends Component { {getFieldDecorator("checkboxgroup", { initialValue: [ - "announcement","online_learning","shixun_homework","common_homework", + "announcement","online_learning","shixun_homework","common_homework","attendance" ], })( diff --git a/public/react/src/modules/courses/signin/component/Teacherentry.js b/public/react/src/modules/courses/signin/component/Teacherentry.js index f3aa4c297..b8887c391 100644 --- a/public/react/src/modules/courses/signin/component/Teacherentry.js +++ b/public/react/src/modules/courses/signin/component/Teacherentry.js @@ -35,8 +35,8 @@ class Teacherentry extends Component { return (
-
-

this.props.qiandaoxiangq(true,item.id):""}> +

{e.stopPropagation();this.props.qiandaoxiangq(true,item.id)}:""}> +

{ item.name } @@ -95,18 +95,18 @@ class Teacherentry extends Component { isAdmin === true ? this.props.defaultActiveKey === "1" ?

-
this.props.thisEnd(item.id)}>截止
-
this.props.thisdelete(item.id)}>删除
+
{e.stopPropagation();this.props.thisEnd(item.id)}}>截止
+
{e.stopPropagation();this.props.thisdelete(item.id)}}>删除
: item.edit_auth === true ?
-
this.props.Signinnamestypes(item.id,true,item.name)}>编辑
-
this.props.thisdelete(item.id)}>删除
+
{e.stopPropagation();this.props.Signinnamestypes(item.id,true,item.name)}}>编辑
+
{e.stopPropagation();this.props.thisdelete(item.id)}}>删除
:
-
this.props.thisdelete(item.id)}>删除
+
{e.stopPropagation();this.props.thisdelete(item.id)}}>删除
: ( @@ -116,7 +116,7 @@ class Teacherentry extends Component { item.attendance_status? ( item.attendance_status==="ABSENCE"? -
this.props.Signin(item.mode,item.id,item.attendance_code)}> +
{e.stopPropagation();this.props.Signin(item.mode,item.id,item.attendance_code)}}> 签到
: From fb7393eb726e15bfe04db4f96addb676b425c118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 16 Mar 2020 17:49:34 +0800 Subject: [PATCH 03/18] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/signin/component/Teacherentry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/signin/component/Teacherentry.js b/public/react/src/modules/courses/signin/component/Teacherentry.js index b8887c391..593bd4a50 100644 --- a/public/react/src/modules/courses/signin/component/Teacherentry.js +++ b/public/react/src/modules/courses/signin/component/Teacherentry.js @@ -34,7 +34,7 @@ class Teacherentry extends Component { } return ( -
+
{e.stopPropagation();this.props.qiandaoxiangq(true,item.id)}:""}>

{ From 97af74222e42d310a8030a61939990ad0eae436d Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 16 Mar 2020 17:50:54 +0800 Subject: [PATCH 04/18] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/jobs/student_join_attendance_record_job.rb | 2 +- app/models/course_member.rb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/jobs/student_join_attendance_record_job.rb b/app/jobs/student_join_attendance_record_job.rb index ecc0b46a9..8840ae142 100644 --- a/app/jobs/student_join_attendance_record_job.rb +++ b/app/jobs/student_join_attendance_record_job.rb @@ -4,7 +4,7 @@ class StudentJoinAttendanceRecordJob < ApplicationJob def perform(member_id) member = CourseMember.find_by(id: member_id) course = member&.course - return if member.blank? || course.blank? + return if member.blank? || member.role != "STUDENT" || course.blank? current_date = Date.current current_end_time = Time.current.strftime("%H:%M:%S") diff --git a/app/models/course_member.rb b/app/models/course_member.rb index 21221e7e9..0a0433f6f 100644 --- a/app/models/course_member.rb +++ b/app/models/course_member.rb @@ -165,7 +165,9 @@ class CourseMember < ApplicationRecord private def create_attendance_record - StudentJoinAttendanceRecordJob.perform_later(id) + if role == "STUDENT" + StudentJoinAttendanceRecordJob.perform_later(id) + end end end From e0726db96a4c163082cbd32da714f33f2fdedcec Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 16 Mar 2020 19:26:18 +0800 Subject: [PATCH 05/18] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/Video/video-play/index.jsx | 3 +++ .../tpm/shixuns/shixun-search-bar/A.jsx | 2 +- .../tpm/shixuns/shixun-search-bar/index.jsx | 24 ++++++++++++------- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/courses/Video/video-play/index.jsx b/public/react/src/modules/courses/Video/video-play/index.jsx index 8c3a2eb20..e33439dcf 100644 --- a/public/react/src/modules/courses/Video/video-play/index.jsx +++ b/public/react/src/modules/courses/Video/video-play/index.jsx @@ -177,6 +177,9 @@ export default ({ src, videoId, logWatchHistory, courseId = null }) => { el.current.removeEventListener('seeking', onSeeking) el.current.removeEventListener('seeked', onSeeked) el.current.removeEventListener('timeupdate', onTimeupdate) + if(el.current.playing) { + log() + } } }, [el, src]) diff --git a/public/react/src/modules/tpm/shixuns/shixun-search-bar/A.jsx b/public/react/src/modules/tpm/shixuns/shixun-search-bar/A.jsx index 7e933462e..4757cfecf 100644 --- a/public/react/src/modules/tpm/shixuns/shixun-search-bar/A.jsx +++ b/public/react/src/modules/tpm/shixuns/shixun-search-bar/A.jsx @@ -6,6 +6,6 @@ export default ({ callback(id) } return ( - {text} + {text} ) } \ No newline at end of file diff --git a/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx b/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx index c58ae81aa..0430149a7 100644 --- a/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx +++ b/public/react/src/modules/tpm/shixuns/shixun-search-bar/index.jsx @@ -12,13 +12,13 @@ const DiffObject = [ { id: 3, text: '中高级' }, { id: 4, text: '高级' } ] -export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist }) => { +export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist,parsedid,newpalce }) => { const [data, setData] = useState({ diff: 0, - searchValue: 'a', + searchValue: newpalce || 'a', navs: [], searchKey: '', - childValue: '' + childValue:parsedid }) const { diff, searchValue, navs, childValue, searchKey } = data function diffSearch(diff) { @@ -28,6 +28,15 @@ export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist }) => { }) StatusEnquiry([{ 'type': 2 }, { 'value': diff }]) } + useEffect(() => { + setData({ + ...data, + searchValue: newpalce || 'a', + childValue: parsedid + }) + },[ + newpalce,navs,parsedid + ]) function onSearchAll() { if (searchValue !== 'a') { setData({ ...data, searchValue: 'a', childValue: '' }) @@ -61,12 +70,12 @@ export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist }) => { function overlayMenu(item, id) { return

{ - item.map((list, k) => -
+ item.map((list, k) => +
{list.name}
{ - list.tags.map((tag, e) => {tag.name} + list.tags.map((tag, e) => {tag.name} ) }
@@ -84,7 +93,6 @@ export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist }) => { } init() }, []) - // item.id < 4 ? "bottomRight" : item.id >= 8 ? "bottomLeft" : "bottomCenter" return (
@@ -111,7 +119,7 @@ export default ({ StatusEnquiry, allUpdatashixunlist, Updatasearchlist }) => {
筛选:
- {DiffObject.map(item => )} + {DiffObject.map(item => )}
From 499c26050a69691eb94a0c913784a0ff579cd6e8 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, 16 Mar 2020 19:39:06 +0800 Subject: [PATCH 06/18] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/courses/signin/css/signincdi.css | 9 + .../component/Videostatisticscomtwo.js | 195 +++++++++++++++++- 2 files changed, 198 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/courses/signin/css/signincdi.css b/public/react/src/modules/courses/signin/css/signincdi.css index 867dff40d..b712aa94d 100644 --- a/public/react/src/modules/courses/signin/css/signincdi.css +++ b/public/react/src/modules/courses/signin/css/signincdi.css @@ -394,6 +394,15 @@ white-space:nowrap; cursor: default; } +.maxnamewidth200s{ + text-align: center; + width: 200px; + max-width:200px; + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; + cursor: default; +} .maxnamewidth100s{ width: 100px; max-width: 100px; diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js index d6b9a4fcb..4432f36c5 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js @@ -1,7 +1,7 @@ import React, {Component} from "react"; import '../../signin/css/signincdi.css'; -import {Pagination,Table} from 'antd'; -import {getImageUrl} from 'educoder'; +import {Pagination,Table, Menu, Dropdown} from 'antd'; +import {getImageUrl,sortDirections} from 'educoder'; import axios from 'axios'; import LoadingSpin from "../../../../common/LoadingSpin"; import NoneDatas from "../../signin/component/NoneDatas"; @@ -60,6 +60,8 @@ class Videostatisticscom extends Component { align: "center", className: 'font-14 maxnamewidth150s', width: '150px', + sorter: true, + sortDirections: sortDirections, render: (text, record) => ( {record.total_duration} ), @@ -71,6 +73,8 @@ class Videostatisticscom extends Component { align: "center", className: 'font-14 maxnamewidth100s', width: '100px', + sorter: true, + sortDirections: sortDirections, render: (text, record) => ( {record.feq} ), @@ -101,10 +105,15 @@ class Videostatisticscom extends Component { loading:false, order:undefined, course_groups:[], + fbbool:false, + groupsid:null, } } componentDidMount() { + this.setState({ + order:undefined + }) if(this.props.isAdmin()){ //老师 const CourseId=this.props.match.params.coursesId; @@ -218,11 +227,170 @@ class Videostatisticscom extends Component { page: pageNumber, }) } + fenbanone=()=>{ + if(this.state.fbbool===false){ + this.setState({ + fbbool:true + }) + }else{ + this.setState({ + fbbool:false + }) + } + } + setcourse_groups=(id)=>{ + this.setState({ + groupsid:id + }) +//老师 + const CourseId=this.props.match.params.coursesId; + + var data={}; + if(id){ + data={ + id:CourseId, + page:this.state.page, + group_id:id + } + + }else { + data={ + id:CourseId, + page:this.state.page + } + } + this.getdatas(data); + } + + //实训作业tbale 列表塞选数据 + table1handleChange = (pagination, filters, sorter) => { + if (JSON.stringify(sorter) === "{}") { + //没有选择 + } else { + try { + //学生学号排序 + if (sorter.columnKey === "total_duration"||sorter.columnKey === "feq") { + let mysorder=""; + if (sorter.order === "ascend") { + if(sorter.columnKey === "total_duration"){ + mysorder="total_duration-asc"; + }else{ + mysorder="freq-asc"; + + } + //升序 + let data={} + if(this.props.isAdmin()){ + //老师 + const CourseId=this.props.match.params.coursesId; + if(groupsid){ + data={ + id:CourseId, + page:this.state.page, + order:mysorder, + } + }else{ + data={ + id:CourseId, + page:this.state.page, + group_id:this.state.groupsid, + order:mysorder, + } + } + }else{ + //学生 + data={ + page:this.state.page, + order:mysorder, + } + } + + this.getdatas(data); + this.setState({ + order: mysorder, + }) + } else if (sorter.order === "descend") { + if(sorter.columnKey === "total_duration"){ + mysorder="total_duration-desc"; + + }else{ + mysorder="freq-desc"; + + } + //降序 + let data={} + if(this.props.isAdmin()){ + //老师 + const CourseId=this.props.match.params.coursesId; + if(groupsid){ + data={ + id:CourseId, + page:this.state.page, + order:mysorder, + } + }else{ + data={ + id:CourseId, + page:this.state.page, + group_id:this.state.groupsid, + order:mysorder, + } + } + }else{ + //学生 + data={ + page:this.state.page, + order:mysorder, + } + } + + this.getdatas(data); + this.setState({ + order:mysorder, + }) + + + } + } + } catch (e) { + + } + + } + + } + + render() { - let {loading,data,page,limit,members_count,columnsstu}=this.state; + let {loading,data,page,limit,members_count,columnsstu,fbbool,course_groups}=this.state; const isAdmin =this.props.isAdmin(); + const menu = ( + + + this.setcourse_groups(null)}> +

全部

+
+ + { + course_groups&&course_groups.length>0? + ( + course_groups.map((item,key) => { + return ( + + this.setcourse_groups(item.id)} key={key}> +

{item.name}

+
+
+ ) + }) + ) + : + "" + } +
+ ); return (
@@ -236,8 +404,18 @@ class Videostatisticscom extends Component {
this.props.tisticsbools(false,null)}> 视频统计总览
-
- 分班 +
this.fenbanone()}> + trigger.parentNode} overlay={menu} placement="bottomCenter" > + + 分班 + { + fbbool===true? + + : + + } + +
@@ -269,7 +447,12 @@ class Videostatisticscom extends Component {
: - +
} From 1be3767471e635b090f0513e35c1bed095a1d4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 16 Mar 2020 19:40:47 +0800 Subject: [PATCH 07/18] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/signin/component/Detailss.js | 2 +- .../courses/signin/component/Teacherentry.js | 2 +- .../courses/signin/css/Signinstatistics.css | 22 ++++++++++++++++++- .../modules/courses/signin/css/signincdi.css | 6 +++++ .../courses/signin/student/Signedinlist.js | 12 +++++++++- .../courses/signin/student/Signindetails.js | 9 +++----- 6 files changed, 43 insertions(+), 10 deletions(-) diff --git a/public/react/src/modules/courses/signin/component/Detailss.js b/public/react/src/modules/courses/signin/component/Detailss.js index d205ffdcb..c1f43e0cf 100644 --- a/public/react/src/modules/courses/signin/component/Detailss.js +++ b/public/react/src/modules/courses/signin/component/Detailss.js @@ -77,7 +77,7 @@ class Detailss extends Component {
- 已签到{item && item.normal_count ? item.normal_count : 0} / + 已签到 {item && item.normal_count ? item.normal_count : 0} / 应签到 {item && item.all_count ? item.all_count : 0}
diff --git a/public/react/src/modules/courses/signin/component/Teacherentry.js b/public/react/src/modules/courses/signin/component/Teacherentry.js index 593bd4a50..ff08fe126 100644 --- a/public/react/src/modules/courses/signin/component/Teacherentry.js +++ b/public/react/src/modules/courses/signin/component/Teacherentry.js @@ -51,7 +51,7 @@ class Teacherentry extends Component {
- 已签到{item.normal_count ? item.normal_count : 0} / 应签到 {item.all_count ? item.all_count : 0} + 已签到 {item.normal_count ? item.normal_count : 0} / 应签到 {item.all_count ? item.all_count : 0}
diff --git a/public/react/src/modules/courses/signin/css/Signinstatistics.css b/public/react/src/modules/courses/signin/css/Signinstatistics.css index ddcda4cd1..c7ff88c9f 100644 --- a/public/react/src/modules/courses/signin/css/Signinstatistics.css +++ b/public/react/src/modules/courses/signin/css/Signinstatistics.css @@ -210,4 +210,24 @@ height: auto !important; padding: 0px !important; white-space: nowrap !important; -} \ No newline at end of file +} + +.color26C7C9 .ant-select-selection-selected-value{ + margin: 0 30% !important; +} + +.colorEAAE4E .ant-select-selection-selected-value{ + margin: 0 40% !important; +} + +.color909399 .ant-select-selection-selected-value{ + margin: 0 37% !important; +} + +.colorFF835C .ant-select-selection-selected-value{ + margin: 0 37% !important; +} + +/*.allSignedinlistbox .ant-select-selection-selected-value{*/ +/* margin: 0 30% !important;*/ +/*}*/ \ No newline at end of file diff --git a/public/react/src/modules/courses/signin/css/signincdi.css b/public/react/src/modules/courses/signin/css/signincdi.css index 09379ff4c..f6f1db061 100644 --- a/public/react/src/modules/courses/signin/css/signincdi.css +++ b/public/react/src/modules/courses/signin/css/signincdi.css @@ -352,3 +352,9 @@ color:rgba(153,153,153,1); } + +.colorbluesigin{ + font-size:16px; + font-weight:bold; + color:rgba(51,51,51,1); +} \ No newline at end of file diff --git a/public/react/src/modules/courses/signin/student/Signedinlist.js b/public/react/src/modules/courses/signin/student/Signedinlist.js index 5885e8a67..ea5ffb998 100644 --- a/public/react/src/modules/courses/signin/student/Signedinlist.js +++ b/public/react/src/modules/courses/signin/student/Signedinlist.js @@ -260,9 +260,10 @@ class Signedinlist extends Component { className: "textcenter", render: (text, record) => ( +
+
} From c429f743825c1a04d92beebd12ad29eca8eda030 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, 16 Mar 2020 20:02:14 +0800 Subject: [PATCH 11/18] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/videostatistics/component/Videostatisticslist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js index 6fa666b3c..a879e39da 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js @@ -1,7 +1,7 @@ import React, {Component} from "react"; import '../../signin/css/signincdi.css'; -import {Pagination,Table,sortDirections} from 'antd'; -import {getImageUrl} from 'educoder'; +import {Pagination,Table} from 'antd'; +import {getImageUrl,sortDirections} from 'educoder'; import axios from 'axios'; import LoadingSpin from "../../../../common/LoadingSpin"; import NoneDatas from "../../signin/component/NoneDatas"; From 5d69e91136727151577b2bcc2ee65437f06d65c2 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, 16 Mar 2020 20:09:25 +0800 Subject: [PATCH 12/18] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../videostatistics/component/Videostatisticscomtwo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js index 1918d6adb..ab8d6c957 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js @@ -8,7 +8,7 @@ import NoneDatas from "../../signin/component/NoneDatas"; //条目 -class Videostatisticscom extends Component { +class Videostatisticscomtwo extends Component { //条目组件 constructor(props) { super(props); @@ -501,4 +501,4 @@ class Videostatisticscom extends Component { } } -export default Videostatisticscom; +export default Videostatisticscomtwo; From d2243fcac36894f219b87c33ed6bc223d4d6e443 Mon Sep 17 00:00:00 2001 From: anke1460 Date: Mon, 16 Mar 2020 20:18:16 +0800 Subject: [PATCH 13/18] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index fa4f949c9..876fb7256 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1514,7 +1514,7 @@ class CoursesController < ApplicationController # 学生角度观看课堂视频的记录 def own_watch_histories @current_user = current_user - + @videos = CourseVideo.joins(" JOIN videos ON course_videos.course_id = #{@course.id} AND videos.id = course_videos.video_id JOIN watch_course_videos ON course_videos.id = watch_course_videos.course_video_id AND watch_course_videos.user_id = #{current_user.id} @@ -1548,7 +1548,8 @@ class CoursesController < ApplicationController render json: { total_duration: @total_duration, freq: @frequencies, - people_num: @people_num + people_num: @people_num, + begin_at: '2020-03-13 24:00' } end From 70f8bfd4fce3d13881f8554abb790d1a21119f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 16 Mar 2020 20:20:15 +0800 Subject: [PATCH 14/18] =?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 +- .../signin/Signinstatistics/Signinstatistics.js | 11 ++++++----- .../modules/courses/signin/student/Signindetails.js | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 600f7bb2e..043c0f78d 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -132,7 +132,7 @@ export function initAxiosInterceptors(props) { // proxy = "https://testeduplus2.educoder.net" //proxy="http://47.96.87.25:48080" proxy="https://pre-newweb.educoder.net" - //proxy="https://test-newweb.educoder.net" + proxy="https://test-newweb.educoder.net" // proxy="https://test-jupyterweb.educoder.net" // proxy="https://test-newweb.educoder.net" // proxy="https://test-jupyterweb.educoder.net" diff --git a/public/react/src/modules/courses/signin/Signinstatistics/Signinstatistics.js b/public/react/src/modules/courses/signin/Signinstatistics/Signinstatistics.js index 0be54a6b7..e5aac4994 100644 --- a/public/react/src/modules/courses/signin/Signinstatistics/Signinstatistics.js +++ b/public/react/src/modules/courses/signin/Signinstatistics/Signinstatistics.js @@ -109,11 +109,12 @@ class Signinstatistics extends Component { const cols = { month: { - type: 'linear', - nice:[1,10], - min:1, - minLimit:1, - minTickInterval:2 + type: 'pow', + // nice: true, + exponent:1, + // minLimit:1, + // tickInterval:1, + // minTickInterval:2 }, temperature:{ type: 'linear', diff --git a/public/react/src/modules/courses/signin/student/Signindetails.js b/public/react/src/modules/courses/signin/student/Signindetails.js index d1f794a61..a5df6c2b2 100644 --- a/public/react/src/modules/courses/signin/student/Signindetails.js +++ b/public/react/src/modules/courses/signin/student/Signindetails.js @@ -44,9 +44,9 @@ class Signindetails extends Component{ position: "relative", }}>
-

this.props.qiandaoxiangq(false)}> - -

正在签到

+

+ this.props.qiandaoxiangq(false)}> +

this.props.qiandaoxiangq(false)}>正在签到

From 661daf612dbd09d0d5f90464c5c8352c6b580fc1 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, 16 Mar 2020 20:21:49 +0800 Subject: [PATCH 15/18] =?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/videostatistics/component/Videostatisticscom.js | 2 +- .../videostatistics/component/Videostatisticscomtwo.js | 2 +- .../courses/videostatistics/component/Videostatisticslist.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticscom.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticscom.js index 6dbe44ae3..457c6d1f3 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticscom.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticscom.js @@ -36,7 +36,7 @@ class Videostatisticscom extends Component {
视频统计总览
-
播放数据从2020-03-13 24:00开始统计
+
播放数据从{this.props.watch_staticsdata&&this.props.watch_staticsdata.begin_at?this.props.watch_staticsdata.begin_at:0}开始统计