Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vcci-news-frontend
Project
Project
Details
Activity
Releases
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
Văn Hoàng
vcci-news-frontend
Commits
eb79d2ed
Commit
eb79d2ed
authored
Oct 13, 2026
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Plain Diff
[tag]0.1-vcci
parents
ead1f37d
f2aa38ec
Pipeline
#53654
passed with stages
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
SoDoToChuc.tsx
src/app/(main)/[...slug]/static-pages/SoDoToChuc.tsx
+18
-1
No files found.
src/app/(main)/[...slug]/static-pages/SoDoToChuc.tsx
View file @
eb79d2ed
...
...
@@ -108,6 +108,9 @@ const ORG_PHONES: Record<string, string> = {
"Nguyễn Huy Hoàng"
:
"0983349447"
,
"Nguyễn Thị Quỳnh Như"
:
"0937267286"
,
"Nguyễn Thị Như Quỳnh"
:
"0937267286"
,
"Vũ Thị Hiền"
:
"0949549480"
,
"Nguyễn Đức Hường"
:
"0909557219"
,
"Trương Thanh Tần"
:
"0389977097"
};
export
default
function
SoDoToChuc
({
category
,
allCategories
}:
SoDoToChucProps
)
{
...
...
@@ -121,7 +124,21 @@ export default function SoDoToChuc({ category, allCategories }: SoDoToChucProps)
const
initiallyCollapsedDepartmentIds
=
new
Set
(
ORG_DEPARTMENTS
.
map
((
department
)
=>
department
.
id
));
const
expandedDepartmentDetails
=
new
Set
<
string
>
();
const
previousDepartmentByManager
=
new
Map
<
string
,
string
>
();
const
chartData
=
[
ORG_DIRECTOR
,
...
ORG_DEPUTIES
,
...
ORG_DEPARTMENTS
].
map
((
node
)
=>
{
// Cột 4 phòng ban trực thuộc Giám đốc đứng sau Nguyễn Thị Huệ và trước Nguyễn Hữu Trường.
const
deputyById
=
(
id
:
string
)
=>
ORG_DEPUTIES
.
find
((
node
)
=>
node
.
id
===
id
)
!
;
const
directorDepartments
=
ORG_DEPARTMENTS
.
filter
((
node
)
=>
node
.
parentId
===
ORG_DIRECTOR
.
id
);
const
deputyDepartments
=
ORG_DEPARTMENTS
.
filter
((
node
)
=>
node
.
parentId
!==
ORG_DIRECTOR
.
id
);
const
chartData
=
[
ORG_DIRECTOR
,
deputyById
(
"deputy-nam"
),
deputyById
(
"deputy-ninh"
),
deputyById
(
"deputy-hue"
),
...
directorDepartments
,
deputyById
(
"deputy-truong"
),
deputyById
(
"deputy-huyen"
),
deputyById
(
"deputy-thoai"
),
...
deputyDepartments
,
].
map
((
node
)
=>
{
const
managerId
=
node
.
parentId
;
if
(
!
initiallyCollapsedDepartmentIds
.
has
(
node
.
id
)
||
!
managerId
)
return
node
;
if
(
managerId
!==
ORG_DIRECTOR
.
id
&&
!
managerId
.
startsWith
(
"deputy-"
))
return
node
;
...
...
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