|
|
@ -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();
|