2020-03-09 08:00:03 +00:00
|
|
|
import ngModule from '../../module';
|
|
|
|
import ModuleCard from 'salix/components/module-card';
|
|
|
|
|
|
|
|
class Controller extends ModuleCard {
|
|
|
|
reload() {
|
2023-11-30 11:20:05 +00:00
|
|
|
this.$http.get(`VnRoles/${this.$params.id}`)
|
2020-03-09 08:00:03 +00:00
|
|
|
.then(res => this.role = res.data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.vnComponent('vnRoleCard', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller
|
|
|
|
});
|