|
@@ -1,5 +1,5 @@
|
|
|
import React, { useState, useEffect, useRef } from 'react'
|
|
import React, { useState, useEffect, useRef } from 'react'
|
|
|
-import { Modal, Form, Select, Input, Spin, Button, Radio, Popconfirm } from 'antd'
|
|
|
|
|
|
|
+import { Modal, Form, Select, Input, Spin, Button, Radio, Popconfirm, message } from 'antd'
|
|
|
import styles from './index.less'
|
|
import styles from './index.less'
|
|
|
import { SearchOutlined } from '@ant-design/icons'
|
|
import { SearchOutlined } from '@ant-design/icons'
|
|
|
import { queryClient } from '@/services/customer'
|
|
import { queryClient } from '@/services/customer'
|
|
@@ -170,11 +170,12 @@ const LockModal = props => {
|
|
|
longleId
|
|
longleId
|
|
|
})
|
|
})
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- onCancel()
|
|
|
|
|
|
|
+ message.success('新增成功')
|
|
|
dispatch({
|
|
dispatch({
|
|
|
type: 'refresh/commitAction',
|
|
type: 'refresh/commitAction',
|
|
|
payload: 'longle'
|
|
payload: 'longle'
|
|
|
})
|
|
})
|
|
|
|
|
+ onCancel()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -186,11 +187,12 @@ const LockModal = props => {
|
|
|
longleId
|
|
longleId
|
|
|
})
|
|
})
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- onCancel()
|
|
|
|
|
|
|
+ message.success('新增成功')
|
|
|
dispatch({
|
|
dispatch({
|
|
|
type: 'refresh/commitAction',
|
|
type: 'refresh/commitAction',
|
|
|
payload: 'longle'
|
|
payload: 'longle'
|
|
|
})
|
|
})
|
|
|
|
|
+ onCancel()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|