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
9ce41d07
Commit
9ce41d07
authored
Sep 11, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã bổ sung thêm logic để lọc công việc theo role và status
parent
fb8e80c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
24 deletions
+60
-24
actionTypes.js
src/actions/actionTypes.js
+33
-0
index.js
src/screens/list_work/index.js
+0
-0
view.js
src/screens/list_work/modal_add/view.js
+0
-2
style.js
src/screens/list_work/style.js
+20
-0
view.js
src/screens/list_work/view.js
+7
-22
No files found.
src/actions/actionTypes.js
View file @
9ce41d07
...
...
@@ -33,3 +33,35 @@ export const ADD_PRODUCT = "ADD_PRODUCT";
export
const
REMOVE_PRODUCT
=
"REMOVE_PRODUCT"
;
export
const
CLEAR_CART
=
"CLEAR_CART"
;
//ACTION CÔNG VIỆC VAI TRÒ
export
const
ROLE
=
{
ALL
:
'ALL'
,
ASSIGNEE
:
'ASSIGNEE'
,
//Giao cho tôi (Giảng viên nhận công việc)
SUPERVISOR
:
'SUPERVISOR'
//Đang giám sát (Giảng viên giám sát)
}
//ACTION TRẠNG THÁI THEO VAI TRÒ
export
const
STATUS_BY_ROLE
=
{
[
ROLE
.
ASSIGNEE
]:
[
'Đang thực hiện'
,
'Cần chỉnh sửa'
,
'Chờ duyệt'
,
'Đợi báo cáo'
,
'Đã hoàn thành'
],
[
ROLE
.
SUPERVISOR
]:[
'Đang thực hiện'
,
'Đợi chỉnh sửa'
,
'Chờ duyệt'
,
'Đợi báo cáo'
,
'Đã hoàn thành'
]
}
//ACTION TIẾN ĐỘ CÔNG VIỆC
export
const
WORK_PROGRESS
=
{
ALL_WORK_PROGRESS
:
'ALL_WORK_PROGRESS'
,
SUCCESS_WORK_PROGRESS
:
'SUCCESS_WORK_PROGRESS'
,
CONTINUE_WORK_PROGRESS
:
'CONTINUE_WORK_PROGRESS'
,
}
\ No newline at end of file
src/screens/list_work/index.js
View file @
9ce41d07
This diff is collapsed.
Click to expand it.
src/screens/list_work/modal_add/view.js
View file @
9ce41d07
...
...
@@ -3,10 +3,8 @@ import {
Modal
,
View
,
Text
,
TextInput
,
TouchableOpacity
,
ScrollView
,
StyleSheet
,
Image
,
FlatList
,
}
from
'react-native'
;
...
...
src/screens/list_work/style.js
View file @
9ce41d07
...
...
@@ -37,6 +37,26 @@ const styles = StyleSheet.create({
justifyContent
:
'center'
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
},
container_tab_view
:{
marginVertical
:
5
},
item_tab_view
:{
backgroundColor
:
R
.
colors
.
gray
,
marginHorizontal
:
5
,
borderRadius
:
10
,
width
:
107
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
},
active_tab_view
:{
backgroundColor
:
R
.
colors
.
blue
,
},
text_tab_view
:{
color
:
R
.
colors
.
white
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
},
text
:
{
fontSize
:
R
.
sizes
.
sm
,
color
:
R
.
colors
.
black
,
...
...
src/screens/list_work/view.js
View file @
9ce41d07
...
...
@@ -23,6 +23,7 @@ const ListWorkView = props => {
setSearchQuery
,
dataList
,
modalVisible
,
tabView
,
onFilterChange
,
onAddWork
,
onSaveWork
,
...
...
@@ -31,37 +32,20 @@ const ListWorkView = props => {
onReportAction
,
onApprovalAction
,
getStatusColor
,
getButtonsForStatus
,
tabView
,
getButtonsForStatus
}
=
props
;
const
renderTabView
=
()
=>
{
return
(
<
TabViewComponent
data
=
{
tabView
}
tabStyle
=
{{
backgroundColor
:
R
.
colors
.
gray
,
marginHorizontal
:
5
,
borderRadius
:
10
,
width
:
107
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
}}
style
=
{{
marginVertical
:
5
,
}}
tabStyle
=
{
styles
.
item_tab_view
}
style
=
{
styles
.
container_tab_view
}
mode
=
"filter"
defaultActiveKey
=
"all"
scrollable
=
{
true
}
activeTabStyle
=
{{
backgroundColor
:
R
.
colors
.
blue
,
}}
textStyle
=
{{
color
:
R
.
colors
.
white
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
}}
activeTabStyle
=
{
styles
.
active_tab_view
}
textStyle
=
{
styles
.
text_tab_view
}
showActiveIndicator
=
{
false
}
onFilterChange
=
{
onFilterChange
}
/
>
...
...
@@ -69,6 +53,7 @@ const ListWorkView = props => {
};
const
renderActionButtons
=
item
=>
{
const
buttons
=
getButtonsForStatus
(
item
.
status
);
return
buttons
.
map
((
button
,
index
)
=>
(
...
...
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