fix(gallery): add ImageGallery to property create/edit page and modernize gallery UI
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -6,6 +6,7 @@ import { CategoryService } from '@/service/CategoryService';
|
||||
import { PropertyService } from '@/service/PropertyService';
|
||||
import { PropertyStatusService } from '@/service/PropertyStatusService';
|
||||
import ImageUploader from '@/views/uikit/ImageUploader.vue';
|
||||
import ImageGallery from '@/views/uikit/ImageGallery.vue';
|
||||
import KiwiChips from '@/views/uikit/KiwiChips.vue';
|
||||
import MapComponent from '@/views/uikit/MapComponent.vue';
|
||||
import { UTMtoLatLon } from '@/utm';
|
||||
@@ -862,6 +863,10 @@ const saveProperty = async () => {
|
||||
<span>اسناد و مدارک تصویری / پیدیاف ملک</span>
|
||||
</div>
|
||||
<ImageUploader v-model="documentUrlsWithData" bucketName="documents" :maxFiles="10" />
|
||||
<div v-if="documentUrlsWithData && documentUrlsWithData.length > 0" class="pt-2">
|
||||
<label class="block text-xs font-semibold text-surface-600 dark:text-surface-400 mb-2">فایلها و اسناد بارگذاریشده ({{ documentUrlsWithData.length }} مورد)</label>
|
||||
<ImageGallery v-model="documentUrlsWithData" galleryId="propertyDocumentsGallery" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -900,6 +905,10 @@ const saveProperty = async () => {
|
||||
<span>تصاویر ملک</span>
|
||||
</div>
|
||||
<ImageUploader v-model="mainImageUrlsWithData" bucketName="properties" :maxFiles="10" />
|
||||
<div v-if="mainImageUrlsWithData && mainImageUrlsWithData.length > 0" class="pt-2">
|
||||
<label class="block text-xs font-semibold text-surface-600 dark:text-surface-400 mb-2">گالری تصاویر ({{ mainImageUrlsWithData.length }} مورد)</label>
|
||||
<ImageGallery v-model="mainImageUrlsWithData" galleryId="propertyMainImagesGallery" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user