webAcces guarda
This commit is contained in:
parent
8926299caa
commit
eab5af19b5
|
@ -2,13 +2,13 @@
|
|||
<vn-card>
|
||||
<vn-vertical pad-large>
|
||||
<vn-title>Web access</vn-title>
|
||||
<vn-check label="Web access enabled" field="web.account.active"></vn-check>
|
||||
<vn-textfield label="User" class="margin-medium-top" field="web.account.user" focus></vn-textfield>
|
||||
<vn-check label="Acceso Web" field="web.account.active"></vn-check>
|
||||
<vn-textfield label="Usuario" class="margin-medium-top" field="web.account.name" focus></vn-textfield>
|
||||
</vn-vertical>
|
||||
</vn-card>
|
||||
<vn-button-bar>
|
||||
<vn-submit label="Save"></vn-submit>
|
||||
<vn-button label="Change password" vn-dialog="vn-client-change-password"></vn-button>
|
||||
<vn-submit label="Guardar"></vn-submit>
|
||||
<vn-button label="Cambiar password" vn-dialog="vn-client-change-password"></vn-button>
|
||||
</vn-button-bar>
|
||||
</form>
|
||||
<vn-dialog-confirm object="web.account" object-old="web.accountOld" state="web.state"></vn-dialog-confirm>
|
||||
|
|
|
@ -15,7 +15,7 @@ export const COMPONENT = {
|
|||
this.submit = function() {
|
||||
if (!equalsObject(this.account, this.accountOld)) {
|
||||
this.client.modify = "WebAccess";
|
||||
$http.put(`/client/api/Accounts/${this.account.id}`, this.account).then(
|
||||
$http.put('/client/api/Accounts', this.account).then(
|
||||
json => {
|
||||
this.account = json.data;
|
||||
self.copyAccount();
|
||||
|
|
9
db.json
9
db.json
|
@ -9,7 +9,7 @@
|
|||
"Country": 3,
|
||||
"Province": 3,
|
||||
"Agency": 4,
|
||||
"Account": 15,
|
||||
"Account": 19,
|
||||
"ClientObservation": 1265
|
||||
},
|
||||
"models": {
|
||||
|
@ -53,9 +53,10 @@
|
|||
"3": "{\"name\":\"DHL\",\"id\":3}"
|
||||
},
|
||||
"Account": {
|
||||
"1": "{\"id\":1,\"password\":\"12\"}",
|
||||
"12": "{\"id\":12,\"name\":\"prueba12\",\"active\":true,\"user\":\"juanete\"}",
|
||||
"13": "{\"id\":13,\"name\":\"manu\",\"active\":false,\"user\":\"joselito\"}"
|
||||
"1": "{\"id\":1,\"password\":\"joselito\",\"name\":\"asdf\"}",
|
||||
"12": "{\"id\":12,\"name\":\"\",\"active\":true}",
|
||||
"14": "{\"id\":14,\"name\":\"us14\",\"active\":false}",
|
||||
"15": "{\"id\":15,\"name\":\"asdf\"}"
|
||||
},
|
||||
"ClientObservation": {
|
||||
"1258": "{\"text\":\"Nota de prueba 1\",\"creationDate\":\"2017-01-17T15:24:23.320Z\",\"client\":12,\"salesPerson\":\"user\",\"id\":1258}",
|
||||
|
|
Loading…
Reference in New Issue