2023-04-11 12:57:56 +00:00
|
|
|
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: {
|
2023-08-30 10:48:57 +00:00
|
|
|
fields: ['id'],
|
2023-04-11 12:57:56 +00:00
|
|
|
include: {
|
|
|
|
relation: 'user',
|
|
|
|
scope: {
|
|
|
|
fields: ['nickname']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
};
|
|
|
|
}
|
|
|
|
onSubmit() {
|
|
|
|
this.$.watcher.submit()
|
|
|
|
.then(() => this.$state.reload());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.vnComponent('vnClientCreditManagement', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|