store 3
This commit is contained in:
@@ -1,36 +1,13 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import { getConfigApp, isStoreApp } from '@/utils/config'
|
||||
|
||||
const Orders: RouteRecordRaw = {
|
||||
/** ریدایرکت آدرس قدیمی — منو زیر پیکربندی است */
|
||||
const GiftCard: RouteRecordRaw = {
|
||||
name: 'giftCard',
|
||||
path: '/giftCard',
|
||||
component: () => import('@core/layouts/BasicLayout.vue'),
|
||||
redirect: { name: 'giftCardMain' },
|
||||
meta: {
|
||||
icon: 'vuesax-linear:gift',
|
||||
permissionsKey: 'giftCard',
|
||||
title: isStoreApp() ? 'کارت هدیه و تخفیف' : 'کارت هدیه',
|
||||
disabled: false,
|
||||
hideMenu: !isStoreApp() && getConfigApp('name') != 'garoosi',
|
||||
hideChildren: true,
|
||||
order: 7
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'giftCardMain',
|
||||
path: '',
|
||||
component: () => import('@/pages/menuPages/giftCards/index.vue'),
|
||||
meta: {
|
||||
permissionsKey: 'project',
|
||||
icon: 'vuesax-linear:empty-wallet-time',
|
||||
order: 3,
|
||||
title: isStoreApp() ? 'کارت هدیه و تخفیف' : 'کارت هدیه',
|
||||
disabled: false,
|
||||
hideMenu: false
|
||||
//hideChildren: false
|
||||
}
|
||||
}
|
||||
]
|
||||
hideMenu: true
|
||||
}
|
||||
}
|
||||
|
||||
export default Orders
|
||||
export default GiftCard
|
||||
|
||||
@@ -47,6 +47,16 @@ const Products: RouteRecordRaw = {
|
||||
icon: 'vuesax-linear:save-2',
|
||||
title: 'بایگانی'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'productsMain_categories',
|
||||
path: 'categories',
|
||||
component: () => import('@/pages/menuPages/products/categories/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:category',
|
||||
title: 'دستهبندیها',
|
||||
hideMenu: true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import { getConfigApp, isStoreApp } from '@/utils/config'
|
||||
const Setting: RouteRecordRaw = {
|
||||
name: 'settings',
|
||||
path: '/settings',
|
||||
@@ -62,6 +61,27 @@ const Setting: RouteRecordRaw = {
|
||||
title: 'هشدار قیمت'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'smsMain',
|
||||
path: 'sms',
|
||||
component: () => import('@/pages/menuPages/sms/index.vue'),
|
||||
meta: {
|
||||
permissionsKey: 'sms',
|
||||
icon: 'vuesax-linear:sms',
|
||||
title: 'پیامکها'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'giftCardMain',
|
||||
path: 'giftCard',
|
||||
component: () => import('@/pages/menuPages/giftCards/index.vue'),
|
||||
meta: {
|
||||
permissionsKey: 'project',
|
||||
icon: 'vuesax-linear:gift',
|
||||
title: 'کارت هدیه',
|
||||
hideMenu: true
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'discounts',
|
||||
path: 'discounts',
|
||||
@@ -70,7 +90,7 @@ const Setting: RouteRecordRaw = {
|
||||
permissionsKey: 'discounts',
|
||||
icon: 'vuesax-linear:discount-shape',
|
||||
title: 'تخفیفات',
|
||||
hideMenu: isStoreApp() || getConfigApp('name') !== 'goldsun'
|
||||
hideMenu: true
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -90,7 +110,7 @@ const Setting: RouteRecordRaw = {
|
||||
meta: {
|
||||
icon: 'vuesax-linear:image',
|
||||
title: 'بنرها',
|
||||
hideMenu: getConfigApp('name') !== "garoosi"
|
||||
hideMenu: true
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1,35 +1,13 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
|
||||
const Orders: RouteRecordRaw = {
|
||||
/** ریدایرکت آدرس قدیمی — منو زیر پیکربندی است */
|
||||
const Sms: RouteRecordRaw = {
|
||||
name: 'sms',
|
||||
path: '/sms',
|
||||
component: () => import('@core/layouts/BasicLayout.vue'),
|
||||
redirect: { name: 'smsMain' },
|
||||
meta: {
|
||||
icon: 'vuesax-linear:sms',
|
||||
permissionsKey: 'sms',
|
||||
title: 'پیامک ها',
|
||||
disabled: false,
|
||||
hideMenu: false,
|
||||
hideChildren: true,
|
||||
order: 9
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'smsMain',
|
||||
path: '',
|
||||
component: () => import('@/pages/menuPages/sms/index.vue'),
|
||||
meta: {
|
||||
permissionsKey: 'sms',
|
||||
icon: 'vuesax-linear:setting',
|
||||
order: 3,
|
||||
title: 'پیامک ها',
|
||||
disabled: false,
|
||||
hideMenu: false
|
||||
//hideChildren: false
|
||||
}
|
||||
}
|
||||
]
|
||||
hideMenu: true
|
||||
}
|
||||
}
|
||||
|
||||
export default Orders
|
||||
export default Sms
|
||||
|
||||
Reference in New Issue
Block a user