From 25ded9f09d0959b65b841c370024d0c3baae932e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 9 Aug 2019 16:14:33 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/shixunHomework/ShixunHomeworkPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index c827d73cd..ccf6c4547 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -132,7 +132,7 @@ class ShixunHomeworkPage extends Component {
From b5b8103479e73186fc4c1c89b912338a3fb982bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 9 Aug 2019 16:14:49 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/shixunHomework/ShixunHomeworkPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index ccf6c4547..101163f29 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -132,7 +132,7 @@ class ShixunHomeworkPage extends Component {
From a0b5fd69fb019c0dcc19e6729a85ff46c5b6fcdd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Sat, 10 Aug 2019 09:31:43 +0800
Subject: [PATCH 03/14] =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E7=81=AB=E7=8B=90?=
=?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=8A=A0=E8=BD=BD=E5=88=B7=E6=96=B0=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/coursesPublic/PathModal.js | 18 ++++++++------
.../courses/coursesPublic/ShixunModal.js | 24 +++++++++++--------
.../react/src/modules/courses/css/Courses.css | 4 ++--
3 files changed, 27 insertions(+), 19 deletions(-)
diff --git a/public/react/src/modules/courses/coursesPublic/PathModal.js b/public/react/src/modules/courses/coursesPublic/PathModal.js
index 3fbbd4af4..07ce55024 100644
--- a/public/react/src/modules/courses/coursesPublic/PathModal.js
+++ b/public/react/src/modules/courses/coursesPublic/PathModal.js
@@ -122,16 +122,20 @@ class PathModal extends Component{
contentViewScrolledit=(e)=>{
//滑动到底判断
+ const {shixunmodallist} = this.state;
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
- let {Searchvalue,type,page,shixunpathlist}=this.state;
- let newpage=page+1
- this.funshixunpathlist(Searchvalue,type,true,newpage)
- this.setState({
- page:newpage
- })
-
+ if(shixunmodallist.subject_list.length===0){
+ return;
+ }else{
+ let {Searchvalue,type,page,shixunpathlist}=this.state;
+ let newpage=page+1
+ this.funshixunpathlist(Searchvalue,type,true,newpage)
+ this.setState({
+ page:newpage
+ })
+ }
}
}
diff --git a/public/react/src/modules/courses/coursesPublic/ShixunModal.js b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
index 1ae63da90..2a53cf104 100644
--- a/public/react/src/modules/courses/coursesPublic/ShixunModal.js
+++ b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
@@ -100,17 +100,21 @@ class ShixunModal extends Component{
}
contentViewScrolledit=(e)=>{
-
+ const {shixunmodallist}=this.state;
//滑动到底判断
- if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
- let {Searchvalue,type,page}=this.state;
- let newpage=page+1
- this.setupdatalist(Searchvalue,type,true,newpage)
- this.setState({
- page:newpage
- })
- }
-
+ if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight) {
+
+ if (shixunmodallist.shixun_list.length === 0) {
+ return;
+ } else {
+ let {Searchvalue, type, page} = this.state;
+ let newpage = page + 1
+ this.setupdatalist(Searchvalue, type, true, newpage)
+ this.setState({
+ page: newpage
+ })
+ }
+ }
}
//搜索
diff --git a/public/react/src/modules/courses/css/Courses.css b/public/react/src/modules/courses/css/Courses.css
index 47db2f595..b6388b1e7 100644
--- a/public/react/src/modules/courses/css/Courses.css
+++ b/public/react/src/modules/courses/css/Courses.css
@@ -477,9 +477,9 @@ a.white-btn.use_scope-btn:hover{
}
.pathInfobox li{
margin-right: 20px;
- height: 15px;
+ height: 20px;
/*overflow: hidden;*/
- line-height: 15px;
+ line-height: 20px;
}
.width70f{
width: 70px;
From 5a180802c6f16323fae28f2552223b079a334f9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Sat, 10 Aug 2019 09:52:52 +0800
Subject: [PATCH 04/14] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E6=9F=A5=E9=87=8D=E8=B7=B3=E8=BD=AC=E5=92=8C=E4=BD=93=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/ShixunStudentWork.js | 4 +++-
.../shixunHomework/Shixunworkdetails/ShixunWorkModal.js | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
index 97bc651ea..511c40d61 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
@@ -783,7 +783,9 @@ class ShixunStudentWork extends Component {
我的进展
diff --git a/public/react/src/modules/paths/PathDetail/addCollaborators.js b/public/react/src/modules/paths/PathDetail/addCollaborators.js
index c828f1589..6100ab2f6 100644
--- a/public/react/src/modules/paths/PathDetail/addCollaborators.js
+++ b/public/react/src/modules/paths/PathDetail/addCollaborators.js
@@ -1,216 +1,213 @@
-import React, { Component } from 'react';
-import { Modal,Checkbox,Input } from "antd";
-import axios from 'axios';
-
-const Search = Input.Search;
-const CheckboxGroup = Checkbox.Group;
-class addCollaborators extends Component{
- constructor(props){
- super(props);
- this.state = {
- addPartner:false,
- page:1,
- partnerList:undefined,
- search:'',
- partnerListid:[],
- checkAll: false,
- optionss:[]
- }
- }
- addBox=()=>{
-
- this.setState({
- addPartner:true,
- search:"",
- page:1,
- partnerList:undefined,
- optionss:[]
- })
- this.searchList("")
-
- }
- hideAddBox=()=>{
- this.setState({
- addPartner:false,
- optionss:[],
- partnerListid:[]
- })
- }
- // 搜索框输入
- changeSearchValue=(e)=>{
- this.setState({
- search: e.target.value
- })
- }
- // 回车搜索--搜索成功后page为1
- searchList=()=>{
- let id=this.props.match.params.pathId;
- let {search,page}=this.state;
- let url='/paths/'+id+'/search_members.json?search='+search+"&page="+page;
- axios.post(url).then((result)=>{
- if(result.status==200){
- let list=result.data.users;
- let optionss=[]
- for(var i=0; i
-
+
-
-
-
+
+
+