From 15e810a2d597ab181a4e8272ad3585e417a8ebc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 20 Jul 2019 16:39:41 +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 --- .../courses/shixunHomework/Challenges.css | 51 ++++++++++--------- .../shixunHomework/Listofworksstudentone.js | 20 ++++---- 2 files changed, 37 insertions(+), 34 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Challenges.css b/public/react/src/modules/courses/shixunHomework/Challenges.css index dc9ba1ec1..2183fd708 100644 --- a/public/react/src/modules/courses/shixunHomework/Challenges.css +++ b/public/react/src/modules/courses/shixunHomework/Challenges.css @@ -1,24 +1,29 @@ -.editormd-html-preview, .editormd-preview-container { - width: 95% !important; -} -.Finish_button{ - height: 30px; - line-height: 30px; - margin-top: -8px; -} -.startbtnModal .ant-modal-content{ - background: transparent; - box-shadow: 0 4px 12px transparent; -} - -.startbtnModal .ant-modal-content .ant-modal-body .ant-spin-spinning{ - margin-left: 45%; -} - -.color05101a{ - color:#05101a; -} - -.mtf3{ - margin-top: -3px; +.editormd-html-preview, .editormd-preview-container { + width: 95% !important; +} +.Finish_button{ + height: 30px; + line-height: 30px; + margin-top: -8px; +} +.startbtnModal .ant-modal-content{ + background: transparent; + box-shadow: 0 4px 12px transparent; +} + +.startbtnModal .ant-modal-content .ant-modal-body .ant-spin-spinning{ + margin-left: 45%; +} + +.color05101a{ + color:#05101a; +} + +.mtf3{ + margin-top: -3px; +} +.ysltable{ + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap } \ No newline at end of file diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index bdd3a7de2..7f9ab561f 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -24,6 +24,7 @@ import moment from 'moment'; import '../css/members.css' import '../css/busyWork.css' import '../poll/pollStyle.css' +import './Challenges.css' import {getImageUrl} from 'educoder'; import TraineetraininginformationModal from "./TraineetraininginformationModal"; import DownloadMessageysl from '../../modals/DownloadMessageysl'; @@ -182,7 +183,7 @@ class Listofworksstudentone extends Component { className:'font-14', render: (text, record) => ( - {record.classroom === undefined ? "--" : record.classroom === "" ? "--" : record.classroom === null ? "--" : record.classroom} @@ -418,7 +419,7 @@ class Listofworksstudentone extends Component { align: 'center', className:'font-14', render: (text, record) => ( - {record.classroom} + {record.classroom} ) }, { @@ -680,7 +681,7 @@ class Listofworksstudentone extends Component { align: 'center', className:'font-14', render: (text, record) => ( - {record.classroom} + {record.classroom} ) }, { @@ -968,7 +969,6 @@ class Listofworksstudentone extends Component { // console.log("951"); // console.log(result); // debugger - if (result.status === 200) { this.setState({ teacherdata: result.data, task_status: result.data.task_status, @@ -990,7 +990,6 @@ class Listofworksstudentone extends Component { this.seacthdatas(result.data, result.data.student_works); } - } }).catch((error) => { console.log(error); }) @@ -1022,7 +1021,7 @@ class Listofworksstudentone extends Component { limit: limit, } axios.post(urll, data).then((result) => { - if (result.status === 200) { + if (result) { // console.log("学生未截至未公开的作品列表") // console.log(JSON.stringify(result)) this.setState({ @@ -1282,7 +1281,7 @@ class Listofworksstudentone extends Component { // console.log(JSON.stringify(this.props.user)) var url = `/student_works/${userids}/shixun_work.json`; axios.get(url).then((result) => { - if (result.status === 200) { + if (result) { // console.log("Listofworksstudentone.js") // console.log(JSON.stringify(result)) let datalist = []; @@ -1498,7 +1497,6 @@ class Listofworksstudentone extends Component { limit:20, } axios.post(urll, data).then((result) => { - debugger if (result) { // console.log(url) // console.log("作品列表6789077") @@ -1930,7 +1928,7 @@ class Listofworksstudentone extends Component { // console.log(JSON.stringify(this.props.user)) var url = `/student_works/${userids}/shixun_work.json`; axios.get(url).then((result) => { - if (result.status === 200) { + if (result) { // console.log("TraineetraininginformationModal.js") // console.log(JSON.stringify(result)) let datalist = []; @@ -2047,7 +2045,7 @@ class Listofworksstudentone extends Component { group_ids: course_groupslist, end_time:endtime, }).then((result) => { - if (result.status === 200) { + if (result) { if (result.data.status === 0) { notification.open({ message: "提示", @@ -2470,7 +2468,7 @@ class Listofworksstudentone extends Component {
-

没有数据可以显示!

+

没有数据可以显示.!