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
77831032
Commit
77831032
authored
Dec 14, 2022
by
Евгений Положенцев
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#105
added UsersTasks folder
parent
8827bdc4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
516 additions
and
1 deletion
+516
-1
TableRowTask.js
...components/MyTasksCompoments/TableRowTask/TableRowTask.js
+32
-1
UsersTasks.js
planner-front/src/containers/UsersTasks/UsersTasks.js
+358
-0
UsersTasksHeader.js
...ontainers/UsersTasks/UsersTasksHeader/UsersTasksHeader.js
+126
-0
No files found.
planner-front/src/components/MyTasksCompoments/TableRowTask/TableRowTask.js
View file @
77831032
...
@@ -31,11 +31,12 @@ const TableRowTask= ({
...
@@ -31,11 +31,12 @@ const TableRowTask= ({
deleteHandle
,
deleteHandle
,
handleEditTask
,
handleEditTask
,
deleteDateTimeTask
,
deleteDateTimeTask
,
// handleEditDateTimeTask,
onChange
,
onChange
,
onModalOpen
,
onModalOpen
,
onProjectChange
,
onProjectChange
,
onExecutorChange
,
uniqueProjects
,
uniqueProjects
,
executors
,
onAuthorChange
,
onAuthorChange
,
onDateChange
,
onDateChange
,
onToggleEditMode
,
onToggleEditMode
,
...
@@ -144,6 +145,36 @@ const TableRowTask= ({
...
@@ -144,6 +145,36 @@ const TableRowTask= ({
/
>
/
>
)}
)}
{
/* executor cell display */
}
{
/* executor cell display */
}
{
/* executor cell display */
}
{
/* executor cell display */
}
{
task
.
isEditMode
&&
task
.
author
.
id
===
user
.
id
?
(
<
TableCell
>
<
BasicSelect
items
=
{
executors
.
map
((
e
)
=>
({
value
:
e
?.
id
,
title
:
e
?.
displayName
,
}))}
task
=
{
task
}
onChange
=
{
onExecutorChange
}
name
=
"executor"
value
=
{
task
.
executor
?.
id
}
/
>
<
/TableCell
>
)
:
(
<
CustomTableCell
{...{
task
,
name
:
"executor"
,
value
:
task
.
executor
?.
displayName
,
user
:
user
}}
/
>
)}
<
CustomTableCell
<
CustomTableCell
{...{
{...{
task
,
task
,
...
...
planner-front/src/containers/UsersTasks/UsersTasks.js
0 → 100644
View file @
77831032
This diff is collapsed.
Click to expand it.
planner-front/src/containers/UsersTasks/UsersTasksHeader/UsersTasksHeader.js
0 → 100644
View file @
77831032
import
*
as
React
from
"react"
;
import
PropTypes
from
"prop-types"
;
import
Box
from
"@mui/material/Box"
;
import
TableCell
from
"@mui/material/TableCell"
;
import
TableHead
from
"@mui/material/TableHead"
;
import
TableRow
from
"@mui/material/TableRow"
;
import
TableSortLabel
from
"@mui/material/TableSortLabel"
;
import
{
visuallyHidden
}
from
"@mui/utils"
;
const
headCells
=
[
{
id
:
"id"
,
numeric
:
true
,
disablePadding
:
true
,
label
:
""
,
},
{
id
:
"priority"
,
numeric
:
false
,
disablePadding
:
true
,
label
:
"Приоритет"
,
},
{
id
:
"createdAt"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Дата создания"
,
},
{
id
:
"title"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Заголовок"
,
},
{
id
:
"projectName"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Проект"
,
},
{
id
:
"executorDisplayName"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Исполнитель"
,
},
{
id
:
"authorDisplayName"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Автор"
,
},
{
id
:
"dateTimeStart"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Дата и время выполнения"
,
},
{
id
:
"dateTimeDue"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Дедлайн"
,
},
{
id
:
"accomplish"
,
numeric
:
true
,
disablePadding
:
false
,
label
:
"Статус"
,
},
{
id
:
"change"
,
numeric
:
false
,
disablePadding
:
false
,
label
:
""
,
},
{
id
:
"delete"
,
numeric
:
false
,
disablePadding
:
false
,
label
:
""
,
},
];
export
default
function
UsersTasksHeader
({
order
,
orderBy
,
rowCount
,
onRequestSort
})
{
const
createSortHandler
=
(
property
)
=>
(
event
)
=>
{
onRequestSort
(
event
,
property
);
};
return
(
<
TableHead
>
<
TableRow
>
{
headCells
.
map
((
headCell
)
=>
(
<
TableCell
key
=
{
headCell
.
id
}
align
=
{
"center"
}
padding
=
{
headCell
.
disablePadding
?
"none"
:
"normal"
}
sortDirection
=
{
orderBy
===
headCell
.
id
?
order
:
false
}
>
<
TableSortLabel
active
=
{
orderBy
===
headCell
.
id
}
direction
=
{
orderBy
===
headCell
.
id
?
order
:
"asc"
}
onClick
=
{
createSortHandler
(
headCell
.
id
)}
>
{
headCell
.
label
}
{
orderBy
===
headCell
.
id
?
(
<
Box
component
=
"span"
sx
=
{
visuallyHidden
}
>
{
order
===
"desc"
?
"sorted descending"
:
"sorted ascending"
}
<
/Box
>
)
:
null
}
<
/TableSortLabel
>
<
/TableCell
>
))}
<
/TableRow
>
<
/TableHead
>
);
}
EnhancedTableHead
.
propTypes
=
{
onRequestSort
:
PropTypes
.
func
.
isRequired
,
order
:
PropTypes
.
oneOf
([
"asc"
,
"desc"
]).
isRequired
,
orderBy
:
PropTypes
.
string
.
isRequired
,
rowCount
:
PropTypes
.
number
.
isRequired
,
};
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