Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
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
Евгений Положенцев
planner-team-one
Commits
732d1658
Commit
732d1658
authored
Jan 11, 2023
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#146
setup mytask on translated statuses of tasks
parent
00ed8c90
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
8 deletions
+18
-8
Task.ts
planner-api/src/models/Task.ts
+2
-2
CalendarStandartCell.js
...Calendars/UI/CalendarStandartCell/CalendarStandartCell.js
+1
-1
TableRowTask.js
...components/MyTasksCompoments/TableRowTask/TableRowTask.js
+7
-4
MyTasks.js
planner-front/src/containers/MyTasks/MyTasks.js
+1
-1
TableTasksHelpers.js
planner-front/src/helpers/TableTasksHelpers.js
+7
-0
No files found.
planner-api/src/models/Task.ts
View file @
732d1658
...
@@ -14,7 +14,7 @@ import {
...
@@ -14,7 +14,7 @@ import {
import
{
Project
}
from
'./Project'
;
import
{
Project
}
from
'./Project'
;
import
{
DateTimeTask
}
from
'./DateTimeTask'
;
import
{
DateTimeTask
}
from
'./DateTimeTask'
;
export
type
taskFinishType
=
"opened"
|
"
in-
progress"
|
"done"
|
"failed"
|
"cancelled"
;
export
type
taskFinishType
=
"opened"
|
"progress"
|
"done"
|
"failed"
|
"cancelled"
;
export
type
priorityType
=
"A"
|
"B"
|
"C"
;
export
type
priorityType
=
"A"
|
"B"
|
"C"
;
interface
ITask
{
interface
ITask
{
...
@@ -55,7 +55,7 @@ import { DateTimeTask } from './DateTimeTask';
...
@@ -55,7 +55,7 @@ import { DateTimeTask } from './DateTimeTask';
@
Column
({
@
Column
({
type
:
"enum"
,
type
:
"enum"
,
enum
:
[
"opened"
,
"done"
,
"failed"
,
"
in-
progress"
,
"cancelled"
],
enum
:
[
"opened"
,
"done"
,
"failed"
,
"progress"
,
"cancelled"
],
default
:
"opened"
default
:
"opened"
})
})
accomplish
!
:
taskFinishType
accomplish
!
:
taskFinishType
...
...
planner-front/src/components/Calendars/UI/CalendarStandartCell/CalendarStandartCell.js
View file @
732d1658
...
@@ -22,7 +22,7 @@ const CalendarStandartCell = ({ children, xs, hours, dayNumber, createTaskInCell
...
@@ -22,7 +22,7 @@ const CalendarStandartCell = ({ children, xs, hours, dayNumber, createTaskInCell
}
}
},[
copyTask
,
copyModeTask
,
year
,
month
,
dayNumber
,
hours
])
},[
copyTask
,
copyModeTask
,
year
,
month
,
dayNumber
,
hours
])
console
.
log
(
copyTask
)
//
console.log(copyTask)
const
cellClass
=
useMemo
(()
=>
{
const
cellClass
=
useMemo
(()
=>
{
const
backgroundColor
=
isDeadLine
?
'#fa9b9be3'
:
'null'
const
backgroundColor
=
isDeadLine
?
'#fa9b9be3'
:
'null'
return
({
return
({
...
...
planner-front/src/components/MyTasksCompoments/TableRowTask/TableRowTask.js
View file @
732d1658
...
@@ -25,6 +25,7 @@ import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
...
@@ -25,6 +25,7 @@ import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
import
{
useNavigate
}
from
"react-router-dom"
;
import
{
useNavigate
}
from
"react-router-dom"
;
import
{
useDispatch
}
from
"react-redux"
;
import
{
useDispatch
}
from
"react-redux"
;
import
{
activateCreateCopyTasksMode
}
from
"../../../store/actions/tasksActions"
;
import
{
activateCreateCopyTasksMode
}
from
"../../../store/actions/tasksActions"
;
import
{
TaskStatuses
}
from
"../../../helpers/TableTasksHelpers"
;
const
weekDays
=
[
"Вс"
,
"Пн"
,
"Вт"
,
"Ср"
,
"Чт"
,
"Пт"
,
"Сб"
];
const
weekDays
=
[
"Вс"
,
"Пн"
,
"Вт"
,
"Ср"
,
"Чт"
,
"Пт"
,
"Сб"
];
...
@@ -232,9 +233,11 @@ const TableRowTask= ({
...
@@ -232,9 +233,11 @@ const TableRowTask= ({
<
TableCell
>
<
TableCell
>
<
BasicSelect
<
BasicSelect
items
=
{[
items
=
{[
{
value
:
"opened"
,
title
:
"opened"
},
{
value
:
"opened"
,
title
:
"создано"
},
{
value
:
"done"
,
title
:
"done"
},
{
value
:
"done"
,
title
:
"выполнено"
},
{
value
:
"failed"
,
title
:
"failed"
},
{
value
:
"failed"
,
title
:
"просрочено"
},
{
value
:
"progress"
,
title
:
"в работе"
},
{
value
:
"cancelled"
,
title
:
"отменено"
},
]}
]}
task
=
{
task
}
task
=
{
task
}
onChange
=
{
onChange
}
onChange
=
{
onChange
}
...
@@ -248,7 +251,7 @@ const TableRowTask= ({
...
@@ -248,7 +251,7 @@ const TableRowTask= ({
{...{
{...{
task
,
task
,
name
:
"accomplish"
,
name
:
"accomplish"
,
value
:
task
.
accomplish
,
value
:
TaskStatuses
[
task
.
accomplish
]
,
user
:
user
user
:
user
}}
}}
/
>
/
>
...
...
planner-front/src/containers/MyTasks/MyTasks.js
View file @
732d1658
...
@@ -44,7 +44,7 @@ export default function EnhancedTable() {
...
@@ -44,7 +44,7 @@ export default function EnhancedTable() {
},
[
},
[
tasks
?.
length
,
tasks
?.
length
,
addTaskForm
,
setAddTaskForm
,
dispatch
]);
addTaskForm
,
setAddTaskForm
,
dispatch
]);
console
.
log
(
'tasks '
,
tasks
,
'projects '
,
projects
,
"recievedTasks "
,
recievedTasks
)
//
console.log('tasks ', tasks, 'projects ', projects,"recievedTasks ", recievedTasks )
...
...
planner-front/src/helpers/TableTasksHelpers.js
0 → 100644
View file @
732d1658
export
const
TaskStatuses
=
{
'done'
:
'выполнено'
,
'cancelled'
:
'отменено'
,
'progress'
:
'в работе'
,
'failed'
:
'просрочено'
,
'opened'
:
'создано'
};
\ No newline at end of file
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