Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
rongtong-app
Commits
26d2b72a
Commit
26d2b72a
authored
Aug 14, 2023
by
p-wanping.song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
8910a1be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/views/riskProject/assess/model/step2.vue
src/views/riskProject/assess/model/step2.vue
+2
-1
No files found.
src/views/riskProject/assess/model/step2.vue
View file @
26d2b72a
...
...
@@ -166,7 +166,8 @@ import { getFun, postFun } from "@/service/table";
types
.
forEach
(
val
=>
{
// 计算 ’人、机‘大类的总值val.total
val
.
total
=
val
.
factorList
.
reduce
((
total
,
item
)
=>
{
return
total
+
(
item
.
factorItemsList
.
find
(
idx
=>
idx
.
id
===
item
.
value
)?.
indicatorScore
||
0
)
const
sum
=
item
.
factorItemsList
.
find
(
idx
=>
idx
.
id
===
item
.
value
);
return
total
+
(
sum
?
sum
.
indicatorScore
:
0
)
},
0
)
// 计算 ’人、机‘大类的平均值val.average
val
.
average
=
val
.
factorList
.
length
?
val
.
total
/
val
.
factorList
.
length
:
0
;
...
...
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