diff --git a/spug_web/src/pages/exec/task/ExecConsole.js b/spug_web/src/pages/exec/task/ExecConsole.js index 469ce76..f26dced 100644 --- a/spug_web/src/pages/exec/task/ExecConsole.js +++ b/spug_web/src/pages/exec/task/ExecConsole.js @@ -5,7 +5,15 @@ */ import React from 'react'; import { observer } from 'mobx-react'; -import { Modal, Collapse, Tooltip, Icon } from 'antd'; +import { + CaretRightOutlined, + CheckCircleTwoTone, + LoadingOutlined, + WarningTwoTone, + FullscreenOutlined, + FullscreenExitOutlined +} from '@ant-design/icons'; +import { Modal, Collapse, Tooltip } from 'antd'; import { X_TOKEN } from 'libs'; import OutView from './OutView'; import styles from './index.module.css'; @@ -54,14 +62,14 @@ class ExecConsole extends React.Component { genExtra = (outputs) => { let latest, icon; if (outputs['status'] === -2) { - return + return ; } else if (outputs['status'] === 0) { latest = outputs['info'][outputs['info'].length - 1]; - icon = + icon = } else { latest = outputs['error'][outputs['error'].length - 1] icon = - + } return ( @@ -80,7 +88,7 @@ class ExecConsole extends React.Component { title={[ 执行控制台,
store.isFullscreen = !store.isFullscreen}> - + {store.isFullscreen ? : }
]} footer={null} @@ -91,7 +99,7 @@ class ExecConsole extends React.Component { accordion defaultActiveKey={[0]} className={styles.collapse} - expandIcon={({isActive}) => }> + expandIcon={({isActive}) => }> {Object.entries(store.outputs).map(([key, item], index) => ( - + store.f_name = e.target.value} placeholder="请输入"/> - +
- - - {store.hosts.map(item => ( - store.hosts = store.hosts.filter(x => x.id !== item.id)}> - {item.name}({item.hostname}:{item.port}) - ))} - - - - this.setState({body})}/> - - - - - - + + + 首页 + 批量执行 + 执行任务 + + +
+ + {store.hosts.map(item => ( + store.hosts = store.hosts.filter(x => x.id !== item.id)}> + {item.name}({item.hostname}:{item.port}) + ))} + + + + this.setState({body})}/> + + + + + + +
{store.showHost && store.hosts = hosts}/>} - {store.showTemplate && this.setState({body: body + v})}/>} + {store.showTemplate && + this.setState({body: body + v})}/>} {store.showConsole && } - - ) +
+ ); } }