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