From e1f83153d5671f8cf6c0921c97164c33db5801c8 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, 13 Dec 2019 10:30:23 +0800 Subject: [PATCH] =?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/tpm/TPMsettings/Configuration.js | 1 + .../src/modules/tpm/TPMsettings/Shixuninformation.js | 3 +++ public/react/src/modules/tpm/newshixuns/Newshixuns.js | 9 ++++----- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/tpm/TPMsettings/Configuration.js b/public/react/src/modules/tpm/TPMsettings/Configuration.js index 11a709f3f..2dcbf97a6 100644 --- a/public/react/src/modules/tpm/TPMsettings/Configuration.js +++ b/public/react/src/modules/tpm/TPMsettings/Configuration.js @@ -150,6 +150,7 @@ export default class Shixuninformation extends Component { }) }) + } CheckboxonChange = (e) => { this.setState({ diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js index 4b6130b92..50a7e4166 100644 --- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js +++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js @@ -701,6 +701,9 @@ class Shixuninformation extends Component { }) } }); + this.setState({ + loading: false + }) } Selectthestudent = (value) => { diff --git a/public/react/src/modules/tpm/newshixuns/Newshixuns.js b/public/react/src/modules/tpm/newshixuns/Newshixuns.js index d0a80aab6..3cdbff1c5 100644 --- a/public/react/src/modules/tpm/newshixuns/Newshixuns.js +++ b/public/react/src/modules/tpm/newshixuns/Newshixuns.js @@ -123,12 +123,11 @@ class Newshixuns extends Component { }) - }else{ - this.setState({ - loading: true - }) } }); + this.setState({ + loading: false + }) }; Selectthestudent = (value) => { this.props.form.setFieldsValue({ @@ -466,7 +465,7 @@ class Newshixuns extends Component { > {getFieldDecorator('name', { rules: [{ - required: true, message: '请输入选题名称', + required: true, message: '请输入名称', }, { max: 60, message: '请输入名称,最大限制60个字符', }, {