|
@@ -1,4 +1,5 @@
|
|
|
import React, { useState, useEffect, useRef } from 'react'
|
|
import React, { useState, useEffect, useRef } from 'react'
|
|
|
|
|
+import DragModal from '@/components/DragModal'
|
|
|
import { Modal, Form, Select, Input, Spin, Button, Radio } from 'antd'
|
|
import { Modal, Form, Select, Input, Spin, Button, Radio } from 'antd'
|
|
|
import styles from './index.less'
|
|
import styles from './index.less'
|
|
|
import { SearchOutlined } from '@ant-design/icons'
|
|
import { SearchOutlined } from '@ant-design/icons'
|
|
@@ -7,7 +8,7 @@ import { queryLock } from '@/services/lock'
|
|
|
import consts from '@/basic/consts'
|
|
import consts from '@/basic/consts'
|
|
|
import { useDebounceFn } from 'ahooks'
|
|
import { useDebounceFn } from 'ahooks'
|
|
|
import { apiSoftwareAddLonglelog, apiReceiveLock } from '@/services/lock'
|
|
import { apiSoftwareAddLonglelog, apiReceiveLock } from '@/services/lock'
|
|
|
-import { useDispatch } from 'dva'
|
|
|
|
|
|
|
+import { useDispatch } from 'umi'
|
|
|
|
|
|
|
|
export const lockTypeEnum = {
|
|
export const lockTypeEnum = {
|
|
|
RECEIVE: 2,
|
|
RECEIVE: 2,
|
|
@@ -183,15 +184,19 @@ const LockModal = props => {
|
|
|
return (
|
|
return (
|
|
|
<Modal
|
|
<Modal
|
|
|
title={
|
|
title={
|
|
|
- modalTitleEnum[type] ?? (
|
|
|
|
|
- <Input
|
|
|
|
|
- className={styles.inputSearch}
|
|
|
|
|
- placeholder={placeholderEnum[type]}
|
|
|
|
|
- prefix={<SearchOutlined />}
|
|
|
|
|
- onChange={handleInputChange}
|
|
|
|
|
- allowClear={true}
|
|
|
|
|
- />
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ <DragModal
|
|
|
|
|
+ title={
|
|
|
|
|
+ modalTitleEnum[type] ?? (
|
|
|
|
|
+ <Input
|
|
|
|
|
+ className={styles.inputSearch}
|
|
|
|
|
+ placeholder={placeholderEnum[type]}
|
|
|
|
|
+ prefix={<SearchOutlined />}
|
|
|
|
|
+ onChange={handleInputChange}
|
|
|
|
|
+ allowClear={true}
|
|
|
|
|
+ />
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
|
|
+ />
|
|
|
}
|
|
}
|
|
|
visible={visible}
|
|
visible={visible}
|
|
|
confirmLoading={loading}
|
|
confirmLoading={loading}
|