Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
1c4748d3
Commit
1c4748d3
authored
Feb 04, 2021
by
gj4210
👽
Browse files
UPD: Color code transactions in EVlog
parent
df38215c
Pipeline
#132023
passed with stages
in 6 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/EVLogViewer.vue
View file @
1c4748d3
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
import
EVLogService
from
'
@/api-services/evlog.service
'
import
EVLogService
from
'
@/api-services/evlog.service
'
import
Loading
from
'
@/components/Loading
'
import
Loading
from
'
@/components/Loading
'
import
apiutil
from
'
@/util/apiutil
'
import
apiutil
from
'
@/util/apiutil
'
import
'
@/util/colorutil
'
export
default
{
export
default
{
name
:
'
EVLogViewer
'
,
name
:
'
EVLogViewer
'
,
...
@@ -36,6 +37,11 @@ export default {
...
@@ -36,6 +37,11 @@ export default {
record_types
:
{},
record_types
:
{},
top_n
:
25
,
top_n
:
25
,
table_fields
:
[
table_fields
:
[
{
key
:
'
ta
'
,
label
:
''
,
tdAttr
:
this
.
ta_color
},
{
{
key
:
'
data
'
,
key
:
'
data
'
,
label
:
'
Beschreibung
'
label
:
'
Beschreibung
'
...
@@ -83,11 +89,14 @@ export default {
...
@@ -83,11 +89,14 @@ export default {
const
res
=
await
EVLogService
.
getByFK
(
this
.
$store
.
state
.
netdb_axios_config
,
this
.
ref_obj_fq
,
this
.
refobj_id_field
,
this
.
refobj_id_value
,
parseInt
(
this
.
top_n
))
const
res
=
await
EVLogService
.
getByFK
(
this
.
$store
.
state
.
netdb_axios_config
,
this
.
ref_obj_fq
,
this
.
refobj_id_field
,
this
.
refobj_id_value
,
parseInt
(
this
.
top_n
))
this
.
records
=
res
.
data
[
1
]
this
.
records
=
res
.
data
[
1
]
this
.
record_types
=
apiutil
.
dict_by_value_of_array
(
res
.
data
[
2
],
'
short_name
'
)
this
.
record_types
=
apiutil
.
dict_by_value_of_array
(
res
.
data
[
2
],
'
short_name
'
)
window
.
console
.
log
(
this
.
records
)
},
ta_color
(
value
,
key
,
item
,
type
)
{
return
{
style
:
'
background:
'
+
item
.
ta_timestamp
.
toHSL
({
lit
:
[
30
,
40
]})}
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
</
style
>
</
style
>
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