Browse Source

(*)网关远程控制和远程主机修改

master
wuqun 2 years ago
parent
commit
216081cdb6
  1. 5
      code/web/client/src/sections/edition/containers/gateway.jsx
  2. 2
      code/web/client/src/sections/edition/containers/gatewayStatusModal.jsx

5
code/web/client/src/sections/edition/containers/gateway.jsx

@ -132,13 +132,14 @@ const GatewayManage = props => {
dispatch(edition.gatewaySsh(record.id)).then(r => {
if (r.success) {
let url = r.payload.data.redirectUrl
//window.open('http://www.baidu.com', '_blank')
window.open(url, '_blank')
}
})
}}>远程控制</div>
<div style={{ ...aStyle, marginBottom: 10 }} onClick={() => {
window.open(`http://${record.serialNo}.edge.yinweiwen.cn`, '_blank')
let url = `http://${record.serialNo}.edge.yinweiwen.cn`
window.open(url, '_blank')
}}>远程主机</div>
<Popconfirm

2
code/web/client/src/sections/edition/containers/gatewayStatusModal.jsx

@ -29,7 +29,7 @@ const GatewayStatusModal = (props) => {
if (res.success) {
//let a = formatDuring(172890)
let tableData = Object.keys(statusKeys).map(k => {
let value = k == 'sys' ? res.payload.data.platform + '-拼接-' + res.payload.data.sysVersion : res.payload.data[k]
let value = k == 'sys' ? res.payload.data?.platform + ' ' + res.payload.data?.sysVersion : res.payload.data[k]
return { label: statusKeys[k], value }
})
setListData(tableData)

Loading…
Cancel
Save