salix/modules/worker/front/department/summary/index.js

28 lines
614 B
JavaScript
Raw Normal View History

2023-05-16 06:54:54 +00:00
import ngModule from '../../module';
2023-05-29 12:46:39 +00:00
import Component from 'core/lib/component';
2023-07-04 07:57:16 +00:00
import './style.scss';
2023-05-15 08:43:06 +00:00
2023-05-29 12:46:39 +00:00
class Controller extends Component {
2023-05-15 11:15:33 +00:00
set department(value) {
this._department = value;
2023-05-29 12:46:39 +00:00
this.$.summary = null;
2023-05-15 08:43:06 +00:00
if (!value) return;
2023-06-22 13:00:59 +00:00
this.$.summary = this.department;
2023-05-29 12:46:39 +00:00
}
get department() {
return this._department;
2023-05-15 08:43:06 +00:00
}
get isHr() {
return this.aclService.hasAny(['hr']);
}
}
2023-05-29 12:46:39 +00:00
ngModule.component('vnWorkerDepartmentSummary', {
2023-05-15 08:43:06 +00:00
template: require('./index.html'),
controller: Controller,
bindings: {
2023-05-29 12:46:39 +00:00
department: '<'
2023-05-15 08:43:06 +00:00
}
});