From f21dea0f7665473b5c23faa5a4da4587d06dd5fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Wed, 6 Nov 2019 17:30:33 +0800
Subject: [PATCH 01/36] =?UTF-8?q?=E6=96=B0=E9=9C=80=E6=B1=82=E5=85=AC?=
=?UTF-8?q?=E5=91=8A=E6=A0=8F=E9=9C=80=E8=A6=81=E5=A2=9E=E5=8A=A0=E6=8E=92?=
=?UTF-8?q?=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/gradinforms/Bullsubdirectory.js | 20 +++++++++++++++++++
.../modules/courses/gradinforms/Eduinforms.js | 7 +++++--
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/courses/gradinforms/Bullsubdirectory.js b/public/react/src/modules/courses/gradinforms/Bullsubdirectory.js
index db4f89bfc..2c81f4898 100644
--- a/public/react/src/modules/courses/gradinforms/Bullsubdirectory.js
+++ b/public/react/src/modules/courses/gradinforms/Bullsubdirectory.js
@@ -269,6 +269,26 @@ class Bullsubdirectory extends Component{
:""
}
+ {
+ this.props.length - 1 === this.props.index ? "" :
+
+ 登录密码出错已达上限,账号已被锁定; +
++ 请10分钟后重新登录或找回密码 +
+{Phonenumberisnotco}
@@ -662,7 +701,8 @@ class LoginDialog extends Component { - this.getloginurl("/changepassword")} className="mr3 color-grey-9">忘记密码 + this.getloginurl("/changepassword")} + className="mr3 color-grey-9">找回密码 this.getloginurl("/register")} className="color-grey-9">注册 diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index c9dc518b0..61b20c01f 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -698,7 +698,7 @@ submittojoinclass=(value)=>{ } document.head.appendChild(link); } - + getAppdata=()=>{ let url = "/setting.json"; axios.get(url).then((response) => { @@ -1226,8 +1226,8 @@ submittojoinclass=(value)=>{ this.props.Headertop && this.props.Headertop.laboratory_user &&
+ 登录密码出错已达上限,账号已被锁定; +
++ 请10分钟后重新登录或找回密码 +
++// +// 该学生的最终成绩将不会按照评分规则进行计算 +// +//
+// +// +//该学生的最终成绩将不会按照评分规则进行计算
+调分后该学生的最终成绩将不会按照评分规则进行计算
-{Inputsvaltest}
+{Inputsvaltest}
: "" } @@ -171,9 +171,9 @@ class ModulationModal extends Component{ display: "flex", flexDirection: "row-reverse", }}> - {this.props.Savesname || '确认'} - {this.props.Cancelname || '取消'} diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index d13bbf9b2..b83200c49 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -1175,9 +1175,9 @@ class Listofworksstudentone extends Component { className: 'font-14', render: (text, record) => ( record.submitstate === "未提交" ? - - -- - : + this.Viewstudenttraininginformationtysl2(e, record)} + onClick={() => this.Viewstudenttraininginformationt(record)}>评阅 : this.Viewstudenttraininginformationtysl2(e, record)} @@ -1509,13 +1509,13 @@ class Listofworksstudentone extends Component { className: 'font-14', render: (text, record) => ( record.submitstate === "未提交" ? - - -- - : + this.Viewstudenttraininginformationtysl2(e, record)} + onClick={() => this.Viewstudenttraininginformationt(record)}>评阅 : this.Viewstudenttraininginformationtysl2(e, record)} - onClick={() => this.Viewstudenttraininginformationt(record)}>{record.operating} + onClick={() => this.Viewstudenttraininginformationt(record)}>评阅 ) }, From be3b094e2f87682290100e964c9dc8c4704d0ee1 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, 8 Nov 2019 10:00:39 +0800 Subject: [PATCH 17/36] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=94=B9=E7=89=88?= =?UTF-8?q?=E5=90=8E=E8=B0=83=E5=88=86=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/config/webpack.config.dev.js | 2 +- .../courses/coursesPublic/ModulationModal.js | 84 ++++++++++++------- 2 files changed, 56 insertions(+), 30 deletions(-) diff --git a/public/react/config/webpack.config.dev.js b/public/react/config/webpack.config.dev.js index 743b3685c..f335f1705 100644 --- a/public/react/config/webpack.config.dev.js +++ b/public/react/config/webpack.config.dev.js @@ -32,7 +32,7 @@ module.exports = { // See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.s // devtool: "cheap-module-eval-source-map", // 开启调试 - // devtool: "source-map", // 开启调试 + devtool: "source-map", // 开启调试 // These are the "entry points" to our application. // This means they will be the "root" imports that are included in JS bundle. // The first two entry points enable "hot" CSS and auto-refreshes for JS. diff --git a/public/react/src/modules/courses/coursesPublic/ModulationModal.js b/public/react/src/modules/courses/coursesPublic/ModulationModal.js index af3ae01f3..8c3fcaa37 100644 --- a/public/react/src/modules/courses/coursesPublic/ModulationModal.js +++ b/public/react/src/modules/courses/coursesPublic/ModulationModal.js @@ -1,5 +1,5 @@ import React,{ Component } from "react"; -import {Modal, Checkbox, Upload, Button, Icon, message, Input, Form} from "antd"; +import {Modal, Checkbox, Upload, Button, Icon, message, Input, Form, InputNumber} from "antd"; import { WordNumberTextarea } from 'educoder'; import './Newshixunmodel.css' @@ -17,6 +17,7 @@ class ModulationModal extends Component{ Saves=()=>{ + console.log("Saves=()"); let {textareaval,Inputsval}=this.state; // if(textareaval===""||textareaval===undefined){ // this.setState({ @@ -44,6 +45,7 @@ class ModulationModal extends Component{ Inputsvaltype: false, Inputsvaltest: "", }) + console.log(Inputsval); this.props.Saves(textareaval,Inputsval) } @@ -55,31 +57,45 @@ class ModulationModal extends Component{ } setInputs=(e)=>{ - debugger - var value=parseInt(e.target.value) + console.log("setInputs"); + let value = undefined; + try { + value = parseFloat(e); + } catch (e) { + this.setState({ + borredszf: "ml10 color-grey-9 bor-reds ", + Inputsval: 0, + Inputsvaltype: true, + Inputsvaltest: "请输入分数", + }) + return; + } - if(isNaN(value)){ - value = 0; + if (value === undefined || value === null || value === "") { this.setState({ - Inputsval: value, + borredszf: "ml10 color-grey-9 bor-reds ", + Inputsval: 0, Inputsvaltype: true, Inputsvaltest: "请输入分数", }) - }else{ - if(value<0||value>100){ - value = 0; - this.setState({ - Inputsval: value, - Inputsvaltype: true, - Inputsvaltest: "请输入0-100的分数", - }) - - } - } - this.setState({ + return + } + var re = /^[0-9]+.?[0-9]*$/; //判断字符串是否为数字 //判断正整数 /^[1-9]+[0-9]*]*$/ + var nubmer = value; + if (!re.test(nubmer)) { + this.setState({ + borredszf: "ml10 color-grey-9 bor-reds ", + Inputsval: value, + Inputsvaltype: true, + Inputsvaltest: "请输入0-100的分数", + }) + return; + } + console.log(value); + this.setState({ Inputsval: value, Inputsvaltype: false, - }) + }) } render(){ let {textareaval, Inputsval, textareavaltype, Inputsvaltype, Inputsvaltest} = this.state; @@ -123,16 +139,26 @@ class ModulationModal extends Component{ lineHeight: " 40px", color: " #f5222d", }}>*成绩: - + +实训名称 | +技术平台 | +技术体系 | +封面 | +创建者 | +状态 | +执行时间 | +操作 | +
---|---|---|---|---|---|---|---|
课程名称 | +技术体系 | +等级体系 | +封面 | +创建者 | +单位 | +状态 | +操作 | +
---|---|---|---|---|---|---|---|