diff --git a/src/pages/device/warehousepostion/components/CreateForm.jsx b/src/pages/device/warehousepostion/components/CreateForm.jsx index f080920..d250303 100644 --- a/src/pages/device/warehousepostion/components/CreateForm.jsx +++ b/src/pages/device/warehousepostion/components/CreateForm.jsx @@ -1,5 +1,5 @@ import React, {useState,useEffect } from 'react'; -import { Modal, Form, Input, Button, Select } from 'antd'; +import { Modal, Form, Input, Button, Select,Image } from 'antd'; import { EditableProTable } from '@ant-design/pro-table'; @@ -9,6 +9,7 @@ const CreateForm = (props) => { const [dataSource, setDataSource] = useState([]); const [editableKeys, setEditableRowKeys] = useState([]); const [options,setoptions]=useState([]); + const [ProductUrl,setProductUrl]=useState(''); useEffect(() => { console.log("props.values",props.values) if(props.values.id){ @@ -82,6 +83,8 @@ const CreateForm = (props) => { console.log("ary",ary) setEditableRowKeys(ary.map((item) => item.id)) setDataSource(ary); + + setProductUrl(device.productUrl) } } const headleOk=()=>{ @@ -136,7 +139,12 @@ const CreateForm = (props) => { - +