outaozhen 5 lat temu
rodzic
commit
abe4136c0b

+ 3 - 4
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockModal.jsx

@@ -29,8 +29,7 @@ const LockModal = props => {
   const [form] = Form.useForm()
   const { Option } = Select
   const scrollRef = useRef()
-  const { visible, onCancel, onConfirm, loading, type, longleId, keyNum, status, clientId } = props
-  // console.log(type)
+  const { visible, onCancel, onConfirm, loading, type, longleId, keyNum, status } = props
   const layout = {
     layout: 'vertical'
   }
@@ -105,8 +104,8 @@ const LockModal = props => {
   // 关联联系人
   const connectClient = async id => {
     const { code = -1 } = await apiSoftwareAddLonglelog({
-      id,
-      clientId,
+      // id,
+      clientId: id,
       status: type,
       longleId
     })

+ 1 - 1
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockTabList.jsx

@@ -10,7 +10,7 @@ import { servicelogEnum, showProductsStatus, showNewLongleStatus, showMarkStatus
 import { useDispatch } from 'dva'
 
 const LockTabList = props => {
-  const { longleLog, longleId, keyNum } = props
+  const { longleLog, longleId, keyNum, clientId } = props
   const dispatch = useDispatch()
   const [state, setState] = useState({
     visible: false