|
|
@@ -34,15 +34,20 @@ Ext.define('school.view.home.InfoCard', {
|
|
|
|
|
|
Ext.apply(me, {
|
|
|
cards: {
|
|
|
- staff: {
|
|
|
- title: '职工人数',
|
|
|
+ student: {
|
|
|
+ title: '学生人数',
|
|
|
+ color: 'blue',
|
|
|
+ viewType: 'home-infocardlist-unauditcheckin',
|
|
|
+ },
|
|
|
+ teacher: {
|
|
|
+ title: '教职工人数',
|
|
|
color: 'yellow',
|
|
|
viewType: 'home-infocardlist-saleout',
|
|
|
},
|
|
|
- teacher: {
|
|
|
- title: '教师人数',
|
|
|
- color: 'purple',
|
|
|
- viewType: 'home-infocardlist-purchasein',
|
|
|
+ parent: {
|
|
|
+ title: '家长人数',
|
|
|
+ color: 'default',
|
|
|
+ viewType: 'home-infocardlist-unauditsaleout',
|
|
|
},
|
|
|
grade: {
|
|
|
title: '年级',
|
|
|
@@ -53,16 +58,6 @@ Ext.define('school.view.home.InfoCard', {
|
|
|
title: '班级',
|
|
|
color: 'pink',
|
|
|
viewType: 'home-infocardlist-recment',
|
|
|
- },
|
|
|
- student: {
|
|
|
- title: '学生人数',
|
|
|
- color: 'blue',
|
|
|
- viewType: 'home-infocardlist-unauditcheckin',
|
|
|
- },
|
|
|
- parent: {
|
|
|
- title: '家长人数',
|
|
|
- color: 'default',
|
|
|
- viewType: 'home-infocardlist-unauditsaleout',
|
|
|
}
|
|
|
},
|
|
|
userCls: 'x-info-card ' + me.userCls,
|
|
|
@@ -97,14 +92,7 @@ Ext.define('school.view.home.InfoCard', {
|
|
|
},
|
|
|
|
|
|
initCardItems: function() {
|
|
|
- this.addCardItems({
|
|
|
- staff: 39,
|
|
|
- teacher: 89,
|
|
|
- grade: 6,
|
|
|
- class: 36,
|
|
|
- student: 980,
|
|
|
- parent: 1783
|
|
|
- });
|
|
|
+ this.addCardItems({});
|
|
|
},
|
|
|
|
|
|
addCardItems: function(infoData) {
|