Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
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
zhaochengxiang
szse
Commits
348636d6
Commit
348636d6
authored
Mar 18, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
岗位关联服务,增加统计
parent
60c0b690
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
select-data-service.jsx
...view/Manage/AssetManage/Component/select-data-service.jsx
+8
-5
No files found.
src/view/Manage/AssetManage/Component/select-data-service.jsx
View file @
348636d6
...
@@ -75,9 +75,9 @@ const FC = (props) => {
...
@@ -75,9 +75,9 @@ const FC = (props) => {
if
(
g
.
status
===
-
1
)
{
if
(
g
.
status
===
-
1
)
{
g
.
title
=
`
${
g
.
title
}
_已停用`
g
.
title
=
`
${
g
.
title
}
_已停用`
}
}
//
if (countMap?.[g.id]!==undefined && countMap?.[g.id]!==null) {
if
(
countMap
?.[
g
.
id
]
!==
undefined
&&
countMap
?.[
g
.
id
]
!==
null
)
{
//
g.title = `${g.title} (${countMap[g.id]})`
g
.
title
=
`
${
g
.
title
}
(
${
countMap
[
g
.
id
]}
)`
//
}
}
g
.
children
=
[];
g
.
children
=
[];
(
g
.
subCatalogs
??[]).
forEach
((
child
)
=>
{
(
g
.
subCatalogs
??[]).
forEach
((
child
)
=>
{
...
@@ -173,11 +173,14 @@ const FC = (props) => {
...
@@ -173,11 +173,14 @@ const FC = (props) => {
let
newData
=
{}
let
newData
=
{}
for
(
const
key
in
(
data
||
{}))
{
for
(
const
key
in
(
data
||
{}))
{
let
total
=
0
let
total
=
0
const
item
=
data
[
key
]
const
item
=
data
[
key
]
for
(
const
id
in
item
)
{
for
(
const
id
in
item
)
{
total
=
total
+
item
[
id
]??
0
if
(
id
===
'4'
)
{
total
=
total
+
item
[
id
]??
0
newData
[
key
]
=
total
}
}
}
newData
[
key
]
=
total
}
}
setCount
(
newData
)
setCount
(
newData
)
...
...
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