+
+
+
+
+
+ + بنر صفحه اصلی +
+
+
+
+
+
+
+
+
+
+
+
+ diff --git a/.env b/.env index ba2e359..0f150e0 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ -VUE_APP_ROOT_URL="http://192.168.1.198:8000/api/v1/" \ No newline at end of file +VUE_APP_ROOT_URL="https://api.novinplast.org/api/v1/" +COLOR_ATTRIBUTE_ID = "1" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5442a81..9001ba9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,6 +39,7 @@ "form-wizard-vue3": "^1.1.0", "fslightbox": "^3.4.1", "is": "^3.3.0", + "jalaali-js": "^1.2.7", "jalali-moment": "^3.3.11", "jquery": "^3.7.1", "moment": "^2.30.1", @@ -64,6 +65,7 @@ "vue3-datepicker": "^0.4.0", "vue3-google-map": "^0.18.0", "vue3-persian-datetime-picker": "^1.2.2", + "vue3-select2-component": "^0.1.7", "vue3-toastify": "^0.2.5", "vuex": "^4.1.0", "yarn": "^1.22.21" @@ -11982,6 +11984,12 @@ "dev": true, "license": "MIT" }, + "node_modules/select2": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/select2/-/select2-4.0.13.tgz", + "integrity": "sha512-1JeB87s6oN/TDxQQYCvS5EFoQyvV6eYMZZ0AeA4tdFDYWN3BAGZ8npr17UBFddU0lgAt3H0yjX3X6/ekOj1yjw==", + "license": "MIT" + }, "node_modules/selfsigned": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz", @@ -13689,6 +13697,16 @@ "moment-jalaali": "^0.9.4" } }, + "node_modules/vue3-select2-component": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/vue3-select2-component/-/vue3-select2-component-0.1.7.tgz", + "integrity": "sha512-8UPZmFl02I47XwW+j8ICmHyAND8wfbavlvMrqh10wwdSVER1aF2kI9XCmfIrNlVQvxSbvc0mJjWQAHHSCW9dkw==", + "license": "MIT", + "dependencies": { + "jquery": "^3.3.1", + "select2": "^4.0.7-rc.0" + } + }, "node_modules/vue3-toastify": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/vue3-toastify/-/vue3-toastify-0.2.5.tgz", diff --git a/package.json b/package.json index d1a26aa..af77fb1 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "form-wizard-vue3": "^1.1.0", "fslightbox": "^3.4.1", "is": "^3.3.0", + "jalaali-js": "^1.2.7", "jalali-moment": "^3.3.11", "jquery": "^3.7.1", "moment": "^2.30.1", @@ -64,6 +65,7 @@ "vue3-datepicker": "^0.4.0", "vue3-google-map": "^0.18.0", "vue3-persian-datetime-picker": "^1.2.2", + "vue3-select2-component": "^0.1.7", "vue3-toastify": "^0.2.5", "vuex": "^4.1.0", "yarn": "^1.22.21" diff --git a/src/assets/custom/دسته بندی ها.png b/src/assets/custom/دسته بندی ها.png new file mode 100644 index 0000000..ed5c16a Binary files /dev/null and b/src/assets/custom/دسته بندی ها.png differ diff --git a/src/assets/custom/صفحه اصلی.png b/src/assets/custom/صفحه اصلی.png new file mode 100644 index 0000000..07a67b4 Binary files /dev/null and b/src/assets/custom/صفحه اصلی.png differ diff --git a/src/components/customSidebar.vue b/src/components/customSidebar.vue index 638e964..0bbb075 100644 --- a/src/components/customSidebar.vue +++ b/src/components/customSidebar.vue @@ -30,7 +30,6 @@ export default { const logoutUser = async () => { try { const result = await Swal.fire({ - title: "آیا مطمئن هستید؟", text: "شما از سیستم خارج خواهید شد.", icon: "warning", showCancelButton: true, @@ -51,6 +50,10 @@ export default { } }; + const gotoAccount = () => { + router.push({ name: "profile" }); + }; + onMounted(() => { updateLogo(); @@ -68,7 +71,7 @@ export default { }); }); - return { currentLogo, user, logoutUser }; + return { currentLogo, user, logoutUser, gotoAccount }; }, components: { ChevronDownIcon, @@ -134,7 +137,6 @@ export default { let collapses = document.querySelectorAll(".navbar-content .collapse"); collapses.forEach((collapse) => { - // Hide sibling collapses on `show.bs.collapse` collapse.addEventListener("show.bs.collapse", (e) => { e.stopPropagation(); let closestCollapse = collapse.parentElement.closest(".collapse"); @@ -246,6 +248,17 @@ export default { کاربران +
| آدرس | +استان | +شهر | +کد پستی | +عنوان | +تاریخ ایجاد | +|
|---|---|---|---|---|---|---|
+ + {{ addres.address.slice(0, 20) }}... +++ عرض جغرافیایی: + {{ addres.location.lat }} | طول جغرافیایی: + {{ addres.location.lng }} + + |
+ {{ addres.city }} | +{{ addres.town }} | +{{ addres.postcode }} | ++ + | ++ {{ addres.title }} + | +
+
+
+
|
+
هیچ آدرسی برای نمایش وجود ندارد.
+
+ | # | -Product Detail | -Categories | -Price | -Qty | -Brand | -Status | -
|---|---|---|---|---|---|---|
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| 5 | -
-
- Fitbit MX30 Smart Watch-(MX30- waterproof) watch - |
- Fashion, Watch | -$49.9 | -21 | -- - | -
-
-
- |
-
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R ) - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| 5 | -
-
- Fitbit MX30 Smart Watch-(MX30- waterproof) watch - |
- Fashion, Watch | -$49.9 | -21 | -- - | -
-
-
- |
-
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| 5 | -
-
- Fitbit MX30 Smart Watch-(MX30- waterproof) watch - |
- Fashion, Watch | -$49.9 | -21 | -- - | -
-
-
- |
-
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| # | +Product Detail | +Categories | +Price | +Qty | +Brand | +Status | +
|---|---|---|---|---|---|---|
| 7 | +
+
+ Apple Series 4 GPS A38 MM Space++ Apple Watch SE Smartwatch + + |
+ Electronics, Laptop | +$14.59 | +70 | ++ + | +
+
+
+ |
+
| 2 | +
+
+ Boat On-Ear Wireless++ Mic(Bluetooth 4.2, Rockerz 450R + + |
+ Electronics, Headphones | +$81.99 | +45 | ++ + | +
+
+
+ |
+
| 5 | +
+
+ Fitbit MX30 Smart Watch++ (MX30- waterproof) watch + + |
+ Fashion, Watch | +$49.9 | +21 | ++ + | +
+
+
+ |
+
| 7 | +
+
+ Apple Series 4 GPS A38 MM Space++ Apple Watch SE Smartwatch + + |
+ Electronics, Laptop | +$14.59 | +70 | ++ + | +
+
+
+ |
+
| 2 | +
+
+ Boat On-Ear Wireless++ Mic(Bluetooth 4.2, Rockerz 450R + + |
+ Electronics, Headphones | +$81.99 | +45 | ++ + | +
+
+
+ |
+
| 7 | +
+
+ Apple Series 4 GPS A38 MM Space++ Apple Watch SE Smartwatch + + |
+ Electronics, Laptop | +$14.59 | +70 | ++ + | +
+
+
+ |
+
| 2 | +
+
+ Boat On-Ear Wireless++ Mic(Bluetooth 4.2, Rockerz 450R ) + + |
+ Electronics, Headphones | +$81.99 | +45 | ++ + | +
+
+
+ |
+
| 7 | +
+
+ Apple Series 4 GPS A38 MM Space++ Apple Watch SE Smartwatch + + |
+ Electronics, Laptop | +$14.59 | +70 | ++ + | +
+
+
+ |
+
| 2 | +
+
+ Boat On-Ear Wireless++ Mic(Bluetooth 4.2, Rockerz 450R + + |
+ Electronics, Headphones | +$81.99 | +45 | ++ + | +
+
+
+ |
+
| 5 | +
+
+ Fitbit MX30 Smart Watch++ (MX30- waterproof) watch + + |
+ Fashion, Watch | +$49.9 | +21 | ++ + | +
+
+
+ |
+
| 7 | +
+
+ Apple Series 4 GPS A38 MM Space++ Apple Watch SE Smartwatch + + |
+ Electronics, Laptop | +$14.59 | +70 | ++ + | +
+
+
+ |
+
| 2 | +
+
+ Boat On-Ear Wireless++ Mic(Bluetooth 4.2, Rockerz 450R + + |
+ Electronics, Headphones | +$81.99 | +45 | ++ + | +
+
+
+ |
+
| 5 | +
+
+ Fitbit MX30 Smart Watch++ (MX30- waterproof) watch + + |
+ Fashion, Watch | +$49.9 | +21 | ++ + | +
+
+
+ |
+
| 7 | +
+
+ Apple Series 4 GPS A38 MM Space++ Apple Watch SE Smartwatch + + |
+ Electronics, Laptop | +$14.59 | +70 | ++ + | +
+
+
+ |
+
| 2 | +
+
+ Boat On-Ear Wireless++ Mic(Bluetooth 4.2, Rockerz 450R + + |
+ Electronics, Headphones | +$81.99 | +45 | ++ + | +
+
+
+ |
+
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| 7 | -
-
- Apple Series 4 GPS A38 MM Space-Apple Watch SE Smartwatch - |
- Electronics, Laptop | -$14.59 | -70 | -- - | -
-
-
- |
-
| 2 | -
-
- Boat On-Ear Wireless-Mic(Bluetooth 4.2, Rockerz 450R - |
- Electronics, Headphones | -$81.99 | -45 | -- - | -
-
-
- |
-
| 5 | -
-
- Fitbit MX30 Smart Watch-(MX30- waterproof) watch - |
- Fashion, Watch | -$49.9 | -21 | -- - | -
-
-
- |
-
+ + Apple Watch SE Smartwatch +
+
+
+
+ + Mic(Bluetooth 4.2, Rockerz 450R +
+
+
+
+ + Apple Watch SE Smartwatch +
+
+
+
+ + Mic(Bluetooth 4.2, Rockerz 450R +
+
+
+
+ + (MX30- waterproof) watch +
+
+
+ | عکس | +عنوان | +موقعیت | +نوع | +تاریخ ایجاد | +عملیات | +||
|---|---|---|---|---|---|---|---|
|
+ |
+ ندارد | + +
+
+
+
+ {{ call.text?.slice(0, 20) }}
+ {{ call.text?.length > 20 ? "..." : "" }}
+
+
+ |
+ {{ banner.location }} | +اسلایدر | +بنر | +{{ convertToJalali(banner.created_at) }} | +
+ |
+
| کاربر | +ایمیل | +موضوع | +پیام | +وضعیت | +تاریخ ایجاد | +عملیات | +|
|---|---|---|---|---|---|---|---|
| {{ call.name }} | +{{ call.email }} | ++ + | +{{ call?.subject }} | ++ + | ++ + {{ getStatusLabel(call.status) }} + + | + +{{ convertToJalali(call?.created_at) }} | + ++ + + + + | +
| نام | +دسته | +تاریخ ایجاد | +عملیات | +
|---|---|---|---|
| {{ attribute.title }} | ++ | {{ convertToJalali(attribute?.created_at) }} | ++ + + | +
| شناسه | +تاریخ ایحاد | +کد رهگیری | +وضعیت | +
|---|---|---|---|
| {{ order?.id }} | +{{ convertToJalali(order?.created_at) }} | +{{order?.tracking_code}} | +{{ order?.status }} | +
| # | +جزییات محصول | +تاریخ ایحاد | +قیمت عمده | +قیمت تک | +تعداد سفارش | +تعداد ارسال شده | +عنوان برند | +تصویر برند | +||
|---|---|---|---|---|---|---|---|---|---|---|
| 5 | +
+ {{ product?.product?.title }}++ {{ product.product.description.slice(0, 25) + }}{{ + product.product.description.length > 25 + ? "..." + : "" + }} + + |
+ {{ convertToJalali(product.created_at) }} | ++ {{ formatWithCommas(product?.product?.wholesale_price) }}تومان + | ++ + | ++ {{ formatWithCommas(product?.product?.retail_price) }} + | ++ + | +{{ product.count }} | +{{ product.send_count }} | ++ {{ product.product?.brand?.title }} + | +
+ |
+