This commit is contained in:
2020-02-07 22:08:59 +00:00
parent b2daa8b0d3
commit 44762e84a5
3 changed files with 8 additions and 41 deletions

View File

@@ -23,7 +23,6 @@
prepend-icon="fa-user"
label="User"
autofocus
required
clearable
autocomplete="off"
autocorrect="off"
@@ -41,7 +40,6 @@
prepend-icon="fa-key"
label="Password"
type="password"
required
clearable
:error="errorBadCreds"
v-on:keyup.enter="login"

View File

@@ -70,7 +70,6 @@
ref="count"
:rules="[form().integerValid(this, 'count')]"
:error-messages="form().serverErrors(this, 'count')"
required
@change="onChange('count')"
type="number"
></v-text-field>
@@ -88,10 +87,12 @@
:readonly="this.formState.readOnly"
:label="lt('WidgetDollarAmount')"
ref="dollarAmount"
required
:rules="[form().decimalValid(this, 'dollarAmount')]"
:rules="[
form().decimalValid(this, 'dollarAmount'),
form().required(this, 'dollarAmount')
]"
:error-messages="form().serverErrors(this, 'dollarAmount')"
@change="onChange('dollarAmount')"
@input="onChange('dollarAmount')"
></gz-currency>
</v-col>
@@ -130,7 +131,6 @@
:label="lt('Active')"
ref="active"
:error-messages="form().serverErrors(this, 'active')"
required
@change="onChange('active')"
></v-checkbox>
</v-col>
@@ -151,7 +151,6 @@
ref="roles"
:rules="[form().integerValid(this, 'roles')]"
:error-messages="form().serverErrors(this, 'roles')"
required
@change="onChange('roles')"
></v-select>
</v-col>
@@ -416,7 +415,6 @@ export default {
},
onChange(ref) {
if (!this.formState.loading && !this.formState.readOnly) {
console.log("Onchange: " + ref);
window.$gz.form.onChange(this, ref);
}
},
@@ -447,7 +445,7 @@ export default {
window.$gz.form.setErrorBoxErrors(vm);
} else {
vm.obj = res.data;
console.log("GetData dollarAmount:" + res.data.dollarAmount);
//Update the form status
window.$gz.form.setFormState({
vm: vm,