Commit df1e88c0 by zhuzhequan

应用中心

parent 77287ba0
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,6 +6,7 @@ import LoginPage from '@/views/LoginPage.vue' ...@@ -6,6 +6,7 @@ import LoginPage from '@/views/LoginPage.vue'
import menuPage from '@/views/menu.vue' import menuPage from '@/views/menu.vue'
import TaskManage from '@/views/taskManage/index.vue' import TaskManage from '@/views/taskManage/index.vue'
import HomePage from '@/views/homePage/index.vue' import HomePage from '@/views/homePage/index.vue'
export const DEFAULT_DASHBOARD = 'home' export const DEFAULT_DASHBOARD = 'home'
Vue.use(VueRouter) Vue.use(VueRouter)
...@@ -14,7 +15,7 @@ const routes = [ ...@@ -14,7 +15,7 @@ const routes = [
{ {
path: '/login', path: '/login',
name: 'login', name: 'login',
component: LoginPage, component: LoginPage
}, },
{ {
...@@ -27,110 +28,118 @@ const routes = [ ...@@ -27,110 +28,118 @@ const routes = [
path: '/saas/home', path: '/saas/home',
name: 'home', name: 'home',
component: HomePage, component: HomePage,
meta: { title: '首页' }, meta: { title: '首页' }
}, },
{ {
path: '/saas/manage', path: '/saas/manage',
name: 'saasManage', name: 'saasManage',
meta: { title: 'ERP管理' }, meta: { title: 'ERP管理' },
component: SaasManage, component: SaasManage
}, },
{ {
path: '/saas/menu', path: '/saas/menu',
component: menuPage, component: menuPage,
name: 'saasMenu', name: 'saasMenu',
meta: { title: '菜单管理' }, meta: { title: '菜单管理' }
}, },
{ {
path: '/saas/taskManage', path: '/saas/taskManage',
component: TaskManage, component: TaskManage,
name: 'taskManage', name: 'taskManage',
meta: { title: '工单管理' }, meta: { title: '工单管理' }
}, },
{ {
path: '/saas/user', path: '/saas/user',
component: () => import('@/views/system/users.vue'), component: () => import('@/views/system/users.vue'),
name: 'system_user', name: 'system_user',
meta: { title: '用户管理' }, meta: { title: '用户管理' }
}, },
{ {
path: '/saas/currency', path: '/saas/currency',
component: () => import('@/views/basics/currency.vue'), component: () => import('@/views/basics/currency.vue'),
name: 'basics_currency', name: 'basics_currency',
meta: { title: '汇率币种' }, meta: { title: '汇率币种' }
}, },
{ {
path: '/saas/timed_task', path: '/saas/timed_task',
component: () => import('@/views/system/timed_task.vue'), component: () => import('@/views/system/timed_task.vue'),
name: 'system_timed_task', name: 'system_timed_task',
meta: { title: '定时任务' }, meta: { title: '定时任务' }
}, },
{ {
path: '/saas/announceManage', path: '/saas/announceManage',
component: () => import('@/views/system/announceManage.vue'), component: () => import('@/views/system/announceManage.vue'),
name: 'system_announce_manage', name: 'system_announce_manage',
meta: { title: '公告管理' }, meta: { title: '公告管理' }
}, },
{ {
path: '/saas/countryCode', path: '/saas/countryCode',
component: () => import('@/views/system/countryCode.vue'), component: () => import('@/views/system/countryCode.vue'),
name: 'system_countryCode', name: 'system_countryCode',
meta: { title: '国家代码' }, meta: { title: '国家代码' }
}, },
{ {
path: '/saas/abbreviation', path: '/saas/abbreviation',
component: () => import('@/views/system/abbreviation.vue'), component: () => import('@/views/system/abbreviation.vue'),
name: 'system_abbreviation', name: 'system_abbreviation',
meta: { title: '州省简称' }, meta: { title: '州省简称' }
}, },
{ {
path: '/saas/management', path: '/saas/management',
component: () => import('@/views/system/management.vue'), component: () => import('@/views/system/management.vue'),
name: 'system_management', name: 'system_management',
meta: { title: '客户管理' }, meta: { title: '客户管理' }
}, },
{ {
path: '/saas/logistics/transporters', path: '/saas/logistics/transporters',
component: () => import('@/views/system/transporters.vue'), component: () => import('@/views/system/transporters.vue'),
name: 'system_transporters', name: 'system_transporters',
meta: { title: '运输商列表' }, meta: { title: '运输商列表' }
}, },
{ {
path: '/saas/category-style', path: '/saas/category-style',
component: () => import('@/views/system/category-style.vue'), component: () => import('@/views/system/category-style.vue'),
name: 'system_category_style', name: 'system_category_style',
meta: { title: '类别风格' }, meta: { title: '类别风格' }
}, },
{ {
path: '/saas/sku-sort', path: '/saas/sku-sort',
component: () => import('@/views/system/sku-sort.vue'), component: () => import('@/views/system/sku-sort.vue'),
name: 'system_sku-sort', name: 'system_sku-sort',
meta: { meta: {
title: '属性类管理', title: '属性类管理'
}, }
}, },
{ {
path: '/saas/sku-manage', path: '/saas/sku-manage',
component: () => import('@/views/system/sku-manage.vue'), component: () => import('@/views/system/sku-manage.vue'),
name: 'system_sku-manage', name: 'system_sku-manage',
meta: { meta: {
title: '属性值管理', title: '属性值管理'
}, }
},
{
path: '/saas/app',
component: () => import('@/views/system/app.vue'),
name: 'system_app',
meta: {
title: '应用中心'
}
}, },
{ {
path: '/operation/lossOrder', path: '/operation/lossOrder',
component: () => import('@/views/operation/lossOrder/index.vue'), component: () => import('@/views/operation/lossOrder/index.vue'),
name: 'system_management', name: 'system_management',
meta: { title: '丢单管理' }, meta: { title: '丢单管理' }
}, }
], ]
}, }
] ]
const router = new VueRouter({ const router = new VueRouter({
mode: 'history', mode: 'history',
base: process.env.BASE_URL, base: process.env.BASE_URL,
routes, routes
}) })
export default router export default router
...@@ -4,7 +4,7 @@ function getStaticPath() { ...@@ -4,7 +4,7 @@ function getStaticPath() {
} }
return window.apiHostSetting.VUE_APP_BASE_URL return window.apiHostSetting.VUE_APP_BASE_URL
} }
export const isMobile = () => window.innerWidth <= 1100
// zimg图片服务器地址 // zimg图片服务器地址
export const zImgPath = window.apiHostSetting.VUE_APP_ZIMG_URL export const zImgPath = window.apiHostSetting.VUE_APP_ZIMG_URL
// 文件存储路径地址 // 文件存储路径地址
...@@ -25,4 +25,4 @@ export function delChildren(list, callback, name) { ...@@ -25,4 +25,4 @@ export function delChildren(list, callback, name) {
recursive(list, callback, 0) recursive(list, callback, 0)
return list return list
} }
\ No newline at end of file
...@@ -262,6 +262,14 @@ export default { ...@@ -262,6 +262,14 @@ export default {
icon: 'el-icon-box', icon: 'el-icon-box',
index: '/saas/sku-manage', index: '/saas/sku-manage',
children: [] children: []
},
{
id: 11,
path: '',
label: '应用中心',
icon: 'el-icon-s-grid',
index: '/saas/app',
children: []
} }
] ]
}, },
......
...@@ -3,6 +3,15 @@ module.exports = defineConfig({ ...@@ -3,6 +3,15 @@ module.exports = defineConfig({
transpileDependencies: true, transpileDependencies: true,
devServer: { devServer: {
port: 8082, port: 8082,
host: '' host: '',
}, proxy: {
'/api': {
target: 'http://192.168.31.188:8096',
changeOrigin: true
// 路径重写规则,这里将 /api 开头的请求路径替换为空字符串,即去掉 /api 前缀
}
}
}
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment