Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王涛
3 years ago
Commit
81c0a7d236e46f01fcebbf452a89b8f3ac29afa2
2 parents
4438d773
870cf46f
Merge branch 'master-v32-xwx' into 'master'
故障诊断性能曲线图 See merge request
!824
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/result/service.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/faultDiagnosis/result/service.js
View file @
81c0a7d
...
...
@@ -29,7 +29,7 @@ const lineService = () => {
let
getLineData
=
(
proxy
,
faultNo
,
targetType
,
resId
,
kpiId
,
flag
)
=>
{
let
params
=
{
faultNo
:
faultNo
,
targetType
:
targetType
,
targetType
:
targetType
.
toLocaleUpperCase
()
,
resId
:
resId
,
kpiId
:
kpiId
,
flag
:
flag
...
...
@@ -331,8 +331,6 @@ const faultEvent = () => {
prop
:
kpiId
,
label
:
kpiName
+
units
}
debugger
if
(
listItem
.
kpiIdent
==
1
){
colObj
[
'click'
]
=
(
row
)
=>
{
if
(
row
)
{
...
...
@@ -433,26 +431,12 @@ const faultEvent = () => {
prop
:
'isAbnormal'
,
width
:
200
,
label
:
'诊断结果'
,
click
:
(
row
)
=>
{
if
(
row
&&
row
.
kpiIdent
==
1
)
{
sendEventLineDialog
(
emit
,
{
faultNo
:
faultNo
,
targetType
:
targetType
,
resId
:
row
.
resId
,
kpiId
:
row
.
kpiId
,
flag
:
row
.
flag
,
resClass
:
''
})
}
},
render
:
function
(
row
)
{
if
(
row
)
{
var
lineClass
=
row
.
kpiIdent
==
1
?
'text-decoration: underline;'
:
''
;
if
(
row
.
isAbnormal
!=
1
&&
row
.
isAbnormal
!=
null
)
{
return
`
<
span
style
=
"
${lineClass}
color:#00A522;"
>
正常
<
/span>
`
return
`
<
span
style
=
"color:#00A522;"
>
正常
<
/span>
`
}
else
{
return
`
<
span
style
=
"
${lineClass}color: red
"
>
异常
<
/span>
`
return
`
<
span
style
=
"
color: red
"
>
异常
<
/span>
`
}
}
return
''
;
...
...
Please
register
or
login
to post a comment