新版学院统计调整

chromesetting
杨树林 5 years ago
parent 3130adbb31
commit e47eda0150

@ -19,25 +19,25 @@ function locationurl(list){
let hashTimeout let hashTimeout
// TODO 开发期多个身份切换 // TODO 开发期多个身份切换
let debugType ="" // let debugType =""
if (isDev) { // if (isDev) {
const _search = window.location.search; // const _search = window.location.search;
let parsed = {}; // let parsed = {};
if (_search) { // if (_search) {
parsed = queryString.parse(_search); // parsed = queryString.parse(_search);
} // }
debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : // debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
window.location.search.indexOf('debug=s') != -1 ? 'student' : // window.location.search.indexOf('debug=s') != -1 ? 'student' :
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' // window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
} // }
// 超管 // // 超管
// debugType="admin"; // // debugType="admin";
// 老师 // // 老师
//ebugType="teacher"; // //ebugType="teacher";
// 学生 // // 学生
// debugType="student"; // // debugType="student";
//
window._debugType = debugType; // window._debugType = debugType;
export function initAxiosInterceptors(props) { export function initAxiosInterceptors(props) {
initOnlineOfflineListener() initOnlineOfflineListener()

@ -1037,7 +1037,7 @@ class College extends Component {
<div className={"educontent edu-back-white yinyin mt-4 sortinxdirection"} style={{width: "1200px"}}> <div className={"educontent edu-back-white yinyin mt-4 sortinxdirection"} style={{width: "1200px"}}>
<div className=" verticallayout" style={{ <div className=" verticallayout" style={{
width: "65%" width: "63%"
}}> }}>
<p className="statistic-label ysllinjibenshiyong yinyin"> <p className="statistic-label ysllinjibenshiyong yinyin">
教师排名 教师排名
@ -1112,7 +1112,7 @@ class College extends Component {
</div> </div>
<div className="" style={{ <div className="" style={{
width: "35%" width: "37%"
}}><div className="yslslinjibenshiyong" style={{ }}><div className="yslslinjibenshiyong" style={{
height: "100%" height: "100%"
}}> }}>
@ -1145,7 +1145,7 @@ class College extends Component {
<div className={"educontent edu-back-white yinyin mt-4 sortinxdirection mb80"} style={{width: "1200px"}}> <div className={"educontent edu-back-white yinyin mt-4 sortinxdirection mb80"} style={{width: "1200px"}}>
<div className=" verticallayout" style={{ <div className=" verticallayout" style={{
width: "65%" width: "63%"
}}> }}>
<p className="statistic-label ysllinjibenshiyong yinyin "> <p className="statistic-label ysllinjibenshiyong yinyin ">
学生排名 学生排名
@ -1218,7 +1218,7 @@ class College extends Component {
</div> </div>
<div className="" style={{ <div className="" style={{
width: "35%" width: "37%"
}}> }}>
<div className="yslslinjibenshiyong" style={{ <div className="yslslinjibenshiyong" style={{

@ -13,12 +13,12 @@ function startechart(data,datanane){
tooltip : { tooltip : {
trigger: 'item', trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)" formatter: "{d}% <br/>"
}, },
legend: { legend: {
// orient: 'vertical', // orient: 'vertical',
// top: 'middle', // top: 'middle',
bottom: 40, bottom: 50,
left: 'center', left: 'center',
data: datanane data: datanane
}, },
@ -68,7 +68,7 @@ class Colleagechart extends Component {
<div> <div>
<div <div
style={{ width:'410px',height:'600px'}} style={{ width:'440px',height:'600px'}}
id="shixun_skill_chart"> id="shixun_skill_chart">
</div> </div>

@ -15,8 +15,8 @@ function startechart(names, values){
backgroundColor: '#fff', backgroundColor: '#fff',
grid: { grid: {
left: '3%', left: '3%',
right: '4%', right: '10%',
bottom: '10%', bottom: '15%',
containLabel: true containLabel: true
}, },
@ -133,7 +133,7 @@ class Colleagechartzu extends Component {
<div> <div>
<div <div
style={{ width:'410px',height:'600px'}} style={{ width:'440px',height:'600px'}}
id="shixun_skill_charts"> id="shixun_skill_charts">
</div> </div>

Loading…
Cancel
Save