Merge branch 'master' of https://bdgit.educoder.net/Hjqreturn/educoder
commit
a49ca20bbb
@ -1,153 +1,153 @@
|
||||
import React,{Component} from "React";
|
||||
import { Form, Select, Input, Button,Checkbox,Icon,message,Modal, Table, Divider, Tag,DatePicker,Radio,Tooltip} from "antd";
|
||||
import {Link} from 'react-router-dom';
|
||||
import { WordsBtn, MarkdownToHtml } from 'educoder';
|
||||
import axios from 'axios';
|
||||
import PublishRightnow from '../PublishRightnow'
|
||||
import AccessoryModal from "../../coursesPublic/AccessoryModal";
|
||||
|
||||
const { Option} = Select;
|
||||
const CheckboxGroup = Checkbox.Group;
|
||||
const confirm = Modal.confirm;
|
||||
let GraduationTasksnewtype=true;
|
||||
const $ = window.$;
|
||||
const Search = Input.Search;
|
||||
const RadioGroup = Radio.Group;
|
||||
|
||||
class TabRightComponents extends Component{
|
||||
|
||||
constructor(props){
|
||||
super(props)
|
||||
|
||||
this.publishModal = React.createRef();
|
||||
this.endModal = React.createRef();
|
||||
|
||||
this.state={
|
||||
accessoryVisible: false
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
}
|
||||
|
||||
onToPublishClick = () => {
|
||||
|
||||
}
|
||||
// 补交附件
|
||||
Cancelvisible=()=>{
|
||||
this.setState({
|
||||
accessoryVisible:false
|
||||
})
|
||||
}
|
||||
|
||||
addAccessory=()=>{
|
||||
this.setState({
|
||||
accessoryVisible:true
|
||||
})
|
||||
}
|
||||
setupdate = () => {
|
||||
|
||||
}
|
||||
render(){
|
||||
const dateFormat = 'YYYY-MM-DD HH:mm';
|
||||
const { accessoryVisible } = this.state
|
||||
let { work_statuses, publish_immediately, work_id
|
||||
, end_immediately
|
||||
} =this.props;
|
||||
|
||||
let courseId=this.props.match.params.coursesId;
|
||||
let category_id=this.props.match.params.category_id;
|
||||
let workId=this.props.match.params.workId;
|
||||
|
||||
const isGroup = this.props.isGroup()
|
||||
const moduleName = !isGroup? "普通作业":"分组作业";
|
||||
const moduleEngName = this.props.getModuleName()
|
||||
|
||||
const childModuleName = this.props.moduleName
|
||||
|
||||
const isAdmin = this.props.isAdmin()
|
||||
const isSuperAdmin = this.props.isSuperAdmin()
|
||||
|
||||
let exportUrl = `/api/homework_commons/${workId}/works_list.zip`
|
||||
const exportResultUrl = `/api/homework_commons/${workId}/works_list.xlsx`
|
||||
|
||||
return(
|
||||
<React.Fragment>
|
||||
{isAdmin ?
|
||||
<React.Fragment>
|
||||
<div style={{display: 'inline', float: 'right'}}>
|
||||
<PublishRightnow ref={this.publishModal} showActionButton={false} {...this.props} checkBoxValues={[workId]}
|
||||
isPublish={true} doWhenSuccess={this.props.doWhenSuccess} checkBeforePost={this.props.saveWorkSetting}
|
||||
onToPublishClick={this.onToPublishClick}
|
||||
></PublishRightnow>
|
||||
<PublishRightnow ref={this.endModal} showActionButton={false} {...this.props} checkBoxValues={[workId]}
|
||||
isPublish={false} doWhenSuccess={this.props.doWhenSuccess}></PublishRightnow>
|
||||
</div>
|
||||
|
||||
<style>{`
|
||||
.drop_down_menu li a {
|
||||
padding: 0px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
.drop_down_menu {
|
||||
width: 121px;
|
||||
}
|
||||
.drop_down_menu li {
|
||||
overflow: visible;
|
||||
width: 121px;
|
||||
}
|
||||
.drop_down_menu, .drop_down_normal {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
`}</style>
|
||||
{this.props.isAdmin()? <li className="li_line drop_down fr color-blue font-16 mr8 mt20" style={{"padding":"0 20px"}}>
|
||||
导出<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
||||
<ul className="drop_down_menu" style={{"right":"-34px","left":"unset","height":"auto"}}>
|
||||
<li><a href={exportResultUrl} calssName="color-dark">导出成绩</a></li>
|
||||
<li><a href={exportUrl} calssName="color-dark">导出作品附件</a></li>
|
||||
</ul>
|
||||
</li>:""}
|
||||
|
||||
{/* <a className={"fr color-blue font-16"} href={exportUrl}>导出作品附件</a>
|
||||
<a className={"fr color-blue font-16"} href={exportResultUrl}>导出成绩</a> */}
|
||||
{/*<a className={"fr color-blue font-16"}>导出</a>*/}
|
||||
{end_immediately && <a className={"fr color-blue font-16"} onClick={() => { this.endModal.current.open() } }>立即截止</a>}
|
||||
{publish_immediately && <a className={"fr color-blue font-16"} onClick={() => { this.publishModal.current.open() } } >立即发布</a>}
|
||||
|
||||
{/*<a className={"fr color-blue font-16"}>项目在线质量检测</a>*/}
|
||||
{isAdmin && <a className={"fr color-blue font-16"} onClick={() => this.props.toEditPage(this.props.match.params, workId)}>编辑作业</a>}
|
||||
</React.Fragment> :
|
||||
<React.Fragment>
|
||||
{work_statuses && work_statuses.indexOf('提交作品') != -1 && <a className={"fr color-blue font-16"} href={"javascript:void(0)"}
|
||||
onClick={() => { this.props.toWorkPostPage(this.props.match.params)}}
|
||||
>提交作品</a>}
|
||||
{work_statuses && work_statuses.indexOf('修改作品') != -1 && <a className={"fr color-blue font-16"} href={"javascript:void(0)"}
|
||||
onClick={() => { this.props.toWorkPostPage(this.props.match.params, null, true, work_id)}}
|
||||
>修改作品</a>}
|
||||
{work_statuses && work_statuses.indexOf('补交附件') != -1 &&
|
||||
<React.Fragment>
|
||||
<AccessoryModal
|
||||
{...this.props}
|
||||
modalname={"补交附件"}
|
||||
visible={accessoryVisible}
|
||||
Cancelname={"取消"}
|
||||
Savesname={"确认"}
|
||||
Cancel={this.Cancelvisible}
|
||||
setupdate={this.setupdate}
|
||||
reviseAttachmentUrl={`/student_works/${work_id}/revise_attachment.json`}
|
||||
/>
|
||||
<a className={"fr color-blue font-16"} href={"javascript:void(0)"}
|
||||
onClick={this.addAccessory}
|
||||
>补交附件</a>
|
||||
</React.Fragment>
|
||||
}
|
||||
</React.Fragment> }
|
||||
</React.Fragment>
|
||||
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
import React,{Component} from "React";
|
||||
import { Form, Select, Input, Button,Checkbox,Icon,message,Modal, Table, Divider, Tag,DatePicker,Radio,Tooltip} from "antd";
|
||||
import {Link} from 'react-router-dom';
|
||||
import { WordsBtn, MarkdownToHtml } from 'educoder';
|
||||
import axios from 'axios';
|
||||
import PublishRightnow from '../PublishRightnow'
|
||||
import AccessoryModal from "../../coursesPublic/AccessoryModal";
|
||||
|
||||
const { Option} = Select;
|
||||
const CheckboxGroup = Checkbox.Group;
|
||||
const confirm = Modal.confirm;
|
||||
let GraduationTasksnewtype=true;
|
||||
const $ = window.$;
|
||||
const Search = Input.Search;
|
||||
const RadioGroup = Radio.Group;
|
||||
|
||||
class TabRightComponents extends Component{
|
||||
|
||||
constructor(props){
|
||||
super(props)
|
||||
|
||||
this.publishModal = React.createRef();
|
||||
this.endModal = React.createRef();
|
||||
|
||||
this.state={
|
||||
accessoryVisible: false
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
}
|
||||
|
||||
onToPublishClick = () => {
|
||||
|
||||
}
|
||||
// 补交附件
|
||||
Cancelvisible=()=>{
|
||||
this.setState({
|
||||
accessoryVisible:false
|
||||
})
|
||||
}
|
||||
|
||||
addAccessory=()=>{
|
||||
this.setState({
|
||||
accessoryVisible:true
|
||||
})
|
||||
}
|
||||
setupdate = () => {
|
||||
|
||||
}
|
||||
render(){
|
||||
const dateFormat = 'YYYY-MM-DD HH:mm';
|
||||
const { accessoryVisible } = this.state
|
||||
let { work_statuses, publish_immediately, work_id
|
||||
, end_immediately
|
||||
} =this.props;
|
||||
|
||||
let courseId=this.props.match.params.coursesId;
|
||||
let category_id=this.props.match.params.category_id;
|
||||
let workId=this.props.match.params.workId;
|
||||
|
||||
const isGroup = this.props.isGroup()
|
||||
const moduleName = !isGroup? "普通作业":"分组作业";
|
||||
const moduleEngName = this.props.getModuleName()
|
||||
|
||||
const childModuleName = this.props.moduleName
|
||||
|
||||
const isAdmin = this.props.isAdmin()
|
||||
const isSuperAdmin = this.props.isSuperAdmin()
|
||||
|
||||
let exportUrl = `/api/homework_commons/${workId}/works_list.zip`
|
||||
const exportResultUrl = `/api/homework_commons/${workId}/works_list.xlsx`
|
||||
|
||||
return(
|
||||
<React.Fragment>
|
||||
{isAdmin ?
|
||||
<React.Fragment>
|
||||
<div style={{display: 'inline', float: 'right'}}>
|
||||
<PublishRightnow ref={this.publishModal} showActionButton={false} {...this.props} checkBoxValues={[workId]}
|
||||
isPublish={true} doWhenSuccess={this.props.doWhenSuccess} checkBeforePost={this.props.saveWorkSetting}
|
||||
onToPublishClick={this.onToPublishClick}
|
||||
></PublishRightnow>
|
||||
<PublishRightnow ref={this.endModal} showActionButton={false} {...this.props} checkBoxValues={[workId]}
|
||||
isPublish={false} doWhenSuccess={this.props.doWhenSuccess}></PublishRightnow>
|
||||
</div>
|
||||
|
||||
<style>{`
|
||||
.drop_down_menu li a {
|
||||
padding: 0px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
.drop_down_menu {
|
||||
width: 121px;
|
||||
}
|
||||
.drop_down_menu li {
|
||||
overflow: visible;
|
||||
width: 121px;
|
||||
}
|
||||
.drop_down_menu, .drop_down_normal {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
`}</style>
|
||||
{this.props.isAdmin()? <li className="li_line drop_down fr color-blue font-16 mr8 mt20" style={{"padding":"0 20px"}}>
|
||||
导出<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
||||
<ul className="drop_down_menu" style={{"right":"-34px","left":"unset","height":"auto"}}>
|
||||
<li><a href={exportResultUrl} className="color-dark">导出成绩</a></li>
|
||||
<li><a href={exportUrl} className="color-dark">导出作品附件</a></li>
|
||||
</ul>
|
||||
</li>:""}
|
||||
|
||||
{/* <a className={"fr color-blue font-16"} href={exportUrl}>导出作品附件</a>
|
||||
<a className={"fr color-blue font-16"} href={exportResultUrl}>导出成绩</a> */}
|
||||
{/*<a className={"fr color-blue font-16"}>导出</a>*/}
|
||||
{end_immediately && <a className={"fr color-blue font-16"} onClick={() => { this.endModal.current.open() } }>立即截止</a>}
|
||||
{publish_immediately && <a className={"fr color-blue font-16"} onClick={() => { this.publishModal.current.open() } } >立即发布</a>}
|
||||
|
||||
{/*<a className={"fr color-blue font-16"}>项目在线质量检测</a>*/}
|
||||
{isAdmin && <a className={"fr color-blue font-16"} onClick={() => this.props.toEditPage(this.props.match.params, workId)}>编辑作业</a>}
|
||||
</React.Fragment> :
|
||||
<React.Fragment>
|
||||
{work_statuses && work_statuses.indexOf('提交作品') != -1 && <a className={"fr color-blue font-16"} href={"javascript:void(0)"}
|
||||
onClick={() => { this.props.toWorkPostPage(this.props.match.params)}}
|
||||
>提交作品</a>}
|
||||
{work_statuses && work_statuses.indexOf('修改作品') != -1 && <a className={"fr color-blue font-16"} href={"javascript:void(0)"}
|
||||
onClick={() => { this.props.toWorkPostPage(this.props.match.params, null, true, work_id)}}
|
||||
>修改作品</a>}
|
||||
{work_statuses && work_statuses.indexOf('补交附件') != -1 &&
|
||||
<React.Fragment>
|
||||
<AccessoryModal
|
||||
{...this.props}
|
||||
modalname={"补交附件"}
|
||||
visible={accessoryVisible}
|
||||
Cancelname={"取消"}
|
||||
Savesname={"确认"}
|
||||
Cancel={this.Cancelvisible}
|
||||
setupdate={this.setupdate}
|
||||
reviseAttachmentUrl={`/student_works/${work_id}/revise_attachment.json`}
|
||||
/>
|
||||
<a className={"fr color-blue font-16"} href={"javascript:void(0)"}
|
||||
onClick={this.addAccessory}
|
||||
>补交附件</a>
|
||||
</React.Fragment>
|
||||
}
|
||||
</React.Fragment> }
|
||||
</React.Fragment>
|
||||
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default TabRightComponents;
|
@ -1,181 +1,186 @@
|
||||
import React, {Component} from "react";
|
||||
import {WordsBtn} from 'educoder';
|
||||
import {Table} from "antd";
|
||||
import {Link,Switch,Route,Redirect} from 'react-router-dom';
|
||||
|
||||
class OfficialAcademicTranscript extends Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
loadingstate:true,
|
||||
datas:undefined
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
let {data}=this.props;
|
||||
let datas=[];
|
||||
// data&&data.exercise_counts.forEach((item,key)=>{ })
|
||||
|
||||
datas.push({
|
||||
commit_percent:data&&data.exercise_counts.commit_percent,
|
||||
min_score:data&&data.exercise_counts.min_score,
|
||||
max_score:data&&data.exercise_counts.max_score,
|
||||
average_score:data&&data.exercise_counts.average_score,
|
||||
fail_counts:data&&data.exercise_counts.fail_counts,
|
||||
pass_counts:data&&data.exercise_counts.pass_counts,
|
||||
good_counts:data&&data.exercise_counts.good_counts,
|
||||
best_counts:data&&data.exercise_counts.best_counts,
|
||||
})
|
||||
|
||||
|
||||
|
||||
let columns=[{
|
||||
title: '提交率',
|
||||
dataIndex: 'commit_percent',
|
||||
key: 'commit_percent',
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.commit_percent===0?0:(record.commit_percent*100).toFixed(2)}<span className={"font-size12"}>%</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '最低分',
|
||||
dataIndex: 'min_score',
|
||||
key: 'min_score',
|
||||
render: (text, record) => (
|
||||
<span>
|
||||
<span style={{color:'#333333'}}>{record.min_score}<span className={"font-size12"}>分</span></span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '最高分',
|
||||
dataIndex: 'max_score',
|
||||
key: 'max_score',
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#FF6800'}}>
|
||||
{record.max_score}<span className={"font-size12"}>分</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '平均分',
|
||||
key: 'average_score',
|
||||
dataIndex: 'average_score',
|
||||
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.average_score}<span className={"font-size12"}>分</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '不及格(0-60)',
|
||||
key: 'fail_counts',
|
||||
dataIndex: 'fail_counts',
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.fail_counts}<span className={"font-size12"}>人</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '及格(60-70)',
|
||||
key: 'pass_counts',
|
||||
dataIndex: 'pass_counts',
|
||||
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.pass_counts}<span className={"font-size12"}>人</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '良好(70-90)',
|
||||
key: 'good_counts',
|
||||
dataIndex: 'good_counts',
|
||||
|
||||
render: (text, record) => (
|
||||
<span>
|
||||
<span style={{color:'#333333'}}>{record.good_counts}<span className={"font-size12"}>人</span></span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '优秀(90-100)',
|
||||
key: 'best_counts',
|
||||
dataIndex: 'best_counts',
|
||||
|
||||
render: (text, record) => (
|
||||
<span>
|
||||
<span style={{color:'#FF6800'}}>{record.best_counts}<span className={"font-size12"}>人</span></span>
|
||||
</span>
|
||||
),
|
||||
}];
|
||||
// {
|
||||
// title: '调分',
|
||||
// key: 'adjustmentminute',
|
||||
// dataIndex: 'adjustmentminute',
|
||||
//
|
||||
// render: (text, record) => (
|
||||
// <span>
|
||||
// <a>6小时 50分钟 6秒</a>
|
||||
// </span>
|
||||
// ),
|
||||
// },
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
{/*{data===undefined?"":""}*/}
|
||||
<style>{`
|
||||
.ant-table-thead > tr > th{
|
||||
text-align: center;
|
||||
}
|
||||
.tasknamebox{
|
||||
width: 50px;
|
||||
height: 24px;
|
||||
border: 1px solid rgba(221,23,23,1);
|
||||
border-radius: 12px;
|
||||
color: rgba(221,23,23,1);
|
||||
display: inline-block;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.tasknameboxs{
|
||||
color: #666666 !important;
|
||||
background:rgba(237,237,237,1) !important;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr > td{
|
||||
font-size:14px;
|
||||
}
|
||||
.task-hide{
|
||||
max-width: 345px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-table-tbody > tr{
|
||||
height:64px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
`}
|
||||
</style>
|
||||
{datas===undefined?"":<Table
|
||||
dataSource={datas}
|
||||
columns={columns}
|
||||
pagination={false}
|
||||
// loading={loadingstate}
|
||||
// onChange={this.TablePagination}
|
||||
/>}
|
||||
</div>
|
||||
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
import React, {Component} from "react";
|
||||
import {WordsBtn} from 'educoder';
|
||||
import {Table} from "antd";
|
||||
import {Link,Switch,Route,Redirect} from 'react-router-dom';
|
||||
|
||||
class OfficialAcademicTranscript extends Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
loadingstate:true,
|
||||
datas:undefined
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
let {data}=this.props;
|
||||
let datas=[];
|
||||
// data&&data.exercise_counts.forEach((item,key)=>{ })
|
||||
|
||||
datas.push({
|
||||
commit_percent:data&&data.exercise_counts.commit_percent,
|
||||
min_score:data&&data.exercise_counts.min_score,
|
||||
max_score:data&&data.exercise_counts.max_score,
|
||||
average_score:data&&data.exercise_counts.average_score,
|
||||
fail_counts:data&&data.exercise_counts.fail_counts,
|
||||
pass_counts:data&&data.exercise_counts.pass_counts,
|
||||
good_counts:data&&data.exercise_counts.good_counts,
|
||||
best_counts:data&&data.exercise_counts.best_counts,
|
||||
})
|
||||
|
||||
|
||||
|
||||
let columns=[{
|
||||
title: '提交率',
|
||||
dataIndex: 'commit_percent',
|
||||
key: 'commit_percent',
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.commit_percent===0?0:(record.commit_percent*100).toFixed(2)}<span className={"font-size12"}>%</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '最低分',
|
||||
dataIndex: 'min_score',
|
||||
key: 'min_score',
|
||||
render: (text, record) => (
|
||||
<span>
|
||||
<span style={{color:'#333333'}}>{record.min_score}<span className={"font-size12"}>分</span></span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '最高分',
|
||||
dataIndex: 'max_score',
|
||||
key: 'max_score',
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#FF6800'}}>
|
||||
{record.max_score}<span className={"font-size12"}>分</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '平均分',
|
||||
key: 'average_score',
|
||||
dataIndex: 'average_score',
|
||||
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.average_score}<span className={"font-size12"}>分</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '不及格(0-60)',
|
||||
key: 'fail_counts',
|
||||
dataIndex: 'fail_counts',
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.fail_counts}<span className={"font-size12"}>人</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '及格(60-70)',
|
||||
key: 'pass_counts',
|
||||
dataIndex: 'pass_counts',
|
||||
|
||||
render: (text, record) => (
|
||||
<span style={{color:'#333333'}}>
|
||||
{record.pass_counts}<span className={"font-size12"}>人</span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '良好(70-90)',
|
||||
key: 'good_counts',
|
||||
dataIndex: 'good_counts',
|
||||
|
||||
render: (text, record) => (
|
||||
<span>
|
||||
<span style={{color:'#333333'}}>{record.good_counts}<span className={"font-size12"}>人</span></span>
|
||||
</span>
|
||||
),
|
||||
}, {
|
||||
title: '优秀(90-100)',
|
||||
key: 'best_counts',
|
||||
dataIndex: 'best_counts',
|
||||
|
||||
render: (text, record) => (
|
||||
<span>
|
||||
<span style={{color:'#FF6800'}}>{record.best_counts}<span className={"font-size12"}>人</span></span>
|
||||
</span>
|
||||
),
|
||||
}];
|
||||
// {
|
||||
// title: '调分',
|
||||
// key: 'adjustmentminute',
|
||||
// dataIndex: 'adjustmentminute',
|
||||
//
|
||||
// render: (text, record) => (
|
||||
// <span>
|
||||
// <a>6小时 50分钟 6秒</a>
|
||||
// </span>
|
||||
// ),
|
||||
// },
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
{/*{data===undefined?"":""}*/}
|
||||
<style>{`
|
||||
.ant-table-thead > tr > th{
|
||||
text-align: center;
|
||||
}
|
||||
.tasknamebox{
|
||||
width: 50px;
|
||||
height: 24px;
|
||||
border: 1px solid rgba(221,23,23,1);
|
||||
border-radius: 12px;
|
||||
color: rgba(221,23,23,1);
|
||||
display: inline-block;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.tasknameboxs{
|
||||
color: #666666 !important;
|
||||
background:rgba(237,237,237,1) !important;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr > td{
|
||||
font-size:14px;
|
||||
}
|
||||
.task-hide{
|
||||
max-width: 345px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-table-tbody > tr{
|
||||
height:64px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.exerctabel .ant-table-tbody > tr >td{
|
||||
border:1px solid transparent;
|
||||
}
|
||||
|
||||
`}
|
||||
</style>
|
||||
{datas===undefined?"":<Table
|
||||
className={"exerctabel"}
|
||||
dataSource={datas}
|
||||
columns={columns}
|
||||
pagination={false}
|
||||
// loading={loadingstate}
|
||||
// onChange={this.TablePagination}
|
||||
/>}
|
||||
</div>
|
||||
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default OfficialAcademicTranscript;
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue