routes change model and first look
This commit is contained in:
parent
1bc3a0bdd7
commit
eeda5b45fd
|
@ -1,4 +1,4 @@
|
|||
<<mg-ajax path="/client/api/Clients/filter" options="mgIndex"></mg-ajax>
|
||||
<mg-ajax path="/route/api/Deliveries" options="mgIndex"></mg-ajax>
|
||||
<div margin-medium>
|
||||
<div style="max-width: 40em; margin: 0 auto;">
|
||||
<vn-card>
|
||||
|
@ -13,7 +13,7 @@
|
|||
</vn-horizontal>
|
||||
</vn-card>
|
||||
<vn-card margin-medium-top>
|
||||
<vn-item-route ng-repeat="route in index.model.instances" title="View Route" client="route"></vn-item-route>
|
||||
<vn-item-route ng-repeat="route in index.model" title="View Route" route="route"></vn-item-route>
|
||||
</vn-card>
|
||||
<vn-paging index="index" total="index.model.count"></vn-paging>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<a ui-sref="routeCard.basicData({ id: {{$ctrl.route.id}} })" pad-medium border-solid-bottom>
|
||||
<vn-horizontal>
|
||||
<vn-one>
|
||||
<vn-vertical>
|
||||
<vn-one>
|
||||
<span translate>ID_RUTA</span>:
|
||||
<strong>{{$ctrl.route.id}}</strong>
|
||||
</vn-one>
|
||||
</vn-vertical>
|
||||
</vn-one>
|
||||
<vn-none>
|
||||
<vn-icon icon="print"></vn-icon>
|
||||
</vn-none>
|
||||
</vn-horizontal>
|
||||
</a>
|
|
@ -0,0 +1,8 @@
|
|||
import ngModule from '../module';
|
||||
|
||||
ngModule.component('vnItemRoute', {
|
||||
template: require('./item-route.html'),
|
||||
bindings: {
|
||||
route: '<'
|
||||
}
|
||||
});
|
|
@ -1,15 +1,21 @@
|
|||
{
|
||||
"name": "Route",
|
||||
"name": "Delivery",
|
||||
"base": "MyModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
"id": true,
|
||||
"description": "Identifier"
|
||||
"type": "Number",
|
||||
"forceId": false
|
||||
},
|
||||
"date": {
|
||||
"type": "date"
|
||||
"type": "Date"
|
||||
},
|
||||
"m3":{
|
||||
"type": "Number"
|
||||
},
|
||||
"warehouseFk":{
|
||||
"type": "Number"
|
||||
}
|
||||
},
|
||||
"acls": [
|
||||
|
@ -25,7 +31,5 @@
|
|||
"principalId": "root",
|
||||
"permission": "ALLOW"
|
||||
}
|
||||
],
|
||||
"validations": [],
|
||||
"methods": {}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -27,15 +27,5 @@
|
|||
"password": "",
|
||||
"connectTimeout": 20000,
|
||||
"acquireTimeout": 20000
|
||||
},
|
||||
"client": {
|
||||
"name": "client",
|
||||
"connector": "remote",
|
||||
"url": "http://localhost:3002/api"
|
||||
},
|
||||
"route": {
|
||||
"name": "route",
|
||||
"connector": "remote",
|
||||
"url": "http://localhost:3004/api"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,10 +27,5 @@
|
|||
"password": "",
|
||||
"connectTimeout": 20000,
|
||||
"acquireTimeout": 20000
|
||||
},
|
||||
"client": {
|
||||
"name": "client",
|
||||
"connector": "remote",
|
||||
"url": "http://localhost:3002/api"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,9 +42,7 @@
|
|||
"Account": {
|
||||
"dataSource": "auth"
|
||||
},
|
||||
"Route": {
|
||||
"dataSource": "route",
|
||||
"public": true
|
||||
"Delivery": {
|
||||
"dataSource": "vn"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue