admins: college page modify

dev_aliyun_beta
p31729568 5 years ago
parent 4956404de7
commit 151a083cf3

@ -34,7 +34,7 @@ $(document).on('turbolinks:load', function() {
$.get('/colleges/' + schoolId + '/shixun_chart_data', function(data){ $.get('/colleges/' + schoolId + '/shixun_chart_data', function(data){
$statisticBody.find('.shixun-chart-loading').hide(); $statisticBody.find('.shixun-chart-loading').hide();
if (data.data.length > 0) { if (data.data.length > 0) {
$shixunChart.css('height', '400px').css('width', '400px'); $shixunChart.css('height', '400px').css('width', '100%');
initShixunChart(data.names, data.data); initShixunChart(data.names, data.data);
} else { } else {
$statisticBody.find('.shixun-chart-empty').show(); $statisticBody.find('.shixun-chart-empty').show();
@ -146,7 +146,7 @@ $(document).on('turbolinks:load', function() {
$.get('/colleges/' + schoolId + '/student_hot_evaluations', function(data){ $.get('/colleges/' + schoolId + '/student_hot_evaluations', function(data){
$statisticBody.find('.hot-chart-loading').hide(); $statisticBody.find('.hot-chart-loading').hide();
if (data.names.length > 0) { if (data.names.length > 0) {
$statisticBody.find('.hot-chart').css('height', '400px').css('width', '400px'); $statisticBody.find('.hot-chart').css('height', '400px').css('width', '100%');
initHotEvaluating(data.names.reverse(), data.values.reverse()); initHotEvaluating(data.names.reverse(), data.values.reverse());
} else { } else {
$statisticBody.find('.hot-chart-empty').show(); $statisticBody.find('.hot-chart-empty').show();

File diff suppressed because one or more lines are too long

@ -129134,7 +129134,7 @@ $(document).on('turbolinks:load', function() {
$.get('/colleges/' + schoolId + '/shixun_chart_data', function(data){ $.get('/colleges/' + schoolId + '/shixun_chart_data', function(data){
$statisticBody.find('.shixun-chart-loading').hide(); $statisticBody.find('.shixun-chart-loading').hide();
if (data.data.length > 0) { if (data.data.length > 0) {
$shixunChart.css('height', '400px').css('width', '400px'); $shixunChart.css('height', '400px').css('width', '100%');
initShixunChart(data.names, data.data); initShixunChart(data.names, data.data);
} else { } else {
$statisticBody.find('.shixun-chart-empty').show(); $statisticBody.find('.shixun-chart-empty').show();
@ -129246,7 +129246,7 @@ $(document).on('turbolinks:load', function() {
$.get('/colleges/' + schoolId + '/student_hot_evaluations', function(data){ $.get('/colleges/' + schoolId + '/student_hot_evaluations', function(data){
$statisticBody.find('.hot-chart-loading').hide(); $statisticBody.find('.hot-chart-loading').hide();
if (data.names.length > 0) { if (data.names.length > 0) {
$statisticBody.find('.hot-chart').css('height', '400px').css('width', '400px'); $statisticBody.find('.hot-chart').css('height', '400px').css('width', '100%');
initHotEvaluating(data.names.reverse(), data.values.reverse()); initHotEvaluating(data.names.reverse(), data.values.reverse());
} else { } else {
$statisticBody.find('.hot-chart-empty').show(); $statisticBody.find('.hot-chart-empty').show();

@ -109199,7 +109199,7 @@ $(document).on('turbolinks:load', function() {
$.get('/colleges/' + schoolId + '/shixun_chart_data', function(data){ $.get('/colleges/' + schoolId + '/shixun_chart_data', function(data){
$statisticBody.find('.shixun-chart-loading').hide(); $statisticBody.find('.shixun-chart-loading').hide();
if (data.data.length > 0) { if (data.data.length > 0) {
$shixunChart.css('height', '400px').css('width', '400px'); $shixunChart.css('height', '400px').css('width', '100%');
initShixunChart(data.names, data.data); initShixunChart(data.names, data.data);
} else { } else {
$statisticBody.find('.shixun-chart-empty').show(); $statisticBody.find('.shixun-chart-empty').show();
@ -109311,7 +109311,7 @@ $(document).on('turbolinks:load', function() {
$.get('/colleges/' + schoolId + '/student_hot_evaluations', function(data){ $.get('/colleges/' + schoolId + '/student_hot_evaluations', function(data){
$statisticBody.find('.hot-chart-loading').hide(); $statisticBody.find('.hot-chart-loading').hide();
if (data.names.length > 0) { if (data.names.length > 0) {
$statisticBody.find('.hot-chart').css('height', '400px').css('width', '400px'); $statisticBody.find('.hot-chart').css('height', '400px').css('width', '100%');
initHotEvaluating(data.names.reverse(), data.values.reverse()); initHotEvaluating(data.names.reverse(), data.values.reverse());
} else { } else {
$statisticBody.find('.hot-chart-empty').show(); $statisticBody.find('.hot-chart-empty').show();
Loading…
Cancel
Save