dev_aliyun2
harry 5 years ago
parent d39bbdd54a
commit 7a32c305b6

@ -1,5 +1,5 @@
import React, { Component } from "react"; import React, {Component} from "react";
import { SnackbarHOC, getImageUrl } from 'educoder'; import {SnackbarHOC,getImageUrl} from 'educoder';
import axios from 'axios'; import axios from 'axios';
import { import {
Spin, Spin,
@ -8,15 +8,16 @@ import {
} from "antd"; } from "antd";
import Colleagechart from './colleagechart/Colleagechart' import Colleagechart from './colleagechart/Colleagechart'
import Colleagechartzu from './colleagechart/Colleagechartzu' import Colleagechartzu from './colleagechart/Colleagechartzu'
import TPMIndexHOC from "../modules/tpm/TPMIndexHOC"; import {TPMIndexHOC} from "../modules/tpm/TPMIndexHOC";
import NoneData from './../modules/courses/coursesPublic/NoneData'; import NoneData from './../modules/courses/coursesPublic/NoneData';
import './colleagecss/colleage.css'; import './colleagecss/colleage.css';
class College extends Component { class College extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
// this.answerMdRef = React.createRef();
this.state = { this.state = {
coursesloading: false, coursesloading:false,
columns: [ columns: [
{ {
title: '名称', title: '名称',
@ -42,7 +43,7 @@ class College extends Component {
className: "edu-txt-center font-14 maxnamewidth340", className: "edu-txt-center font-14 maxnamewidth340",
render: (text, record) => ( render: (text, record) => (
<a className="maxnamewidth340" title={record.teachers} style={{ <a className="maxnamewidth340" title={record.teachers} style={{
color: '#05101A' color:'#05101A'
}}> }}>
{ {
record.teachers record.teachers
@ -140,9 +141,9 @@ class College extends Component {
align: 'center', align: 'center',
className: "edu-txt-center font-14", className: "edu-txt-center font-14",
render: (text, record) => ( render: (text, record) => (
<span className={record.is_end ? '' : 'color-huang'}> <span className={record.is_end?'':'color-huang'}>
{ {
record.is_end ? record.is_end?
"已结束" "已结束"
: :
"正在进行" "正在进行"
@ -165,11 +166,11 @@ class College extends Component {
) )
}, },
], ],
page: 1, page:1,
limit: 10, limit:10,
total_users: 50, total_users:50,
teachersloading: false, teachersloading:false,
teacherranking: [ teacherranking:[
{ {
title: '排名', title: '排名',
dataIndex: 'ranking', dataIndex: 'ranking',
@ -192,7 +193,7 @@ class College extends Component {
className: "edu-txt-center font-14 maxnamewidth105", className: "edu-txt-center font-14 maxnamewidth105",
render: (text, record) => ( render: (text, record) => (
<a href={`/users/${record.login}`} title={record.name} target="_blank" className="task-hide maxnamewidth105" style={{ <a href={`/users/${record.login}`} title={record.name} target="_blank" className="task-hide maxnamewidth105" style={{
color: '#007bff', color:'#007bff',
}}> { }}> {
record.name record.name
@ -266,7 +267,7 @@ class College extends Component {
render: (text, record) => ( render: (text, record) => (
<span> <span>
{ {
record.complete_rate + "%" record.complete_rate+"%"
} }
</span> </span>
) )
@ -286,23 +287,23 @@ class College extends Component {
) )
} }
], ],
studentranking: [ studentranking:[
{ {
title: '排名', title: '排名',
dataIndex: 'ranking', dataIndex: 'ranking',
key: 'ranking', key: 'ranking',
align: 'center', align: 'center',
className: "edu-txt-center font-14", className: "edu-txt-center font-14",
width: '100px', width:'100px',
render: (text, record) => ( render: (text, record) => (
<span> <span>
{ {
record.id === 1 ? <img width="18px" height="22px" className="mt8" src={getImageUrl("images/educoder/competition/1.png")} /> record.id===1? <img width="18px" height="22px" className="mt8" src={getImageUrl("images/educoder/competition/1.png")}/>
: record.id === 2 ? :record.id===2?
<img width="18px" height="22px" className="mt8" src={getImageUrl("images/educoder/competition/2.png")} /> <img width="18px" height="22px" className="mt8" src={getImageUrl("images/educoder/competition/2.png")}/>
: record.id === 3 ? :record.id===3?
<img width="18px" height="22px" className="mt8" src={getImageUrl("images/educoder/competition/3.png")} /> <img width="18px" height="22px" className="mt8" src={getImageUrl("images/educoder/competition/3.png")}/>
: record.id :record.id
} }
</span> </span>
) )
@ -313,10 +314,10 @@ class College extends Component {
key: 'name', key: 'name',
align: 'center', align: 'center',
className: "edu-txt-center font-14 maxnamewidth105", className: "edu-txt-center font-14 maxnamewidth105",
width: '100px', width:'100px',
render: (text, record) => ( render: (text, record) => (
<a href={`/users/${record.login}`} title={record.name} target="_blank" className="task-hide maxnamewidth105" style={{ <a href={`/users/${record.login}`} title={record.name} target="_blank" className="task-hide maxnamewidth105" style={{
color: '#007bff', color:'#007bff',
}}> { }}> {
record.name record.name
@ -389,7 +390,7 @@ class College extends Component {
className: "edu-txt-center font-14", className: "edu-txt-center font-14",
render: (text, record) => ( render: (text, record) => (
<span style={{ <span style={{
color: '#17a2b8' color:'#17a2b8'
}}> }}>
{ {
record.experience record.experience
@ -398,249 +399,247 @@ class College extends Component {
) )
}, },
], ],
school: "", school:"",
teachers_count: null, teachers_count:null,
students_count: null, students_count:null,
courses_count: null, courses_count:null,
shixuns_count: null, shixuns_count:null,
shixun_report_count: null, shixun_report_count:null,
shixun_time: null, shixun_time:null,
courses: null, courses:null,
course_count: 0, course_count:0,
pages: 1, pages:1,
limits: 10, limits:10,
teachers: null, teachers:null,
teacher_count: 0, teacher_count:0,
students: null, students:null,
student_count: 0, student_count:0,
shixun_chart_data: null, shixun_chart_data:null,
shixun_chart_datanames: null, shixun_chart_datanames:null,
studentionsnames: null, studentionsnames:null,
studentionsvalues: null studentionsvalues:null
} }
} }
componentDidMount() { componentDidMount(){
console.log("College"); console.log("College");
console.log(this.props.match.params.id); console.log(this.props.match.params.id);
this.gettop(); this.gettop();
this.Numberofinternshipreports(); this.Numberofinternshipreports();
this.Actualcombattimeoftrainees(); this.Actualcombattimeoftrainees();
this.Classnumber(1, 10); this.Classnumber(1,10);
this.Teacherranking(1, 10); this.Teacherranking(1,10);
this.Studentranking(1, 10); this.Studentranking(1,10);
this.Onlinetraining(); this.Onlinetraining();
this.Hottest(); this.Hottest();
} }
//头部 //头部
gettop = () => { gettop=()=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/statistics.json`; const url=`/colleges/${id}/statistics.json`;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if (response === null || response === undefined) { if(response===null||response===undefined){
this.setState({ this.setState({
teachers_count: 0, teachers_count:0,
students_count: 0, students_count:0,
courses_count: 0, courses_count:0,
shixuns_count: 0, shixuns_count:0,
school: "", school:"",
}) })
return return
} }
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
teachers_count: 0, teachers_count:0,
students_count: 0, students_count:0,
courses_count: 0, courses_count:0,
shixuns_count: 0, shixuns_count:0,
school: "", school:"",
}) })
} else { }else{
this.setState({ this.setState({
teachers_count: response.data.teachers_count, teachers_count:response.data.teachers_count,
students_count: response.data.students_count, students_count:response.data.students_count,
courses_count: response.data.courses_count, courses_count:response.data.courses_count,
shixuns_count: response.data.shixuns_count, shixuns_count:response.data.shixuns_count,
school: response.data.school, school:response.data.school,
}) })
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
this.setState({ this.setState({
teachers_count: 0, teachers_count:0,
students_count: 0, students_count:0,
courses_count: 0, courses_count:0,
shixuns_count: 0, shixuns_count:0,
school: "", school:"",
}) })
}); });
} }
//获取实训报告数 //获取实训报告数
Numberofinternshipreports = () => { Numberofinternshipreports=()=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/shixun_report_count.json`; const url=`/colleges/${id}/shixun_report_count.json`;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if (response === null || response === undefined) { if(response===null||response===undefined){
this.setState({ this.setState({
shixun_report_count: 0, shixun_report_count:0,
}) })
return return
} }
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
shixun_report_count: 0, shixun_report_count:0,
}) })
} else { }else{
if (response.data.status === -1) { if (response.data.status === -1){
this.setState({ this.setState({
shixun_report_count: 0, shixun_report_count:0,
}) })
return return
} }
this.setState({ this.setState({
shixun_report_count: response.data.shixun_report_count, shixun_report_count:response.data.shixun_report_count,
}) })
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
this.setState({ this.setState({
shixun_report_count: 0, shixun_report_count:0,
}) })
}); });
} }
//学员实战时间 //学员实战时间
Actualcombattimeoftrainees = () => { Actualcombattimeoftrainees=()=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/shixun_time.json`; const url=`/colleges/${id}/shixun_time.json`;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if (response === null || response === undefined) { if(response===null||response===undefined){
this.setState({ this.setState({
shixun_time: 0, shixun_time:0,
}) })
return return
} }
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
shixun_time: 0, shixun_time:0,
}) })
} else { }else{
if (response.data.status === -1) { if (response.data.status === -1){
this.setState({ this.setState({
shixun_time: 0, shixun_time:0,
}) })
return return
} }
this.setState({ this.setState({
shixun_time: response.data.shixun_time, shixun_time:response.data.shixun_time,
}) })
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
this.setState({ this.setState({
shixun_time: 0, shixun_time:0,
}) })
}); });
} }
//课堂信息 //课堂信息
Classnumber = (page, per_page) => { Classnumber=(page,per_page)=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/course_statistics.json`; const url=`/colleges/${id}/course_statistics.json`;
this.setState({ this.setState({
coursesloading: true coursesloading:true
}) })
axios.get(url, { axios.get(url,{params:{
params: { page:page,
page: page, per_page:per_page,
per_page: per_page,
} }
}).then((response) => { }).then((response) => {
if (response === null || response === undefined) { if(response===null||response===undefined){
this.setState({ this.setState({
courses: [], courses:[],
course_count: 0 course_count:0
}) })
return return
} }
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
courses: [], courses:[],
course_count: 0 course_count:0
}) })
} else { }else{
if (response.data.status === -1) { if (response.data.status === -1){
this.setState({ this.setState({
courses: [], courses:[],
course_count: 0 course_count:0
}) })
return return
} }
this.setState({ this.setState({
courses: response.data.courses, courses:response.data.courses,
course_count: response.data.course_count, course_count:response.data.course_count,
page: page, page:page,
limit: per_page limit:per_page
}) })
} }
this.setState({ this.setState({
coursesloading: false coursesloading:false
}) })
}).catch((error) => { }).catch((error) => {
this.setState({ this.setState({
courses: [], courses:[],
course_count: 0, course_count:0,
coursesloading: false coursesloading:false
}) })
}); });
} }
//教师排名 //教师排名
Teacherranking = (page, per_page) => { Teacherranking=(page,per_page)=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/teachers.json`; const url=`/colleges/${id}/teachers.json`;
this.setState({ this.setState({
teachersloading: true teachersloading:true
}) })
axios.get(url, { axios.get(url,{params:{
params: { page:page,
page: page, per_page:per_page,
per_page: per_page,
} }
}).then((response) => { }).then((response) => {
if (response === null || response === undefined) { if(response===null||response===undefined){
this.setState({ this.setState({
teachers: [], teachers:[],
teacher_count: 0 teacher_count:0
}) })
return return
} }
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
teachers: [], teachers:[],
teacher_count: 0 teacher_count:0
}) })
} else { }else{
if (response.data.status === -1) { if (response.data.status === -1){
this.setState({ this.setState({
teachers: [], teachers:[],
teacher_count: 0 teacher_count:0
}) })
return return
} }
let teachers = []; let teachers=[];
if (response.data.teachers) { if(response.data.teachers){
for (let i = 0; i < response.data.teachers.length; i++) { for(let i=0;i<response.data.teachers.length;i++){
let datay = { let datay={
id: (i + (page - 1) * 10) + 1, id:(i+(page-1)*10)+1,
login: response.data.teachers[i].login, login: response.data.teachers[i].login,
name: response.data.teachers[i].name, // 姓名 name: response.data.teachers[i].name, // 姓名
course_count: response.data.teachers[i].course_count, // 课堂数 course_count: response.data.teachers[i].course_count, // 课堂数
shixun_work_count: response.data.teachers[i].shixun_work_count, // 已发布实训作业 shixun_work_count:response.data.teachers[i].shixun_work_count, // 已发布实训作业
un_shixun_work_count: response.data.teachers[i].un_shixun_work_count, // 未发布实训作业 un_shixun_work_count:response.data.teachers[i].un_shixun_work_count, // 未发布实训作业
student_count: response.data.teachers[i].student_count, // 学生数 student_count: response.data.teachers[i].student_count, // 学生数
complete_rate: response.data.teachers[i].complete_rate, // 完成率 complete_rate: response.data.teachers[i].complete_rate, // 完成率
publish_shixun_count: response.data.teachers[i].publish_shixun_count, // 发布实训数 publish_shixun_count: response.data.teachers[i].publish_shixun_count, // 发布实训数
@ -651,67 +650,66 @@ class College extends Component {
} }
this.setState({ this.setState({
teachers: teachers, teachers:teachers,
teacher_count: response.data.teacher_count, teacher_count:response.data.teacher_count,
pages: page, pages:page,
limits: per_page, limits:per_page,
}) })
} }
this.setState({ this.setState({
teachersloading: false teachersloading:false
}) })
}).catch((error) => { }).catch((error) => {
this.setState({ this.setState({
teachers: [], teachers:[],
teacher_count: 0, teacher_count:0,
teachersloading: false teachersloading:false
}) })
}); });
} }
//学生排名 //学生排名
Studentranking = (page, per_page) => { Studentranking=(page,per_page)=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/student_shixun.json`; const url=`/colleges/${id}/student_shixun.json`;
this.setState({ this.setState({
studentsloading: true studentsloading:true
}) })
axios.get(url, { axios.get(url,{params:{
params: { page:page,
page: page, per_page:per_page,
per_page: per_page,
} }
}).then((response) => { }).then((response) => {
if (response === null || response === undefined) { if(response===null||response===undefined){
this.setState({ this.setState({
students: [], students:[],
student_count: 0, student_count:0,
}) })
return return
} }
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
students: [], students:[],
student_count: 0, student_count:0,
}) })
} else { }else{
if (response.data.status === -1) { if (response.data.status === -1){
this.setState({ this.setState({
students: [], students:[],
student_count: 0, student_count:0,
}) })
return return
} }
let students = []; let students=[];
if (response.data.teachers) { if(response.data.teachers){
for (let i = 0; i < response.data.teachers.length; i++) { for(let i=0;i<response.data.teachers.length;i++){
let datay = { let datay={
id: (i + (page - 1) * 10) + 1, id:(i+(page-1)*10)+1,
login: response.data.teachers[i].login, login: response.data.teachers[i].login,
name: response.data.teachers[i].name, // 姓名 name: response.data.teachers[i].name, // 姓名
student_id: response.data.teachers[i].student_id, student_id: response.data.teachers[i].student_id,
shixun_count: response.data.teachers[i].shixun_count, shixun_count:response.data.teachers[i].shixun_count,
study_shixun_count: response.data.teachers[i].study_shixun_count, study_shixun_count:response.data.teachers[i].study_shixun_count,
grade: response.data.teachers[i].grade, grade: response.data.teachers[i].grade,
experience: response.data.teachers[i].experience, experience: response.data.teachers[i].experience,
} }
@ -719,66 +717,66 @@ class College extends Component {
} }
} }
this.setState({ this.setState({
students: students, students:students,
student_count: response.data.student_count, student_count:response.data.student_count,
pagess: page, pagess:page,
limitss: per_page, limitss:per_page,
}) })
} }
this.setState({ this.setState({
studentsloading: false studentsloading:false
}) })
}).catch((error) => { }).catch((error) => {
this.setState({ this.setState({
students: [], students:[],
student_count: 0, student_count:0,
studentsloading: false studentsloading:false
}) })
}); });
} }
//在线实训情况 //在线实训情况
Onlinetraining = () => { Onlinetraining=()=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/shixun_chart_data.json`; const url=`/colleges/${id}/shixun_chart_data.json`;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
shixun_chart_data: [], shixun_chart_data:[],
shixun_chart_datanames: [] shixun_chart_datanames:[]
}) })
} else { }else{
if (response.data.status === -1) { if (response.data.status === -1){
this.setState({ this.setState({
shixun_chart_data: [], shixun_chart_data:[],
shixun_chart_datanames: [] shixun_chart_datanames:[]
}) })
return return
} }
this.setState({ this.setState({
shixun_chart_data: response.data.data, shixun_chart_data:response.data.data,
shixun_chart_datanames: response.data.names shixun_chart_datanames:response.data.names
}) })
} }
}).catch((error) => { }).catch((error) => {
this.setState({ this.setState({
shixun_chart_data: [], shixun_chart_data:[],
shixun_chart_datanames: [] shixun_chart_datanames:[]
}) })
}); });
} }
//最热测评 //最热测评
Hottest = () => { Hottest=()=>{
const id = this.props.match.params.id; const id =this.props.match.params.id;
const url = `/colleges/${id}/student_hot_evaluations.json`; const url=`/colleges/${id}/student_hot_evaluations.json`;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if (response.data.status === 403 || response.data.status === 401 || response.data.status === 500) { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
this.setState({ this.setState({
studentionsnames: [], studentionsnames: [],
studentionsvalues: [] studentionsvalues: []
}) })
} else { }else {
if (response.data.status === -1) { if (response.data.status === -1) {
this.setState({ this.setState({
studentionsnames: [], studentionsnames: [],
@ -799,34 +797,34 @@ class College extends Component {
}); });
} }
table1handleChange() { table1handleChange(){
} }
//塞选 //塞选
paginationonChange = (pageNumber) => { paginationonChange=(pageNumber)=>{
this.Classnumber(pageNumber, 10); this.Classnumber(pageNumber,10);
} }
paginationonChanges = (pageNumber) => { paginationonChanges=(pageNumber)=>{
this.Teacherranking(pageNumber, 10); this.Teacherranking(pageNumber,10);
} }
paginationonChangess = (pageNumber) => { paginationonChangess=(pageNumber)=>{
this.Studentranking(pageNumber, 10); this.Studentranking(pageNumber,10);
} }
render() { render() {
let { columns, page, limit, total_users, teacherranking, studentranking, let {columns,page,limit,total_users,teacherranking,studentranking,
teachers_count, students_count, courses_count, shixuns_count, shixun_report_count, shixun_time, courses, course_count, school, teachers, teachers_count,students_count, courses_count, shixuns_count,shixun_report_count,shixun_time,courses,course_count,school,teachers,
pages, limits, teacher_count, teachersloading, coursesloading, pagess, limitss, studentsloading, students, student_count, shixun_chart_data, pages,limits, teacher_count,teachersloading,coursesloading,pagess,limitss,studentsloading,students,student_count,shixun_chart_data,
shixun_chart_datanames, studentionsnames, studentionsvalues shixun_chart_datanames, studentionsnames,studentionsvalues
} = this.state; } = this.state;
return ( return (
<div className="newMain clearfix edu-back-eeee"> <div className="newMain clearfix edu-back-eeee">
<div className="yslstatistic-header intermediatecenter" > <div className="yslstatistic-header intermediatecenter" >
<div className="intermediatecenter " style={{ <div className="intermediatecenter " style={{
maxWidth: "1300px", maxWidth:"1300px",
width: "1300px", width:"1300px",
height: '100%', height: '100%',
}}> }}>
<div className="yslstatistic-header-title">{school}</div> <div className="yslstatistic-header-title">{school}</div>
@ -837,7 +835,7 @@ class College extends Component {
教师 教师
</div> </div>
<div className="yslstatistic-header-item-content"> <div className="yslstatistic-header-item-content">
{teachers_count ? teachers_count : 0} {teachers_count?teachers_count:0}
</div> </div>
</div> </div>
@ -846,7 +844,7 @@ class College extends Component {
学生 学生
</div> </div>
<div className="yslstatistic-header-item-content"> <div className="yslstatistic-header-item-content">
{students_count ? students_count : 0} {students_count?students_count:0}
</div> </div>
</div> </div>
@ -855,7 +853,7 @@ class College extends Component {
课堂 课堂
</div> </div>
<div className="yslstatistic-header-item-content"> <div className="yslstatistic-header-item-content">
{courses_count ? courses_count : 0} {courses_count?courses_count:0}
</div> </div>
</div> </div>
@ -864,7 +862,7 @@ class College extends Component {
共建实训 共建实训
</div> </div>
<div className="yslstatistic-header-item-content"> <div className="yslstatistic-header-item-content">
{shixuns_count ? shixuns_count : 0} {shixuns_count?shixuns_count:0}
</div> </div>
</div> </div>
{/*//教师2*/} {/*//教师2*/}
@ -875,7 +873,7 @@ class College extends Component {
</div> </div>
</div> </div>
</div> </div>
<div className={"educontent edu-back-white mt-4"} style={{ width: "1300px" }}> <div className={"educontent edu-back-white mt-4"} style={{width: "1300px"}}>
<p className="h4 linjibenshiyong"> <p className="h4 linjibenshiyong">
基本使用情况 基本使用情况
</p> </p>
@ -953,21 +951,20 @@ class College extends Component {
} }
</div> </div>
</div> </div>
</div>
{/*基本使用情况3结束*/} {/*基本使用情况3结束*/}
</div> </div>
<div className={"educontent edu-back-white mt-4 yinyin"} style={{ width: "1300px" }}> <div className={"educontent edu-back-white mt-4 yinyin"} style={{width: "1300px"}}>
<p className="statistic-label linjibenshiyong"> <p className="statistic-label linjibenshiyong">
课堂 课堂
</p> </p>
{ {
courses === null ? courses===null?
<div className="intermediatecenter" style={{ <div className="intermediatecenter" style={{
height: '500px' height:'500px'
}}> }}>
<Spin tip="正在加载..." /> <Spin tip="正在加载..."/>
</div> </div>
: :
@ -976,9 +973,9 @@ class College extends Component {
</NoneData> </NoneData>
: :
<div style={{ width: "1300px" }}> <div style={{width: "1300px"}}>
<div className={"justify break_full_word new_li edu-back-white"} <div className={"justify break_full_word new_li edu-back-white"}
style={{ minHeight: "480px" }}> style={{minHeight: "480px"}}>
<style>{` <style>{`
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot { .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
top: 72%;} top: 72%;}
@ -1015,10 +1012,10 @@ class College extends Component {
</div> </div>
</div> </div>
{ {
course_count >= 11 ? course_count>=11?
<div style={{ <div style={{
width: '100%', width:'100%',
padding: '40px' padding:'40px'
}}> }}>
<div className="edu-txt-center "> <div className="edu-txt-center ">
<Pagination showQuickJumper current={page} onChange={this.paginationonChange} <Pagination showQuickJumper current={page} onChange={this.paginationonChange}
@ -1027,7 +1024,7 @@ class College extends Component {
</div> </div>
</div> </div>
: "" :""
} }
</div> </div>
@ -1037,7 +1034,7 @@ class College extends Component {
</div> </div>
<div className={"educontent edu-back-white yinyin mt-4 sortinxdirection"} style={{ width: "1300px" }}> <div className={"educontent edu-back-white yinyin mt-4 sortinxdirection"} style={{width: "1300px"}}>
<div className=" verticallayout" style={{ <div className=" verticallayout" style={{
width: "63%" width: "63%"
}}> }}>
@ -1045,11 +1042,11 @@ class College extends Component {
教师排名 教师排名
</p> </p>
{ {
teachers === null ? teachers===null?
<div className="intermediatecenter" style={{ <div className="intermediatecenter" style={{
height: '500px' height:'500px'
}}> }}>
<Spin tip="正在加载..." /> <Spin tip="正在加载..."/>
</div> </div>
: :
@ -1059,7 +1056,7 @@ class College extends Component {
</NoneData> </NoneData>
: :
<div className={"justify break_full_word new_li edu-back-white "} <div className={"justify break_full_word new_li edu-back-white "}
style={{ minHeight: "480px" }}> style={{minHeight: "480px"}}>
<style>{` <style>{`
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot { .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
top: 72%;} top: 72%;}
@ -1122,11 +1119,11 @@ class College extends Component {
在线实训情况 在线实训情况
</p> </p>
{ {
shixun_chart_data === null ? shixun_chart_data===null?
<div className="intermediatecenter" style={{ <div className="intermediatecenter" style={{
height: '500px' height:'500px'
}}> }}>
<Spin tip="正在加载..." /> <Spin tip="正在加载..."/>
</div> </div>
: :
@ -1145,7 +1142,7 @@ class College extends Component {
</div> </div>
<div className={"educontent edu-back-white yinyin mt-4 sortinxdirection mb80"} style={{ width: "1300px" }}> <div className={"educontent edu-back-white yinyin mt-4 sortinxdirection mb80"} style={{width: "1300px"}}>
<div className=" verticallayout" style={{ <div className=" verticallayout" style={{
width: "63%" width: "63%"
}}> }}>
@ -1157,7 +1154,7 @@ class College extends Component {
<div className="intermediatecenter" style={{ <div className="intermediatecenter" style={{
height: '500px' height: '500px'
}}> }}>
<Spin tip="正在加载..." /> <Spin tip="正在加载..."/>
</div> </div>
: :
@ -1167,7 +1164,7 @@ class College extends Component {
</NoneData> </NoneData>
: :
<div className={"justify break_full_word new_li edu-back-white "} <div className={"justify break_full_word new_li edu-back-white "}
style={{ minHeight: "480px" }}> style={{minHeight: "480px"}}>
<style>{` <style>{`
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot { .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
top: 72%;} top: 72%;}
@ -1230,11 +1227,11 @@ class College extends Component {
最热评测 最热评测
</p> </p>
{ {
studentionsnames === null ? studentionsnames===null?
<div className="intermediatecenter" style={{ <div className="intermediatecenter" style={{
height: '500px' height:'500px'
}}> }}>
<Spin tip="正在加载..." /> <Spin tip="正在加载..."/>
</div> </div>
: :
@ -1256,6 +1253,7 @@ class College extends Component {
) )
} }
} }
export default SnackbarHOC()(TPMIndexHOC(College)); export default SnackbarHOC() (TPMIndexHOC ( College ));

@ -1,11 +1,3 @@
export {
getImageUrl as getImageUrl, getmyUrl as getmyUrl, getRandomNumber as getRandomNumber, getUrl as getUrl, publicSearchs as publicSearchs, getRandomcode as getRandomcode, getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl
, getUploadActionUrl as getUploadActionUrl, getUploadActionUrltwo as getUploadActionUrltwo, getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth
, getTaskUrlById as getTaskUrlById, TEST_HOST, htmlEncode as htmlEncode
} from './UrlTool';
export { default as setmiyah } from './Component';
export { default as queryString } from './UrlTool2';
export { getImageUrl as getImageUrl, getRandomNumber as getRandomNumber,getUrl as getUrl, publicSearchs as publicSearchs,getRandomcode as getRandomcode,getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl export { getImageUrl as getImageUrl, getRandomNumber as getRandomNumber,getUrl as getUrl, publicSearchs as publicSearchs,getRandomcode as getRandomcode,getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl
, getUploadActionUrl as getUploadActionUrl,getUploadActionUrltwo as getUploadActionUrltwo ,getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth , getUploadActionUrl as getUploadActionUrl,getUploadActionUrltwo as getUploadActionUrltwo ,getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth
@ -14,10 +6,6 @@ export { getImageUrl as getImageUrl, getRandomNumber as getRandomNumber,getUrl a
export {setmiyah as setmiyah} from './Component'; export {setmiyah as setmiyah} from './Component';
export { default as queryString } from './UrlTool2'; export { default as queryString } from './UrlTool2';
export {
trigger as trigger, on as on, off as off
, broadcastChannelPostMessage, broadcastChannelOnmessage
} from './EventUtil';
export { export {
trigger as trigger, on as on, off as off trigger as trigger, on as on, off as off
@ -26,17 +14,12 @@ export {
export { bytesToSize as bytesToSize } from './UnitUtil'; export { bytesToSize as bytesToSize } from './UnitUtil';
export {
markdownToHTML, uploadNameSizeSeperator, appendFileSizeToUploadFile, appendFileSizeToUploadFileAll, isImageExtension,
downloadFile, sortDirections
} from './TextUtil'
export { handleDateString, getNextHalfHourOfMoment, formatDuring } from './DateUtil' export { handleDateString, getNextHalfHourOfMoment, formatDuring } from './DateUtil'
export { export {
markdownToHTML, uploadNameSizeSeperator, appendFileSizeToUploadFile, appendFileSizeToUploadFileAll, isImageExtension, markdownToHTML, uploadNameSizeSeperator, appendFileSizeToUploadFile, appendFileSizeToUploadFileAll, isImageExtension,
downloadFile, sortDirections downloadFile, sortDirections
} from './TextUtil' } from './TextUtil'
export { handleDateString, getNextHalfHourOfMoment, formatDuring } from './DateUtil'
export { isDev as isDev, isMobile } from './Env' export { isDev as isDev, isMobile } from './Env'
@ -44,7 +27,6 @@ export { toStore as toStore, fromStore as fromStore } from './Store'
export { trace_collapse, trace, debug, info, warn, error, trace_c, debug_c, info_c, warn_c, error_c } from './LogUtil' export { trace_collapse, trace, debug, info, warn, error, trace_c, debug_c, info_c, warn_c, error_c } from './LogUtil'
export { trace_collapse, trace, debug, info, warn, error, trace_c, debug_c, info_c, warn_c, error_c } from './LogUtil'
export { export {
EDU_ADMIN, EDU_BUSINESS, EDU_SHIXUN_MANAGER, EDU_SHIXUN_MEMBER, EDU_CERTIFICATION_TEACHER EDU_ADMIN, EDU_BUSINESS, EDU_SHIXUN_MANAGER, EDU_SHIXUN_MEMBER, EDU_CERTIFICATION_TEACHER

Loading…
Cancel
Save