|
@@ -25,6 +25,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer }) =>
|
|
|
const showDrawer = id => {
|
|
const showDrawer = id => {
|
|
|
toggleDrawer()
|
|
toggleDrawer()
|
|
|
setDrawerProps({
|
|
setDrawerProps({
|
|
|
|
|
+ zIndex: 1040,
|
|
|
closable: true,
|
|
closable: true,
|
|
|
onClose: () => toggleDrawer(),
|
|
onClose: () => toggleDrawer(),
|
|
|
bodyStyle: {
|
|
bodyStyle: {
|
|
@@ -39,6 +40,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer }) =>
|
|
|
const showLongleDrawer = id => {
|
|
const showLongleDrawer = id => {
|
|
|
toggleDrawer()
|
|
toggleDrawer()
|
|
|
setDrawerProps({
|
|
setDrawerProps({
|
|
|
|
|
+ zIndex: 1040,
|
|
|
closable: true,
|
|
closable: true,
|
|
|
onClose: () => toggleDrawer(),
|
|
onClose: () => toggleDrawer(),
|
|
|
bodyStyle: {
|
|
bodyStyle: {
|
|
@@ -134,14 +136,14 @@ const CompanyTabList = ({ initData, customerId, client, software, customer }) =>
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
message.success('新增成功')
|
|
message.success('新增成功')
|
|
|
setState({ ...state, data: values })
|
|
setState({ ...state, data: values })
|
|
|
|
|
+ // 请求完了
|
|
|
|
|
+ setAddCustomerService({ ...addCustomerService, loading: false, visible: false })
|
|
|
|
|
+ // 刷新数据
|
|
|
|
|
+ dispatch({
|
|
|
|
|
+ type: 'refresh/commitAction',
|
|
|
|
|
+ payload: 'company'
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- // 请求完了
|
|
|
|
|
- setAddCustomerService({ ...addCustomerService, loading: false, visible: false })
|
|
|
|
|
- // 刷新数据
|
|
|
|
|
- dispatch({
|
|
|
|
|
- type: 'refresh/commitAction',
|
|
|
|
|
- payload: 'company'
|
|
|
|
|
- })
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleAddClient = async values => {
|
|
const handleAddClient = async values => {
|