|
@ -4,7 +4,7 @@ import request from 'superagent'; |
|
|
import { connect } from 'react-redux'; |
|
|
import { connect } from 'react-redux'; |
|
|
import { editCrane, getCrane } from '../actions' |
|
|
import { editCrane, getCrane } from '../actions' |
|
|
import { |
|
|
import { |
|
|
BorderlessTableOutlined, BlockOutlined, RollbackOutlined, SaveOutlined |
|
|
BorderlessTableOutlined, BlockOutlined, RollbackOutlined, SaveOutlined, AimOutlined |
|
|
} from '@ant-design/icons'; |
|
|
} from '@ant-design/icons'; |
|
|
import { Col, Row, Button, Modal, Form, Input, InputNumber, message, Switch } from 'antd'; |
|
|
import { Col, Row, Button, Modal, Form, Input, InputNumber, message, Switch } from 'antd'; |
|
|
import '../style.less' |
|
|
import '../style.less' |
|
@ -151,6 +151,32 @@ function SetUp ({ dispatch, craneData }) { |
|
|
]) |
|
|
]) |
|
|
initData() |
|
|
initData() |
|
|
} |
|
|
} |
|
|
|
|
|
}, { |
|
|
|
|
|
n: '传感器参数', |
|
|
|
|
|
ic: <AimOutlined className='setup-icon' />, |
|
|
|
|
|
click: () => { |
|
|
|
|
|
setRenderForm(true) |
|
|
|
|
|
setFormIndex(1) |
|
|
|
|
|
setFormItems([ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '设备编号', |
|
|
|
|
|
name: 'device_no', |
|
|
|
|
|
type: 'string', |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '测斜仪模块号', |
|
|
|
|
|
name: 'hgc_module', |
|
|
|
|
|
type: 'string', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '串口配置', |
|
|
|
|
|
name: 'serial_port', |
|
|
|
|
|
type: 'string', |
|
|
|
|
|
}, |
|
|
|
|
|
]) |
|
|
|
|
|
initData() |
|
|
|
|
|
} |
|
|
}, { |
|
|
}, { |
|
|
n: '返回', |
|
|
n: '返回', |
|
|
ic: <RollbackOutlined className='setup-icon' />, |
|
|
ic: <RollbackOutlined className='setup-icon' />, |
|
|