|
|
@@ -40,5 +40,21 @@ Ext.define('school.view.interaction.notice.SchoolNoticeController', {
|
|
|
view.setLoading(false);
|
|
|
school.util.BaseUtil.showErrorToast('发布失败: ' + e.message);
|
|
|
});
|
|
|
+ },
|
|
|
+
|
|
|
+ onNotifyClassComboExpand: function(combo) {
|
|
|
+ var classStore = Ext.StoreMgr.get('store_class');
|
|
|
+ if(classStore.getCount() === 0 || combo.store.getCount() === 2) {
|
|
|
+ combo.setLoading(true);
|
|
|
+ classStore.load(function(records) {
|
|
|
+ var classData = records.map(function(record) {
|
|
|
+ var name = record.get('clazz_grade') + ' | '+ record.get('clazz_name');
|
|
|
+ var value = record.get('clazz_id');
|
|
|
+ return {name: name, value: value};
|
|
|
+ });
|
|
|
+ combo.store.insert(2, classData);
|
|
|
+ combo.setLoading(false);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|