shylock 1 год назад
Родитель
Сommit
d910bfbdad
1 измененных файлов с 12 добавлено и 1 удалено
  1. 12 1
      src/pages/Infrared/brand/edit.tsx

+ 12 - 1
src/pages/Infrared/brand/edit.tsx

@@ -1,5 +1,5 @@
 import React, { useEffect, useState } from 'react';
-import { Col, Form, Input, message, Modal, Row, Select } from 'antd';
+import { Col, Form, Input, InputNumber, message, Modal, Row, Select } from 'antd';
 import { queryInfraredCategory } from '@/services/Infrared/category';
 import { createInfraredBrands, updateInfraredBrands } from '@/services/Infrared/brand';
 
@@ -117,6 +117,17 @@ const Edit: React.FC<userEditPros> = (props) => {
               </Select>
             </Form.Item>
           </Col>
+          <Col span={24}>
+            <Form.Item
+              {...formItemLayout}
+              name="code"
+              label="品牌序号"
+              rules={[{ required: true, message: '请输入品牌序号' }]}
+              initialValue={detailData?.code || ''}
+            >
+              <InputNumber placeholder="请输入品牌序号" min={0} style={{ width: '100%' }} />
+            </Form.Item>
+          </Col>
         </Row>
       </Form>
     </Modal>