33 lines
818 B
JavaScript
33 lines
818 B
JavaScript
import ngModule from '../module';
|
|
import Section from 'salix/components/section';
|
|
|
|
export default class Controller extends Section {
|
|
constructor($element, $) {
|
|
super($element, $);
|
|
|
|
this.filter = {
|
|
include: [{
|
|
relation: 'worker',
|
|
scope: {
|
|
fields: ['id'],
|
|
include: {
|
|
relation: 'user',
|
|
scope: {
|
|
fields: ['nickname']
|
|
}
|
|
}
|
|
}
|
|
}],
|
|
};
|
|
}
|
|
onSubmit() {
|
|
this.$.watcher.submit()
|
|
.then(() => this.$state.reload());
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnClientCreditManagement', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|