Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Lecturer
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
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
tungnq
AppUms_Lecturer
Commits
dabc2997
Commit
dabc2997
authored
Sep 04, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Chỉnh sửa giao diện danh sách công việc
parent
7e09ce25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
13 deletions
+14
-13
view.js
src/components/TabView/view.js
+1
-1
index.js
src/screens/list_work/index.js
+8
-0
style.js
src/screens/list_work/modal_add/style.js
+0
-2
view.js
src/screens/list_work/modal_add/view.js
+1
-1
view.js
src/screens/list_work/view.js
+4
-9
No files found.
src/components/TabView/view.js
View file @
dabc2997
...
@@ -245,7 +245,7 @@ const styles = StyleSheet.create({
...
@@ -245,7 +245,7 @@ const styles = StyleSheet.create({
},
},
// Style cơ bản cho mỗi tab
// Style cơ bản cho mỗi tab
tab
:
{
tab
:
{
minHeight
:
4
0
,
// Chiều cao tối thiểu 40px
minHeight
:
3
0
,
// Chiều cao tối thiểu 40px
justifyContent
:
'center'
,
// Căn giữa theo chiều dọc
justifyContent
:
'center'
,
// Căn giữa theo chiều dọc
alignItems
:
'center'
,
// Căn giữa theo chiều ngang
alignItems
:
'center'
,
// Căn giữa theo chiều ngang
position
:
'relative'
,
// Để có thể đặt activeIndicator absolute
position
:
'relative'
,
// Để có thể đặt activeIndicator absolute
...
...
src/screens/list_work/index.js
View file @
dabc2997
...
@@ -194,8 +194,15 @@ const ListWork = props => {
...
@@ -194,8 +194,15 @@ const ListWork = props => {
];
];
};
};
const
[
tabView
,
setTabView
]
=
useState
([
{
key
:
'all'
,
label
:
'Tất cả'
},
{
key
:
'public'
,
label
:
'Giao cho tôi'
},
{
key
:
'private'
,
label
:
'Đang giám sát'
},
]);
// ==================== RENDER ====================
// ==================== RENDER ====================
return
(
return
(
<
ListWorkView
<
ListWorkView
// Props dữ liệu
// Props dữ liệu
...
@@ -212,6 +219,7 @@ const ListWork = props => {
...
@@ -212,6 +219,7 @@ const ListWork = props => {
onViewDetail
=
{
handleViewDetail
}
onViewDetail
=
{
handleViewDetail
}
onReportAction
=
{
handleReportAction
}
onReportAction
=
{
handleReportAction
}
onApprovalAction
=
{
handleApprovalAction
}
onApprovalAction
=
{
handleApprovalAction
}
tabView
=
{
tabView
}
// Props utility functions
// Props utility functions
getStatusColor
=
{
getStatusColor
}
getStatusColor
=
{
getStatusColor
}
...
...
src/screens/list_work/modal_add/style.js
View file @
dabc2997
...
@@ -17,7 +17,6 @@ const styles = StyleSheet.create({
...
@@ -17,7 +17,6 @@ const styles = StyleSheet.create({
},
},
header
:
{
header
:
{
alignItems
:
'center'
,
alignItems
:
'center'
,
paddingBottom
:
20
,
marginHorizontal
:
20
,
marginHorizontal
:
20
,
},
},
headerTitle
:
{
headerTitle
:
{
...
@@ -117,7 +116,6 @@ const styles = StyleSheet.create({
...
@@ -117,7 +116,6 @@ const styles = StyleSheet.create({
buttonContainer
:
{
buttonContainer
:
{
flexDirection
:
'row'
,
flexDirection
:
'row'
,
justifyContent
:
'flex-end'
,
justifyContent
:
'flex-end'
,
paddingHorizontal
:
20
,
paddingTop
:
20
,
paddingTop
:
20
,
gap
:
10
,
gap
:
10
,
},
},
...
...
src/screens/list_work/modal_add/view.js
View file @
dabc2997
...
@@ -318,7 +318,7 @@ const AddWorkModal = ({visible, onClose, onSave}) => {
...
@@ -318,7 +318,7 @@ const AddWorkModal = ({visible, onClose, onSave}) => {
fontFamily
=
{
R
.
fonts
.
fontMedium
}
fontFamily
=
{
R
.
fonts
.
fontMedium
}
height
=
{
35
}
height
=
{
35
}
width
=
{
100
}
width
=
{
100
}
containerStyle
=
{{
paddingHorizontal
:
15
,
borderRadius
:
30
}}
containerStyle
=
{{
borderRadius
:
30
}}
/
>
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/screens/list_work/view.js
View file @
dabc2997
...
@@ -32,23 +32,18 @@ const ListWorkView = props => {
...
@@ -32,23 +32,18 @@ const ListWorkView = props => {
onApprovalAction
,
onApprovalAction
,
getStatusColor
,
getStatusColor
,
getButtonsForStatus
,
getButtonsForStatus
,
tabView
}
=
props
;
}
=
props
;
const
renderTabView
=
()
=>
{
const
renderTabView
=
()
=>
{
return
(
return
(
<
TabViewComponent
<
TabViewComponent
data
=
{[
data
=
{
tabView
}
{
key
:
'all'
,
label
:
'Tất cả'
},
{
key
:
'public'
,
label
:
'Công khai'
},
{
key
:
'private'
,
label
:
'Hạn chế'
},
{
key
:
'draft'
,
label
:
'Nháp'
},
]}
tabStyle
=
{{
tabStyle
=
{{
backgroundColor
:
R
.
colors
.
gray
,
backgroundColor
:
R
.
colors
.
gray
,
marginHorizontal
:
5
,
marginHorizontal
:
5
,
borderRadius
:
10
,
borderRadius
:
10
,
width
:
100
,
width
:
107
,
height
:
35
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
}}
}}
...
@@ -90,7 +85,7 @@ const ListWorkView = props => {
...
@@ -90,7 +85,7 @@ const ListWorkView = props => {
backgroundColor
=
{
button
.
backgroundColor
}
backgroundColor
=
{
button
.
backgroundColor
}
textColor
=
{
R
.
colors
.
white
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
R
.
fontsize
.
fontSizeContent
}
fontSize
=
{
R
.
fontsize
.
fontSizeContent
}
height
=
{
3
5
}
height
=
{
3
0
}
width
=
{
120
}
width
=
{
120
}
containerStyle
=
{{
marginRight
:
10
,
borderRadius
:
20
}}
containerStyle
=
{{
marginRight
:
10
,
borderRadius
:
20
}}
/
>
/
>
...
...
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