|
@@ -1,5 +1,5 @@
|
|
|
import React, { useEffect, useState } from 'react';
|
|
|
-import { Button, Col, Form, Input, message, Modal, Row, Select, Upload } from 'antd';
|
|
|
+import { Button, Col, Form, Input, InputNumber, message, Modal, Row, Select, Upload } from 'antd';
|
|
|
import { queryInfraredCategory } from '@/services/Infrared/category';
|
|
|
import { createInfraredRemote, updateInfraredRemote } from '@/services/Infrared/remote';
|
|
|
import { queryInfraredBrands } from '@/services/Infrared/brand';
|
|
@@ -120,6 +120,7 @@ const Edit: React.FC<userEditPros> = (props) => {
|
|
|
if (response.code === 0) {
|
|
|
message.success(`上传成功!`);
|
|
|
setFileList([{ url: response.data.url, name: response.data.name }]);
|
|
|
+ form.setFieldValue('remote_map', response.data.name);
|
|
|
} else {
|
|
|
message.error(response.resultMsg);
|
|
|
}
|
|
@@ -205,7 +206,7 @@ const Edit: React.FC<userEditPros> = (props) => {
|
|
|
rules={[{ required: true, message: '请输入控制编码' }]}
|
|
|
initialValue={detailData?.remote || ''}
|
|
|
>
|
|
|
- <Input placeholder="请输入控制编码" />
|
|
|
+ <InputNumber placeholder="请输入控制编码" style={{ width: '100%' }} />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={24}>
|
|
@@ -216,7 +217,7 @@ const Edit: React.FC<userEditPros> = (props) => {
|
|
|
rules={[{ required: true, message: '请输入编码对应文件名称' }]}
|
|
|
initialValue={detailData?.remote_map || ''}
|
|
|
>
|
|
|
- <Input placeholder="请输入编码对应文件名称" />
|
|
|
+ <Input placeholder="请输入编码对应文件名称" readOnly />
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
<Col span={24}>
|