1405/02/14-add giftCards
This commit is contained in:
Vendored
-3
@@ -15,7 +15,6 @@ declare module '@vue/runtime-core' {
|
|||||||
ABadge: typeof import('ant-design-vue/es')['Badge']
|
ABadge: typeof import('ant-design-vue/es')['Badge']
|
||||||
AButton: typeof import('ant-design-vue/es')['Button']
|
AButton: typeof import('ant-design-vue/es')['Button']
|
||||||
ACard: typeof import('ant-design-vue/es')['Card']
|
ACard: typeof import('ant-design-vue/es')['Card']
|
||||||
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
|
||||||
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
|
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
|
||||||
ADivider: typeof import('ant-design-vue/es')['Divider']
|
ADivider: typeof import('ant-design-vue/es')['Divider']
|
||||||
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
||||||
@@ -35,7 +34,6 @@ declare module '@vue/runtime-core' {
|
|||||||
APagination: typeof import('ant-design-vue/es')['Pagination']
|
APagination: typeof import('ant-design-vue/es')['Pagination']
|
||||||
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
|
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
|
||||||
APopover: typeof import('ant-design-vue/es')['Popover']
|
APopover: typeof import('ant-design-vue/es')['Popover']
|
||||||
ARadio: typeof import('ant-design-vue/es')['Radio']
|
|
||||||
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
|
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
|
||||||
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
||||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||||
@@ -48,7 +46,6 @@ declare module '@vue/runtime-core' {
|
|||||||
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
||||||
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
||||||
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
||||||
AUpload: typeof import('ant-design-vue/es')['Upload']
|
|
||||||
BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default']
|
BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default']
|
||||||
BaseCard: typeof import('./src/core/components/BaseCard/index.ts')['default']
|
BaseCard: typeof import('./src/core/components/BaseCard/index.ts')['default']
|
||||||
BaseDatePicker: typeof import('./src/core/components/BaseDatePicker/index.ts')['default']
|
BaseDatePicker: typeof import('./src/core/components/BaseDatePicker/index.ts')['default']
|
||||||
|
|||||||
+3
-2
@@ -44,14 +44,15 @@ export function setupRoutes(permissionsKeys: string[], router?: Router) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterRoutesByApp(routes: RouteRecordRaw) {
|
function filterRoutesByApp(routes: RouteRecordRaw) {
|
||||||
if (!routes.children) return
|
if (!routes.children) return
|
||||||
routes.children = routes.children.filter((item) => {
|
routes.children = routes.children.filter((item) => {
|
||||||
|
|
||||||
if (item.name === 'discounts' && appName !== 'goldsun') return false
|
if (item.name === 'discounts' && appName !== 'goldsun') return false
|
||||||
if (item.name === 'banners' && appName !== 'garoosi') return false
|
if (item.name === 'banners' && appName !== 'garoosi') return false
|
||||||
if (item.name === 'authentication' && appName !== 'garoosi') return false
|
if (item.name === 'authentication' && appName !== 'garoosi') return false
|
||||||
if (item.name === 'giftCard' && appName !== 'garoosi') return false
|
if (item.name === 'giftCardMain' && appName !== 'garoosi') return false
|
||||||
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { RouteRecordRaw } from 'vue-router'
|
import type { RouteRecordRaw } from 'vue-router'
|
||||||
|
import {getConfigApp} from "@/utils/config";
|
||||||
|
|
||||||
const Orders: RouteRecordRaw = {
|
const Orders: RouteRecordRaw = {
|
||||||
name: 'giftCard',
|
name: 'giftCard',
|
||||||
@@ -10,7 +11,7 @@ const Orders: RouteRecordRaw = {
|
|||||||
permissionsKey: 'giftCard',
|
permissionsKey: 'giftCard',
|
||||||
title: 'کارت هدیه',
|
title: 'کارت هدیه',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
hideMenu: false,
|
hideMenu: getConfigApp('name')!='garoosi',
|
||||||
hideChildren: true,
|
hideChildren: true,
|
||||||
order: 7
|
order: 7
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user