Shaun Chyxion 4e94e2187e bug fixes
2017-07-04 23:35:27 +08:00

25 lines
678 B
JavaScript

import Ember from 'ember';
import BaseListRoute from './../base-list';
export default BaseListRoute.extend({
breadcrumbs: [{text: '客户列表'}],
actions: {
sort(col) {
Ember.Logger.info('sort: ', col);
}
},
setupController(controller) {
let me = this;
me._super(...arguments);
controller.set('tableOptions', {
showId: true,
showName: true,
showAll: Ember.computed.and('showId', 'showName'),
showAllChanged: Ember.observer('showAll', function() {
console.log('show all changed: ', this);
})
});
},
});