webAccess sin error dialog
This commit is contained in:
parent
eab5af19b5
commit
8a3dcb4698
|
@ -8,13 +8,19 @@ export const COMPONENT = {
|
|||
controller: function($http, $stateParams) {
|
||||
this.address = {};
|
||||
$http.get(`/client/api/Addresses/${$stateParams.addressId}`).then(
|
||||
json => this.address = json.data
|
||||
json => {
|
||||
this.address = json.data;
|
||||
}
|
||||
);
|
||||
$http.get('/client/api/Agencies').then(
|
||||
json => this.agencies = json.data
|
||||
json => {
|
||||
this.agencies = json.data;
|
||||
}
|
||||
);
|
||||
$http.get('/client/api/Provinces').then(
|
||||
json => this.provinces = json.data
|
||||
json => {
|
||||
this.provinces = json.data;
|
||||
}
|
||||
);
|
||||
|
||||
this.submit = function() {
|
||||
|
|
5
db.json
5
db.json
|
@ -9,7 +9,7 @@
|
|||
"Country": 3,
|
||||
"Province": 3,
|
||||
"Agency": 4,
|
||||
"Account": 19,
|
||||
"Account": 20,
|
||||
"ClientObservation": 1265
|
||||
},
|
||||
"models": {
|
||||
|
@ -54,8 +54,7 @@
|
|||
},
|
||||
"Account": {
|
||||
"1": "{\"id\":1,\"password\":\"joselito\",\"name\":\"asdf\"}",
|
||||
"12": "{\"id\":12,\"name\":\"\",\"active\":true}",
|
||||
"14": "{\"id\":14,\"name\":\"us14\",\"active\":false}",
|
||||
"14": "{\"id\":14,\"active\":true,\"name\":\"f\"}",
|
||||
"15": "{\"id\":15,\"name\":\"asdf\"}"
|
||||
},
|
||||
"ClientObservation": {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "Address",
|
||||
"base": "PersistedModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "Agency",
|
||||
"base": "PersistedModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "Country",
|
||||
"base": "PersistedModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "PaymentMethod",
|
||||
"base": "PersistedModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "Province",
|
||||
"base": "PersistedModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "SalesPerson",
|
||||
"base": "PersistedModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "Account",
|
||||
"base": "PersistedModel",
|
||||
"validateUpsert": true,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "Number",
|
||||
|
|
Loading…
Reference in New Issue