28 lines
614 B
JavaScript
28 lines
614 B
JavaScript
import ngModule from '../../module';
|
|
import Component from 'core/lib/component';
|
|
import './style.scss';
|
|
|
|
class Controller extends Component {
|
|
set department(value) {
|
|
this._department = value;
|
|
this.$.summary = null;
|
|
if (!value) return;
|
|
this.$.summary = this.department;
|
|
}
|
|
get department() {
|
|
return this._department;
|
|
}
|
|
|
|
get isHr() {
|
|
return this.aclService.hasAny(['hr']);
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnWorkerDepartmentSummary', {
|
|
template: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
department: '<'
|
|
}
|
|
});
|