Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
A
Aqbits Trace Code
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mai Thanh Cong
Aqbits Trace Code
Commits
bf4b5526
Commit
bf4b5526
authored
Jul 12, 2021
by
Mai Thanh Cong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add stt in table
parent
4371fd59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
src/components/Profile/AddProfile.js
src/components/Profile/AddProfile.js
+1
-1
src/views/IndexSections/Table.js
src/views/IndexSections/Table.js
+10
-3
No files found.
src/components/Profile/AddProfile.js
View file @
bf4b5526
...
...
@@ -119,7 +119,7 @@ const AddProfile = () => {
type
=
{
phoneNumber
?
"
text
"
:
"
number
"
}
value
=
{
phoneNumber
}
onChange
=
{(
e
)
=>
setPhoneNumber
(
e
.
target
.
value
)}
invalid
=
{
validPhoneNumber
===
true
}
invalid
=
{
validPhoneNumber
}
/
>
<
FormFeedback
invalid
>
{
validPhoneNumber
?
"
Phải có 10 chữ số bắt đầu bằng chữ số 0
"
:
false
}
<
/FormFeedback
>
<
/InputGroup
>
...
...
src/views/IndexSections/Table.js
View file @
bf4b5526
...
...
@@ -69,8 +69,11 @@ export const ProfileTable = (props) => {
dispatch
(
props
.
onLoadNextPage
(
nextActiveItem
));
};
let
count
=
0
;
const
TableRow
=
(
props
)
=>
{
const
{
id
,
address
,
logo
,
name
,
phone_number
,
profile_product
,
created_at
,
qr_code
}
=
props
;
count
++
;
const
productName
=
profile_product
?
profile_product
.
map
(
item
=>
item
.
name
)
:
[];
let
listProductName
=
[];
for
(
let
i
=
0
;
i
<
productName
.
length
;
i
++
){
...
...
@@ -79,7 +82,7 @@ export const ProfileTable = (props) => {
return
(
<
tr
>
<
th
scope
=
"
row
"
>
{
""
}
<
/th
>
<
th
scope
=
"
row
"
>
{
count
}
<
/th
>
<
td
>
{
name
}
<
/td
>
<
td
><
img
src
=
{
window
.
location
.
origin
+
logo
}
alt
=
"
logo
"
width
=
{
100
}
height
=
{
50
}
/></
td
>
<
td
>
{
phone_number
}
<
/td
>
...
...
@@ -220,12 +223,14 @@ export const ProductTable = (props) => {
);
}
let
count
=
0
;
const
TableRow
=
(
props
)
=>
{
const
{
product_id
,
name
,
trace_code
,
cost
,
origin
,
image
,
growing_conditions
,
description
,
created_at
,
qr_code
}
=
props
;
count
++
;
return
(
<
tr
>
<
th
scope
=
"
row
"
>
{
""
}
<
/th
>
<
th
scope
=
"
row
"
>
{
count
}
<
/th
>
<
td
>
{
name
}
<
/td
>
<
td
>
{
trace_code
}
<
/td
>
<
td
>
{
cost
}
<
/td
>
...
...
@@ -375,12 +380,14 @@ export const ProductDiaryTable = (props) => {
);
}
let
count
=
0
;
const
TableRow
=
(
props
)
=>
{
const
{
id
,
company
,
description
,
date
}
=
props
;
count
++
;
return
(
<
tr
>
<
th
scope
=
"
row
"
>
{
""
}
<
/th
>
<
th
scope
=
"
row
"
>
{
count
}
<
/th
>
<
td
>
{
company
}
<
/td
>
<
td
>
{
description
}
<
/td
>
<
td
>
{
date
?
profileFormatDateTime
(
date
)
:
""
}
<
/td
>
...
...
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