update customer search section reset and error message

This commit is contained in:
edmondlang
2023-01-15 23:45:42 +08:00
parent 28d5c77e72
commit 6b01118d1e
@@ -1,5 +1,5 @@
<template>
<div class="row m-b-20">
<div class="row m-b-20" @keyup.enter="submitSearch">
<div class="col">
<div class="row">
<div class="col">
@@ -17,7 +17,7 @@
</div>
<div class="col-12 col-md-auto d-flex align-items-center justify-content-center mt-2 mt-md-0">
<button type="button" class="btn btn-lg btn-primary fs-11 w-100 d-block mr-2 mr-md-0" @click="submitSearch()">Search</button>
<button type="button" class="btn btn-lg btn-secondary fs-11 w-100 d-block ml-2 ml-md-0" @click="resetSarch()">Reset</button>
<button type="button" class="btn btn-lg btn-secondary fs-11 w-100 d-block ml-2 ml-md-0" @click="resetSearch()">Reset</button>
</div>
</div>
</div>
@@ -62,6 +62,10 @@ export default {
else
this.message = 'Customer not found';
},
errorHandler(response){
if(response.payload.data == undefined)
this.message = 'Customer not found';
},
resetSearch() {
this.userCompany = null;
this.search = false;