entry log
This commit is contained in:
parent
2accd8fa3b
commit
0d23a3894f
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"name": "Entry",
|
||||
"base": "VnModel",
|
||||
"log": {
|
||||
"model":"EntryLog"
|
||||
},
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "entry"
|
||||
|
|
|
@ -6,3 +6,4 @@ import './search-panel';
|
|||
import './descriptor';
|
||||
import './card';
|
||||
import './summary';
|
||||
import './log';
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<vn-log url="EntryLogs" origin-id="$ctrl.$stateParams.id"></vn-log>
|
|
@ -0,0 +1,15 @@
|
|||
import ngModule from '../module';
|
||||
|
||||
class Controller {
|
||||
constructor($scope, $stateParams) {
|
||||
this.$scope = $scope;
|
||||
this.$stateParams = $stateParams;
|
||||
}
|
||||
}
|
||||
|
||||
Controller.$inject = ['$scope', '$stateParams'];
|
||||
|
||||
ngModule.component('vnEntryLog', {
|
||||
template: require('./index.html'),
|
||||
controller: Controller,
|
||||
});
|
|
@ -9,6 +9,7 @@
|
|||
{"state": "entry.index", "icon": "icon-entry"}
|
||||
],
|
||||
"card": [
|
||||
{"state": "travel.card.log", "icon": "history"},
|
||||
]
|
||||
},
|
||||
"routes": [
|
||||
|
@ -36,6 +37,11 @@
|
|||
"params": {
|
||||
"entry": "$ctrl.entry"
|
||||
}
|
||||
}, {
|
||||
"url" : "/log",
|
||||
"state": "entry.card.log",
|
||||
"component": "vn-entry-log",
|
||||
"description": "Log"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue