This commit is contained in:
2019-04-03 23:22:49 +00:00
parent 4de7ed8a88
commit 8636fd8b8b
2 changed files with 10 additions and 4 deletions

View File

@@ -477,7 +477,10 @@ Here are all the API level error codes that can be returned by the API server:
return o.target == ref; return o.target == ref;
}); });
console.log("Removed:"); //if a target was hit then need to trigger validate again for it to remove the error message
console.log(m); if (m.length > 0) {
var ctrl = getControl(v, ref);
ctrl.errorMessages=[];
}
} }
}; };

View File

@@ -18,9 +18,10 @@
<v-flex xs12 sm6 lg4 xl3 px-2> <v-flex xs12 sm6 lg4 xl3 px-2>
<v-text-field <v-text-field
v-model="obj.name" v-model="obj.name"
clearable
:counter="255" :counter="255"
:label="this.$gzlocale.get('WidgetName')" :label="this.$gzlocale.get('WidgetName')"
:rules="[this.$gzv.Max255(this,'name')]" :rules="[this.$gzv.Max255(this,'name'),this.$gzv.Required(this,'name')]"
:error-messages="this.$gzv.ServerErrors(this,'name')" :error-messages="this.$gzv.ServerErrors(this,'name')"
ref="name" ref="name"
@change="Change('name')" @change="Change('name')"
@@ -29,10 +30,11 @@
<v-flex xs12 sm6 lg4 xl3 px-2> <v-flex xs12 sm6 lg4 xl3 px-2>
<v-text-field <v-text-field
v-model="obj.serial" v-model="obj.serial"
clearable
:counter="10" :counter="10"
:label="this.$gzlocale.get('WidgetSerial')" :label="this.$gzlocale.get('WidgetSerial')"
:rules="[this.$gzv.MaxLength(this,'serial',10)]" :rules="[this.$gzv.MaxLength(this,'serial',10)]"
:error-messages="this.$gzv.ServerErrors(this,'count')" :error-messages="this.$gzv.ServerErrors(this,'serial')"
ref="serial" ref="serial"
@change="Change('serial')" @change="Change('serial')"
></v-text-field> ></v-text-field>
@@ -40,6 +42,7 @@
<v-flex xs12 sm6 lg4 xl3 px-2> <v-flex xs12 sm6 lg4 xl3 px-2>
<v-text-field <v-text-field
v-model="obj.count" v-model="obj.count"
clearable
:counter="10" :counter="10"
:label="this.$gzlocale.get('WidgetCount')" :label="this.$gzlocale.get('WidgetCount')"
ref="count" ref="count"