Selaa lähdekoodia

making updates

master
unknown 10 kuukautta sitten
vanhempi
commit
449d7e8759
1 muutettua tiedostoa jossa 22 lisäystä ja 3 poistoa
  1. +22
    -3
      src/views/live-preview/pages/banners/addBanner.vue

+ 22
- 3
src/views/live-preview/pages/banners/addBanner.vue Näytä tiedosto

@@ -184,7 +184,11 @@
<label for="token">صفحه محصول</label> <label for="token">صفحه محصول</label>


<VueSelect <VueSelect
style="--vs-min-height: 48px; --vs-border-radius: 8px ; margin-top: 7px;"
style="
--vs-min-height: 48px;
--vs-border-radius: 8px;
margin-top: 7px;
"
v-model="selectedLandingProduct" v-model="selectedLandingProduct"
:options="formattedProducts" :options="formattedProducts"
placeholder="محصولی را انتخاب کنید" placeholder="محصولی را انتخاب کنید"
@@ -196,7 +200,7 @@


<BCol v-if="landingType === 'cat'" md="6"> <BCol v-if="landingType === 'cat'" md="6">
<div class="form-group"> <div class="form-group">
<label class="form-label">صفحه کدام دسته ؟</label>
<label class="form-label">صفحه کدام دسته</label>
<select <select
class="form-select" class="form-select"
aria-label="Default select example" aria-label="Default select example"
@@ -580,8 +584,11 @@ export default {
}); });
console.log(resp); console.log(resp);
loading.value = false; loading.value = false;

resetForm();
}) })
.catch((error) => { .catch((error) => {
loading.value = false;
console.log(error.response.message); console.log(error.response.message);
toast.error(`${error.response.data.message}`, { toast.error(`${error.response.data.message}`, {
position: "top-right", position: "top-right",
@@ -589,7 +596,19 @@ export default {
}); });
}); });
}; };

const resetForm = () => {
title.value = "";
selectedCatPage.value = "";
selectedBrandPage.value = "";
selectedLandingProduct.value = "";
selectedLandingCat.value = "";
selectedLoc.value = "";
pannel.value = "";
pageType.value = "";
landingType.value = "";
image.value = null;
loading.value = false;
};
return { return {
cats, cats,
errors, errors,


Ladataan…
Peruuta
Tallenna