From e990fa51c5f8f914aa32716b8a66eee38c89da73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Fri, 19 Jul 2019 17:58:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/coursesPublic/ShixunModal.js | 2 +-
public/react/src/modules/home/shixunsHome.js | 2 +-
.../modules/tpm/TPMsettings/TPMsettings.js | 22 +++++++++---
.../src/modules/tpm/newshixuns/Newshixuns.js | 36 +++++++++++++------
4 files changed, 45 insertions(+), 17 deletions(-)
diff --git a/public/react/src/modules/courses/coursesPublic/ShixunModal.js b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
index 4046a58a4..f0caef87b 100644
--- a/public/react/src/modules/courses/coursesPublic/ShixunModal.js
+++ b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
@@ -378,7 +378,7 @@ class ShixunModal extends Component{
- {this.state.shixunmodelchke===true?{this.state.chekicmessage}:""}
+ {this.state.chekicmessage}
取消
确定
diff --git a/public/react/src/modules/home/shixunsHome.js b/public/react/src/modules/home/shixunsHome.js
index 9093ec22d..780691e6c 100644
--- a/public/react/src/modules/home/shixunsHome.js
+++ b/public/react/src/modules/home/shixunsHome.js
@@ -232,7 +232,7 @@ class ShixunsHome extends Component {
- {item.stages_count}
+ {item.stages_count}
diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
index abeb18c9f..72bbbe3d0 100644
--- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
+++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
@@ -161,7 +161,20 @@ function updatamakedown(id){
}, 200)
}
-
+function range(start, end) {
+ const result = [];
+ for (let i = start; i < end; i++) {
+ result.push(i);
+ }
+ return result;
+}
+function disabledDateTime() {
+ return {
+ // disabledHours: () => range(0, 24).splice(4, 20),
+ disabledMinutes: () => range(1, 30).concat(range(31, 60)),
+ // disabledSeconds: () => [0, 60],
+ };
+}
export default class TPMsettings extends Component {
constructor(props) {
super(props)
@@ -1307,7 +1320,7 @@ export default class TPMsettings extends Component {
-