refs #5334 fix summary route
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-05-16 12:12:25 +02:00
parent 3dcdbe0223
commit d09889b08a
3 changed files with 10 additions and 27 deletions

View File

@ -1,19 +1,7 @@
<!-- <vn-descriptor-content
module="worker"
description="$ctrl.worker.firstName +' '+ $ctrl.worker.lastName"
<vn-descriptor-content
module="department"
description="$ctrl.department.name"
summary="$ctrl.$.summary">
<slot-before>
<div class="photo" text-center>
<img vn-id="photo"
ng-src="{{$root.imagePath('user', '520x520', $ctrl.worker.id)}}"
zoom-image="{{$root.imagePath('user', '1600x1600', $ctrl.worker.id)}}"
on-error-src/>
<vn-float-button ng-click="uploadPhoto.show('user', $ctrl.worker.id)"
icon="edit"
vn-visible-by="userPhotos">
</vn-float-button>
</div>
</slot-before>
<slot-menu>
<vn-item
ng-click="$ctrl.handleExcluded()"
@ -87,4 +75,4 @@
<!-- <vn-upload-photo
vn-id="uploadPhoto"
on-response="$ctrl.onUploadResponse()">
</vn-upload-photo> -->
</vn-upload-photo>

View File

@ -15,4 +15,6 @@
<vn-portal slot="menu">
<vn-left-menu></vn-left-menu>
</vn-portal>
<ui-view></ui-view>
<ui-view>
<vn-worker-department-index></vn-worker-department-index>
</ui-view>

View File

@ -7,7 +7,7 @@
"menus": {
"main": [
{"state": "worker.index", "icon": "icon-worker"},
{"state": "worker.department.index", "icon": "work"}
{"state": "worker.department", "icon": "work"}
],
"card": [
{"state": "worker.card.basicData", "icon": "settings"},
@ -120,21 +120,14 @@
}, {
"url": "/department?q",
"state": "worker.department",
"abstract": true,
"description":"Departments",
"component": "ui-view"
"component": "vn-worker-department"
}, {
"url": "/:id",
"state": "worker.department.card",
"component": "vn-worker-department-card",
"abstract": true,
"description": "Detail"
}, {
"url" : "/index",
"state": "worker.department.index",
"component": "vn-worker-department-index",
"description": "Department",
"acl": ["hr"]
}, {
"url" : "/summary",
"state": "worker.department.card.summary",