Commit 18e53612 authored by 皮倩雯's avatar 皮倩雯

fix: '仪表盘功能'

parent 870b3da7
Pipeline #78382 waiting for manual action with stages
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff is collapsed.
This diff is collapsed.
......@@ -53,8 +53,10 @@ const Login = props => {
sessionStorage.setItem('userName', userName);
if (userMode === USER_MODE.SUPER) {
history.push(`/solution`);
// history.push(`/homePage`);
} else {
history.push(`/authority/user`);
// history.push(`/homePage`);
}
}
if (userMode === USER_MODE.COMMON) {
......
......@@ -77,6 +77,8 @@ const BasicLayout = asyncComponent(() => import('@/layouts/BasicLayout'));
const BlankLayout = asyncComponent(() => import('@/layouts/BlankLayout'));
// 登录
const Login = asyncComponent(() => import('@/pages/user/login'));
// 首页
const HomePage = asyncComponent(() => import('@/pages/homePage'));
// 解决方案管理
const CurrentSolution = asyncComponent(() => import('@/pages/currentSolution/CurrentSolution'));
// 数据库管理
......@@ -197,6 +199,12 @@ export default {
authority: superAuthority,
component: CurrentSolution,
},
{
path: '/homePage',
name: '仪表盘',
icon: <HomeOutlined style={iconStyle} />,
component: HomePage,
},
{
path: '/dbm',
name: '数据库',
......
// import { get, post } from '@/services/index';
import qs from 'qs';
import { CITY_SERVICE, get, post, PUBLISH_SERVICE, PandaCore } from '@/services/index';
// 获取仪表盘数据
export const GetOMSDashboard = params =>
get(`${PUBLISH_SERVICE}/LogCenter/GetOMSDashboard`, params);
// 获取仪表盘日志数据
export const GetWayPages = params => post(`/PandaCore/GCK/Log/GetWayPages`, params);
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