From 45b6fa412cd67e264c0a8d59c0d2465fd1f07673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 4 Jul 2019 18:14:55 +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 --- .../shixunHomework/ShixunWorkDetails.js | 8 +- .../Shixunworkdetails/ShixunCustomsPass.js | 520 +++++++++--------- 2 files changed, 268 insertions(+), 260 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js index c1233ed3f..205fbd9e7 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js @@ -86,12 +86,16 @@ class ShixunWorkDetails extends Component {

-
+
{data&&data.homework_common_name} 返回
-
+
非编程类型任务,不参与查重 被查作品: diff --git a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js index 89c6e4bd4..81e5ec178 100644 --- a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js +++ b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js @@ -1,259 +1,263 @@ -import React, {Component} from "react"; -import {WordsBtn} from 'educoder'; -import {Table} from "antd"; -import {Link,Switch,Route,Redirect} from 'react-router-dom'; -import moment from 'moment'; -import { MonacoDiffEditor } from 'react-monaco-editor'; - -class ShixunCustomsPass extends Component { - - constructor(props) { - super(props); - this.state = { - loadingstate:true, - datas:undefined - } - } - - componentDidMount() { - - } - - render() { - let {data}=this.props; - console.log(data) - let datas=[]; - - data&&data.challenge_list.forEach((item,key)=>{ - datas.push({ - customs:{position:item.position,subject:item.subject}, - taskname:{name:item.username}, - openingtime:moment(item.end_time).format('YYYY-MM-DD HH:mm:ss'), - evaluating: {final_score:item.final_score,all_score:item.all_score}, - finishtime:item.copy_username, - elapsedtime:moment(item.copy_end_time).format('YYYY-MM-DD HH:mm:ss'), - empvalue:item.code_rate, - // adjustmentminute:asdasd - }) - }) - - - let columns=[{ - title: '关卡', - dataIndex: 'customs', - key: 'customs', - render: (text, record) => ( - - - - - - - 第{record.customs.position}关 - {record.customs.subject} - - - ), - }, { - title: '被查作品', - dataIndex: 'taskname', - key: 'taskname', - render: (text, record) => ( - - {record.taskname.name} - - ), - }, { - title: '被查作品完成时间', - dataIndex: 'openingtime', - key: 'openingtime', - render: (text, record) => ( - - {record.openingtime} - - ), - }, { - title: '得分/满分', - key: 'evaluating', - dataIndex: 'evaluating', - - render: (text, record) => ( - - {record.evaluating.final_score}/{record.evaluating.all_score} - - ), - }, { - title: '疑被抄袭作品', - key: 'finishtime', - dataIndex: 'finishtime', - render: (text, record) => ( - - {record.finishtime} - - ), - }, { - title: '疑被抄袭作品完成时间', - key: 'elapsedtime', - dataIndex: 'elapsedtime', - - render: (text, record) => ( - - {record.elapsedtime} - - ), - }, { - title: '相似度', - key: 'empvalue', - dataIndex: 'empvalue', - - render: (text, record) => ( - - {record.empvalue}% - - ), - }]; - // { - // title: '调分', - // key: 'adjustmentminute', - // dataIndex: 'adjustmentminute', - // - // render: (text, record) => ( - // - // 6小时 50分钟 6秒 - // - // ), - // }, - - - - return ( -
- - - {datas===undefined?"":} - -
-
-
实训详情
- - { - data&&data.challenge_list.map((item,key)=>{ - return( -
-
-

- - - - - 第{item.position}关 - - {item.subject} - - - 代码文件:{item.code_list[0].path} -

- -
- - - {item.code_list.map((ite,k)=>{ - return( -
-
-

- - {item.username} - 的代码文件 - - - {item.copy_username} - 的代码文件 - -

- -
-
  • - -
  • -
    -
    -
    - ) - })} -
    - ) - }) - } -
    -
    - - - ) - } -} - +import React, {Component} from "react"; +import {WordsBtn} from 'educoder'; +import {Table} from "antd"; +import {Link,Switch,Route,Redirect} from 'react-router-dom'; +import moment from 'moment'; +import { MonacoDiffEditor } from 'react-monaco-editor'; + +class ShixunCustomsPass extends Component { + + constructor(props) { + super(props); + this.state = { + loadingstate:true, + datas:undefined + } + } + + componentDidMount() { + + } + + render() { + let {data}=this.props; + console.log(data) + let datas=[]; + + data&&data.challenge_list.forEach((item,key)=>{ + datas.push({ + customs:{position:item.position,subject:item.subject}, + taskname:{name:item.username}, + openingtime:moment(item.end_time).format('YYYY-MM-DD HH:mm:ss'), + evaluating: {final_score:item.final_score,all_score:item.all_score}, + finishtime:item.copy_username, + elapsedtime:moment(item.copy_end_time).format('YYYY-MM-DD HH:mm:ss'), + empvalue:item.code_rate, + // adjustmentminute:asdasd + }) + }) + + + let columns=[{ + title: '关卡', + dataIndex: 'customs', + key: 'customs', + className:"customsPass", + render: (text, record) => ( + + + + + + + 第{record.customs.position}关 + {record.customs.subject} + + + ), + }, { + title: '被查作品', + dataIndex: 'taskname', + key: 'taskname', + render: (text, record) => ( + + {record.taskname.name} + + ), + }, { + title: '被查作品完成时间', + dataIndex: 'openingtime', + key: 'openingtime', + render: (text, record) => ( + + {record.openingtime} + + ), + }, { + title: '得分/满分', + key: 'evaluating', + dataIndex: 'evaluating', + + render: (text, record) => ( + + {record.evaluating.final_score}/{record.evaluating.all_score} + + ), + }, { + title: '疑被抄袭作品', + key: 'finishtime', + dataIndex: 'finishtime', + render: (text, record) => ( + + {record.finishtime} + + ), + }, { + title: '疑被抄袭作品完成时间', + key: 'elapsedtime', + dataIndex: 'elapsedtime', + + render: (text, record) => ( + + {record.elapsedtime} + + ), + }, { + title: '相似度', + key: 'empvalue', + dataIndex: 'empvalue', + + render: (text, record) => ( + + {record.empvalue}% + + ), + }]; + // { + // title: '调分', + // key: 'adjustmentminute', + // dataIndex: 'adjustmentminute', + // + // render: (text, record) => ( + // + // 6小时 50分钟 6秒 + // + // ), + // }, + + + + return ( +
    + + + {datas===undefined?"":
    } + +
    +
    +
    实训详情
    + + { + data&&data.challenge_list.map((item,key)=>{ + return( +
    +
    +

    + + + + + 第{item.position}关 + + {item.subject} + + + 代码文件:{item.code_list[0].path} +

    + +
    + + + {item.code_list.map((ite,k)=>{ + return( +
    +
    +

    + + {item.username} + 的代码文件 + + + {item.copy_username} + 的代码文件 + +

    + +
    +
  • + +
  • +
    +
    +
    + ) + })} +
    + ) + }) + } +
    +
    + + + ) + } +} + export default ShixunCustomsPass; \ No newline at end of file