@@ -189,30 +117,27 @@
new Vue({
el: '#LAY-app',
data: {
- trainingInstitutionNum:0,
- stationInstitutionNum:0,
+ registerCount:0,
+ trainingCount:0,
+ classPlanCount:0,
+ examCount:0,
examinationNum:0,
eChart0:null,
eChart1:null,
},
methods: {
- initTrainingInstitutionNum:function(){
+ initRegisterCount:function(){
var self = this;
- top.restAjax.get('api/indexcount/count-training-institution-num', {}, null, function(code, data) {
- self.trainingInstitutionNum = data.data['num'];
+ top.restAjax.get('api/indexcount/get-register-num', {}, null, function(code, data) {
+ self.registerCount = data['registerCount'];
+ self.trainingCount = data['trainingCount'];
+ self.classPlanCount = data['classPlanCount'];
+ self.examCount = data['examCount'];
self.$nextTick(function() {
- $('#trainingInstitutionNum').animateNumbers(self.trainingInstitutionNum);
- });
- }, function(code, data) {
- top.dialog.msg(data.msg);
- });
- },
- initStationInstitutionNum:function(){
- var self = this;
- top.restAjax.get('api/indexcount/count-station-institution-num', {}, null, function(code, data) {
- self.stationInstitutionNum = data.data['num'];
- self.$nextTick(function() {
- $('#stationInstitutionNum').animateNumbers(self.stationInstitutionNum);
+ $('#registerCount').animateNumbers(self.registerCount);
+ $('#trainingCount').animateNumbers(self.trainingCount);
+ $('#classPlanCount').animateNumbers(self.classPlanCount);
+ $('#examCount').animateNumbers(self.examCount);
});
}, function(code, data) {
top.dialog.msg(data.msg);
@@ -394,8 +319,7 @@
var self = this;
$('#eChart0').width($('#layu-col-md4-panel').width());
$('#eChart1').width($('#layu-col-md4-panel').width());
- self.initTrainingInstitutionNum();
- self.initStationInstitutionNum();
+ self.initRegisterCount();
self.initExaminationNum();
self.initFullCalendar();
self.initEChart0();