mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-21 05:14:14 +00:00
Show marking message when empty input
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<el-input v-model="form.marking" :class="{ 'is-invalid': form.errors.has('marking') }" type="text" name="marking" placeholder="Marking Number">
|
||||
</el-input>
|
||||
<has-error :form="form" field="marking"/>
|
||||
<span>
|
||||
<span v-if="missingMarking()">
|
||||
* Please contact vendor to get your marking
|
||||
</span>
|
||||
</div>
|
||||
@@ -146,6 +146,10 @@ export default {
|
||||
} else {
|
||||
this.$router.push({ name: 'home' })
|
||||
}
|
||||
},
|
||||
missingMarking:function(){
|
||||
console.log(this.form.marking);
|
||||
return this.form.marking === undefined || this.form.marking === '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user