|
|
@ -5,10 +5,15 @@ import { Form, Input, Pagination, Select, Table, message } from 'antd';
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
import styles from './index.less'
|
|
|
|
import styles from './index.less'
|
|
|
|
import { deviceHardEditOrAdd, deviceHardPage } from '@/services/register';
|
|
|
|
import { deviceHardEditOrAdd, deviceHardPage } from '@/services/register';
|
|
|
|
|
|
|
|
import { useParams, history } from 'umi';
|
|
|
|
|
|
|
|
|
|
|
|
const { TextArea } = Input;
|
|
|
|
const { TextArea } = Input;
|
|
|
|
|
|
|
|
|
|
|
|
export default function Page() {
|
|
|
|
export default function Page() {
|
|
|
|
|
|
|
|
const urlParams = useParams();
|
|
|
|
|
|
|
|
let sysData = localStorage.getItem(`${urlParams?.fileType}`);
|
|
|
|
|
|
|
|
let info = sysData ? JSON.parse(sysData) : null;
|
|
|
|
|
|
|
|
|
|
|
|
const [tableData, setTableData] = useState([]);
|
|
|
|
const [tableData, setTableData] = useState([]);
|
|
|
|
const [pageNumber, setPageNumber] = useState(1);
|
|
|
|
const [pageNumber, setPageNumber] = useState(1);
|
|
|
|
const [pageSize, setpageSize] = useState(10);
|
|
|
|
const [pageSize, setpageSize] = useState(10);
|
|
|
@ -115,7 +120,15 @@ export default function Page() {
|
|
|
|
]}>
|
|
|
|
]}>
|
|
|
|
</Select>
|
|
|
|
</Select>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<ButtonComp text={'定位'} style={{ margin: '20px 0 0px 20px' }} onClick={() => { }} />
|
|
|
|
<ButtonComp text={'定位'} style={{ margin: '20px 0 0px 20px' }} onClick={() => {
|
|
|
|
|
|
|
|
let obj: any = {
|
|
|
|
|
|
|
|
selectVal: 6,
|
|
|
|
|
|
|
|
active: 2,
|
|
|
|
|
|
|
|
activeName: '位置管理',
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
localStorage.setItem(`${urlParams?.fileType}`, JSON.stringify({ ...info, layoutInfo: obj }))
|
|
|
|
|
|
|
|
history.push(`/registerManage/unitLocation/${urlParams?.fileType}${location?.search}`)
|
|
|
|
|
|
|
|
}} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className='flex_aiC'>
|
|
|
|
<div className='flex_aiC'>
|
|
|
|
<Form.Item name="deviceName" label="设备名称" rules={[{ required: true, message: '请输入设备名称' }]}>
|
|
|
|
<Form.Item name="deviceName" label="设备名称" rules={[{ required: true, message: '请输入设备名称' }]}>
|
|
|
@ -219,7 +232,7 @@ export default function Page() {
|
|
|
|
<div className='ml20' style={{ height: 'auto', width: '30%', marginTop: 8 }}>
|
|
|
|
<div className='ml20' style={{ height: 'auto', width: '30%', marginTop: 8 }}>
|
|
|
|
<div className='mb10'>设备照片</div>
|
|
|
|
<div className='mb10'>设备照片</div>
|
|
|
|
<div style={{ height: 'calc(50% - 27px)', border: '1px solid #d8d8d8', background: '#fff' }}>
|
|
|
|
<div style={{ height: 'calc(50% - 27px)', border: '1px solid #d8d8d8', background: '#fff' }}>
|
|
|
|
<img src="" style={{ width: '100%', height: '100%' }} />
|
|
|
|
<img src={require('../../../../../assets/images/device_img.png')} style={{ width: '100%', height: '100%' }} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className='mb10 mt20'>备注</div>
|
|
|
|
<div className='mb10 mt20'>备注</div>
|
|
|
|
<TextArea
|
|
|
|
<TextArea
|
|
|
|