diff --git a/public/react/src/modules/courses/members/teacherList.js b/public/react/src/modules/courses/members/teacherList.js
index 9b1a2ad6e..509bf56c1 100644
--- a/public/react/src/modules/courses/members/teacherList.js
+++ b/public/react/src/modules/courses/members/teacherList.js
@@ -49,7 +49,7 @@ function buildColumns(that) {
width: 160,
key: 'name',
render: (name, record) => {
- return
}
}, {
title: '角色',
From ad989177c7795488d10cc518d111a7a416312cc7 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 21 Jun 2019 16:41:28 +0800
Subject: [PATCH 14/16] isAdmin
---
public/react/src/modules/courses/busyWork/CommonWorkItem.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkItem.js b/public/react/src/modules/courses/busyWork/CommonWorkItem.js
index 295f55fe1..ad755338c 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkItem.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkItem.js
@@ -185,7 +185,7 @@ class CommonWorkItem extends Component{
}
- {this.props.isAdmin &&
+ {isAdmin &&
{ this.props.toEditPage(this.props.match.params, item.homework_id) }}>编辑
{ this.props.toWorkSettingPage(this.props.match.params, item.homework_id) }}>设置
}
From 51467cf3ef8ddb5bfc0ec3bb333affd8123bb8ef Mon Sep 17 00:00:00 2001
From: ysl <904079904@qq.com>
Date: Fri, 21 Jun 2019 16:41:42 +0800
Subject: [PATCH 15/16] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/login/Trialapplication.js | 45 +++++++++----------
public/react/src/modules/tpm/NewHeader.js | 2 +-
2 files changed, 21 insertions(+), 26 deletions(-)
diff --git a/public/react/src/modules/login/Trialapplication.js b/public/react/src/modules/login/Trialapplication.js
index b86b68930..d98228856 100644
--- a/public/react/src/modules/login/Trialapplication.js
+++ b/public/react/src/modules/login/Trialapplication.js
@@ -44,18 +44,14 @@ class Trialapplication extends Component {
componentWillReceiveProps(nextProps) {
- // this.setState({
- // isRenders:nextProps.isRenders
- // })
- // console.log("componentWillReceiveProps");
- // console.log(nextProps);
+
}
//初始化数据
componentDidMount() {
- // console.log("53");
+ console.log("53");
- // console.log(this.props.isRenders);
+ console.log(this.props.isRenders);
if (this.props.isRenders != undefined) {
this.setState({
@@ -69,22 +65,6 @@ class Trialapplication extends Component {
})
}
- // 是否不显示手机栏
- let url = `/users/get_user_info.json`
- axios.get(url,{params:{
- school:1
- }
- },
- ).then((response) => {
- if(response !==undefined){
- this.setState({
- user_phone_binded:response.data.user_phone_binded
- })
- }
- }).catch((error) => {
- console.log(error)
- })
-
axios.interceptors.response.use((response) => {
if (response != undefined)
if (response && response.data.status === 407) {
@@ -94,10 +74,22 @@ class Trialapplication extends Component {
}
return response;
}, (error) => {
- // // // TODO 这里如果样式变了会出现css不加载的情况
+ //TODO 这里如果样式变了会出现css不加载的情况
+
});
- // console.log("89");
+ console.log("89");
+ try {
+ if (this.state.props.user !== undefined) {
+ console.log(this.state.props.user && this.state.props.user.user_phone_binded);
+ this.setState({
+ user_phone_binded: this.state.props.user.user_phone_binded,
+ })
+ }
+
+ } catch (e) {
+ console.log(e);
+ }
}
@@ -217,6 +209,7 @@ class Trialapplication extends Component {
this.setState({
isRenders: false
})
+ this.Cancel();
window.location.href = "/";
} else {
this.setState({
@@ -278,6 +271,8 @@ class Trialapplication extends Component {
thiss.setState({
isRenders: false
})
+ thiss.Cancel();
+
} else {
thiss.setState({
isRenders: false
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index 956e9afc4..3d3e83d36 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -583,7 +583,7 @@ submittojoinclass=(value)=>{
/>
{/* :""*/}
{/*}*/}
-
+
{/*{*/}
{/* isRenders&&isRenders===true?*/}
From fbd6f3fe5df798dab16566487f1cc46eca0e2794 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 21 Jun 2019 16:58:08 +0800
Subject: [PATCH 16/16] invalid
---
.../modules/courses/busyWork/CommonWorkSetting.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
index ab00f3c00..1574d692d 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
@@ -1018,7 +1018,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择发布时间"
id={"startime"}
width={"210px"}
- value={publish_time===null||publish_time===""?"":moment(publish_time, dateFormat)}
+ value={!publish_time?"":moment(publish_time, dateFormat)}
onChange={this.onChangeTimepublish}
// disabled={this.props.isSuperAdmin()?false:publish_time_type===true?true:false}
disabled={moment(this.state.init_publish_time) < moment() || noAuth}
@@ -1048,7 +1048,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择截止时间"
id={"endTime"}
width={"210px"}
- value={end_time===null||end_time===""?"":moment(end_time, dateFormat)}
+ value={!end_time?"":moment(end_time, dateFormat)}
onChange={this.onChangeTimeend}
disabled={this.props.isSuperAdmin()?false:end_time_type===true?true:false}
disabled={moment(this.state.init_end_time) < moment() || noAuth}
@@ -1117,7 +1117,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择结束时间"
id={"enTime"}
width={"210px"}
- value={late_time===null||late_time===""? undefined :moment(late_time, dateFormat)}
+ value={!late_time ? undefined :moment(late_time, dateFormat)}
onChange={this.onChangeTimelatetime}
disabledTime={disabledDateTime}
disabled={!allow_late || noAuth || moment(init_late_time) < moment()}
@@ -1165,7 +1165,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择匿名开启时间"
id={"startime"}
width={"210px"}
- value={evaluation_start===null||evaluation_start===""?"":moment(evaluation_start, dateFormat)}
+ value={!evaluation_start ?"":moment(evaluation_start, dateFormat)}
onChange={this.onChangeEvaluationStart}
disabled={ (anonymous_comment && !noAuth ? false : true) || moment(init_evaluation_start) < moment() }
// disabledDate={ (evaluation_start) =>
@@ -1194,7 +1194,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择匿名结束时间"
id={"endtime"}
width={"210px"}
- value={evaluation_end===null||evaluation_end===""?"":moment(evaluation_end, dateFormat)}
+ value={!evaluation_end ?"":moment(evaluation_end, dateFormat)}
onChange={this.onChangeEvaluationEnd}
disabledTime={disabledDateTime}
disabled={(anonymous_comment && !noAuth ? false : true) || moment(init_evaluation_end) < moment()}
@@ -1289,7 +1289,7 @@ class CommonWorkSetting extends Component{
placeholder="请选择申诉结束时间"
id={"endtime"}
width={"210px"}
- value={appeal_time===null||appeal_time===""?"":moment(appeal_time, dateFormat)}
+ value={!appeal_time?"":moment(appeal_time, dateFormat)}
onChange={this.appeal_time_change}
disabled={ (anonymous_appeal && !noAuth ? false : true) || moment(init_appeal_time) < moment()}
/>