|
|
|
@@ -184,7 +184,11 @@ |
|
|
|
<label for="token">صفحه محصول</label> |
|
|
|
|
|
|
|
<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" |
|
|
|
:options="formattedProducts" |
|
|
|
placeholder="محصولی را انتخاب کنید" |
|
|
|
@@ -196,7 +200,7 @@ |
|
|
|
|
|
|
|
<BCol v-if="landingType === 'cat'" md="6"> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="form-label">صفحه کدام دسته ؟</label> |
|
|
|
<label class="form-label">صفحه کدام دسته</label> |
|
|
|
<select |
|
|
|
class="form-select" |
|
|
|
aria-label="Default select example" |
|
|
|
@@ -580,8 +584,11 @@ export default { |
|
|
|
}); |
|
|
|
console.log(resp); |
|
|
|
loading.value = false; |
|
|
|
|
|
|
|
resetForm(); |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
|
loading.value = false; |
|
|
|
console.log(error.response.message); |
|
|
|
toast.error(`${error.response.data.message}`, { |
|
|
|
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 { |
|
|
|
cats, |
|
|
|
errors, |
|
|
|
|