Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
Giang Tran
InvestCustomer
Commits
d4ff4d90
Commit
d4ff4d90
authored
Jun 01, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update packet
parent
88248ed1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
PacketCQG.js
src/Screens/Account/PacrtCQG/PacketCQG.js
+9
-0
WrapNomarl.js
src/Screens/Account/PacrtCQG/WrapNomarl.js
+0
-3
No files found.
src/Screens/Account/PacrtCQG/PacketCQG.js
View file @
d4ff4d90
...
...
@@ -26,6 +26,7 @@ const PacketCQG = (props) => {
const
[
feeConnect
,
setFeeConnect
]
=
useState
({
data
:
[],
title
:
''
});
const
[
feeNonPro
,
setFeeNonPro
]
=
useState
({
data
:
[],
title
:
''
});
const
[
feePro
,
setFeePro
]
=
useState
({
data
:
[],
title
:
''
});
const
[
feeOperating
,
setOperrating
]
=
useState
({
data
:
[],
title
:
''
});
const
[
totalMD
,
setTotalMD
]
=
useState
(
0
);
const
[
totalTB
,
setTotalTB
]
=
useState
(
0
);
const
[
isUpdate
,
setIsUpdate
]
=
useState
(
false
);
...
...
@@ -133,6 +134,7 @@ const PacketCQG = (props) => {
setFeeConnect
(
res
.
data
.
data
.
fee_connect
);
setFeeNonPro
(
res
.
data
.
data
.
fee_pro
);
setFeePro
(
res
.
data
.
data
.
fee_non_pro
);
setOperrating
(
res
.
data
.
data
.
fee_operating
);
if
(
res
.
data
.
package_register
.
length
>
0
)
{
setListData
(
res
.
data
.
package_register
);
...
...
@@ -161,6 +163,13 @@ const PacketCQG = (props) => {
<
WrapNomarl
onRemovePacket
=
{
onRemovePacket
}
onChoosePacket
=
{
onChoosePacket
}
data
=
{
feeOperating
}
listRegister
=
{
listRegister
}
/
>
<
WrapNomarl
onRemovePacket
=
{
onRemovePacket
}
onChoosePacket
=
{
onChoosePacket
}
data
=
{
feeConnect
}
listRegister
=
{
listRegister
}
/
>
...
...
src/Screens/Account/PacrtCQG/WrapNomarl.js
View file @
d4ff4d90
...
...
@@ -21,12 +21,9 @@ const ContainerTop = (props) => {
useEffect
(()
=>
{
const
newList
=
data
.
map
((
e
)
=>
{
console
.
log
(
props
.
listRegister
);
if
(
props
.
listRegister
.
includes
(
e
.
id
))
{
console
.
log
(
'Chay vao day'
,
e
.
id
);
return
{...
e
,
selected
:
true
};
}
else
{
console
.
log
(
'Chay xuong duoi'
,
e
.
id
);
return
{...
e
,
selected
:
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