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 margin-medium>
|
||||||
<div style="max-width: 40em; margin: 0 auto;">
|
<div style="max-width: 40em; margin: 0 auto;">
|
||||||
<vn-card>
|
<vn-card>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
<vn-card margin-medium-top>
|
<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-card>
|
||||||
<vn-paging index="index" total="index.model.count"></vn-paging>
|
<vn-paging index="index" total="index.model.count"></vn-paging>
|
||||||
</div>
|
</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",
|
"base": "MyModel",
|
||||||
"validateUpsert": true,
|
"validateUpsert": true,
|
||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "Number",
|
|
||||||
"id": true,
|
"id": true,
|
||||||
"description": "Identifier"
|
"type": "Number",
|
||||||
|
"forceId": false
|
||||||
},
|
},
|
||||||
"date": {
|
"date": {
|
||||||
"type": "date"
|
"type": "Date"
|
||||||
|
},
|
||||||
|
"m3":{
|
||||||
|
"type": "Number"
|
||||||
|
},
|
||||||
|
"warehouseFk":{
|
||||||
|
"type": "Number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [
|
"acls": [
|
||||||
|
@ -25,7 +31,5 @@
|
||||||
"principalId": "root",
|
"principalId": "root",
|
||||||
"permission": "ALLOW"
|
"permission": "ALLOW"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"validations": [],
|
}
|
||||||
"methods": {}
|
|
||||||
}
|
|
|
@ -27,15 +27,5 @@
|
||||||
"password": "",
|
"password": "",
|
||||||
"connectTimeout": 20000,
|
"connectTimeout": 20000,
|
||||||
"acquireTimeout": 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": "",
|
"password": "",
|
||||||
"connectTimeout": 20000,
|
"connectTimeout": 20000,
|
||||||
"acquireTimeout": 20000
|
"acquireTimeout": 20000
|
||||||
},
|
|
||||||
"client": {
|
|
||||||
"name": "client",
|
|
||||||
"connector": "remote",
|
|
||||||
"url": "http://localhost:3002/api"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,9 +42,7 @@
|
||||||
"Account": {
|
"Account": {
|
||||||
"dataSource": "auth"
|
"dataSource": "auth"
|
||||||
},
|
},
|
||||||
"Route": {
|
"Delivery": {
|
||||||
"dataSource": "route",
|
"dataSource": "vn"
|
||||||
"public": true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue