|
@@ -2,29 +2,20 @@ import React, { useState, useEffect } from 'react';
|
|
import { message } from 'antd';
|
|
import { message } from 'antd';
|
|
import menuStyle from './moduleMenuStyle.less';
|
|
import menuStyle from './moduleMenuStyle.less';
|
|
import { connect } from 'umi';
|
|
import { connect } from 'umi';
|
|
-// import {
|
|
|
|
-// UnityAction,
|
|
|
|
-// getGlobalData,
|
|
|
|
-// setGlobalData,
|
|
|
|
-// } from '@/utils/utils';
|
|
|
|
-// import router from 'umi/router';
|
|
|
|
-// import {
|
|
|
|
-// platformPageConfig,
|
|
|
|
-// BuildNodeCode,
|
|
|
|
-// OpsNodeCode,
|
|
|
|
-// } from '@/utils/constants';
|
|
|
|
-const noIcon = require('@/Project/assets/platformMenu/noIcon.png');
|
|
|
|
-const newIcon = require('@/Project/assets/platformMenu/ICON/newModel.png');
|
|
|
|
|
|
+import { FuncMainState } from '@/Project/Functions/FuncMain';
|
|
|
|
|
|
function PlatformMenu(props) {
|
|
function PlatformMenu(props) {
|
|
const {
|
|
const {
|
|
dispatch,
|
|
dispatch,
|
|
access,
|
|
access,
|
|
- initState,
|
|
|
|
|
|
+ params,
|
|
// location: { query = {} },
|
|
// location: { query = {} },
|
|
} = props;
|
|
} = props;
|
|
console.log(props);
|
|
console.log(props);
|
|
let query = {};
|
|
let query = {};
|
|
|
|
+
|
|
|
|
+ const noIcon = require('@/Project/assets/platformMenu/noIcon.png');
|
|
|
|
+ const newIcon = require('@/Project/assets/platformMenu/ICON/newModel.png');
|
|
const [curMenu, setCurMenu] = useState([]);
|
|
const [curMenu, setCurMenu] = useState([]);
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
dispatch({
|
|
dispatch({
|
|
@@ -108,11 +99,12 @@ function PlatformMenu(props) {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
const handleMenuClick = (element) => {
|
|
const handleMenuClick = (element) => {
|
|
|
|
+ params.handleMapPage(FuncMainState.Map);
|
|
if (element.Name == '运营平台' || element.Name == '建设平台') {
|
|
if (element.Name == '运营平台' || element.Name == '建设平台') {
|
|
- if (query.unity == undefined) {
|
|
|
|
- message.error('请使用客户端进入');
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (query.unity == undefined) {
|
|
|
|
+ // message.error('请使用客户端进入');
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
const subModule = element.Name == '运营平台' ? 2 : 1;
|
|
const subModule = element.Name == '运营平台' ? 2 : 1;
|
|
// const forbiddenModel = getGlobalData('forbiddenModel');
|
|
// const forbiddenModel = getGlobalData('forbiddenModel');
|
|
// 设置全局变量
|
|
// 设置全局变量
|