Browse Source

监控跳转

dev
wenlele 2 years ago
parent
commit
871ce85b60
  1. 4
      web/client/src/sections/facility/containers/monitor.jsx
  2. 12
      web/client/src/sections/facility/index.js
  3. 7
      web/client/src/sections/facility/nav-item.jsx

4
web/client/src/sections/facility/containers/monitor.jsx

@ -16,12 +16,12 @@ const Server = (props) => {
<div>
{/* <img src="/assets/images/install/watting.png" alt="" style={{ width: 'calc(100% + 16px)', position: "relative", top: -12, left: -8, }} /> */}
{/* <iframe frameborder="0" src={`/_api/https://monitor.anxinyun.cn/login`} style={{height: '100%', width: '100%'}} /> */}
<iframe frameBorder="0" src={pomsMonitor} style={{height: 'calc(100vh - 80px)', width: 'calc(100%)'}} />
{/* <iframe frameBorder="0" src={pomsMonitor} style={{height: 'calc(100vh - 80px)', width: 'calc(100%)'}} /> */}
</div>
</>
)
}
function mapStateToProps (state) {
const { auth, global, members, webSocket } = state;
return {

12
web/client/src/sections/facility/index.js

@ -6,10 +6,10 @@ import actions from './actions';
import { getNavItem } from './nav-item';
export default {
key: 'facility',
name: '设备',
reducers: reducers,
routes: routes,
actions: actions,
getNavItem: getNavItem
key: 'facility',
name: '设备',
reducers: reducers,
routes: routes,
actions: actions,
getNavItem: getNavItem
};

7
web/client/src/sections/facility/nav-item.jsx

@ -21,9 +21,9 @@ export function getNavItem (user, dispatch) {
itemKey: 'serverInformation',
text: '服务器信息',
icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconjianshezhong"></iconpark-icon>,
to: '/facility/serverInformation/monitor',
to: '/facility/serverInformation',
items: [{
itemKey: 'monitor', to: '/facility/serverInformation/monitor', text: '运维监控'
itemKey: 'monitor', to: '/facility/serverInformation/monitor', text: <a target='_blank' href='https://monitor.anxinyun.cn'>运维监控</a>
},{
itemKey: 'maintenanceRecords', to: '/facility/serverInformation/maintenanceRecords', text: '维护记录'
}]
@ -40,4 +40,5 @@ export function getNavItem (user, dispatch) {
},
]
);
}
}

Loading…
Cancel
Save