Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-platform
Commits
d5b3367e
Commit
d5b3367e
authored
Sep 10, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善逻辑
parent
cbd2feea
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
27 deletions
+42
-27
addMember.tsx
src/pages/member/memberImport/addMember.tsx
+4
-2
addEquity.tsx
src/pages/member/memberLevel/addEquity.tsx
+5
-3
auditPr1.tsx
src/pages/member/memberPr1/auditPr1.tsx
+7
-5
auditPr2.tsx
src/pages/member/memberPr2/auditPr2.tsx
+7
-5
auditPrComfirm.tsx
src/pages/member/memberPrConfirm/auditPrComfirm.tsx
+7
-5
auditPrSubmit.tsx
src/pages/member/memberPrSubmit/auditPrSubmit.tsx
+12
-7
No files found.
src/pages/member/memberImport/addMember.tsx
View file @
d5b3367e
...
...
@@ -162,6 +162,8 @@ const AddMember: React.FC<any> = props => {
...
rest
}
=
values
;
const
filtered
=
areas
.
filter
(
item
=>
item
.
pcode
||
item
.
ccode
);
if
(
!
id
)
{
setSubmitLoading
(
true
);
const
msg
=
message
.
loading
({
...
...
@@ -176,7 +178,7 @@ const AddMember: React.FC<any> = props => {
phone
,
email
,
channelTypeId
,
areas
,
areas
:
filtered
,
remark
,
detail
:
rest
,
}).
then
(
res
=>
{
...
...
@@ -206,7 +208,7 @@ const AddMember: React.FC<any> = props => {
phone
,
email
,
channelTypeId
,
areas
,
areas
:
filtered
,
remark
,
detail
:
rest
,
}).
then
(
res
=>
{
...
...
src/pages/member/memberLevel/addEquity.tsx
View file @
d5b3367e
...
...
@@ -172,9 +172,11 @@ const AddEquity: React.FC<[]> = () => {
setSubmitLoading
(
true
);
try
{
const
res
=
await
Promise
.
all
(
promises
);
message
.
success
(
'保存成功'
);
getMemberLevelInfo
();
const
resArr
=
await
Promise
.
all
(
promises
);
if
(
resArr
.
every
((
item
:
{
code
:
number
})
=>
item
.
code
===
1000
))
{
message
.
success
(
'保存成功'
);
getMemberLevelInfo
();
}
}
catch
(
errInfo
)
{
}
...
...
src/pages/member/memberPr1/auditPr1.tsx
View file @
d5b3367e
...
...
@@ -107,12 +107,14 @@ const AuditPr1: React.FC<{}> = () => {
}),
];
Promise
.
all
(
promises
).
then
(
res
=>
{
Promise
.
all
(
promises
).
then
(
resArr
=>
{
if
(
resArr
.
every
((
item
:
{
code
:
number
})
=>
item
.
code
===
1000
))
{
setModalVisible
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}
setConfirmLoading
(
false
);
setModalVisible
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}).
catch
(
err
=>
{
setConfirmLoading
(
false
);
});
...
...
src/pages/member/memberPr2/auditPr2.tsx
View file @
d5b3367e
...
...
@@ -107,12 +107,14 @@ const AuditPr2: React.FC<{}> = () => {
}),
];
Promise
.
all
(
promises
).
then
(
res
=>
{
Promise
.
all
(
promises
).
then
(
resArr
=>
{
if
(
resArr
.
every
((
item
:
{
code
:
number
})
=>
item
.
code
===
1000
))
{
setModalVisible
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}
setConfirmLoading
(
false
);
setModalVisible
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}).
catch
(
err
=>
{
setConfirmLoading
(
false
);
});
...
...
src/pages/member/memberPrConfirm/auditPrComfirm.tsx
View file @
d5b3367e
...
...
@@ -107,12 +107,14 @@ const AuditPrComfirm: React.FC<{}> = () => {
}),
];
Promise
.
all
(
promises
).
then
(
res
=>
{
Promise
.
all
(
promises
).
then
(
resArr
=>
{
if
(
resArr
.
every
((
item
:
{
code
:
number
})
=>
item
.
code
===
1000
))
{
setModalVisible
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}
setConfirmLoading
(
false
);
setModalVisible
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}).
catch
(
err
=>
{
setConfirmLoading
(
false
);
});
...
...
src/pages/member/memberPrSubmit/auditPrSubmit.tsx
View file @
d5b3367e
...
...
@@ -153,10 +153,13 @@ const AuditPrSubmit: React.FC<{}> = () => {
// 修改渠道信息
const
handleChannelSubmit
=
value
=>
{
const
{
channelLevel
,
...
rest
}
=
value
;
const
{
channelLevel
,
areas
=
[],
...
rest
}
=
value
;
const
filtered
=
areas
.
filter
(
item
=>
item
.
pcode
||
item
.
ccode
);
return
PublicApi
.
postMemberAbilityValidateCommitChannelUpdate
({
memberId
:
id
,
validateId
,
areas
:
filtered
,
...
rest
,
},
{
ctlType
:
'none'
,
...
...
@@ -176,13 +179,15 @@ const AuditPrSubmit: React.FC<{}> = () => {
}),
];
Promise
.
all
(
promises
).
then
(
res
=>
{
Promise
.
all
(
promises
).
then
(
resArr
=>
{
if
(
resArr
.
every
((
item
:
{
code
:
number
})
=>
item
.
code
===
1000
))
{
setModalVisible
(
false
);
setUnsaved
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}
setConfirmLoading
(
false
);
setModalVisible
(
false
);
setUnsaved
(
false
);
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
}).
catch
(
err
=>
{
setConfirmLoading
(
false
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment