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
2eea8ea5
Commit
2eea8ea5
authored
Feb 04, 2021
by
gj4210
👁
Browse files
UPD: Format EVlog time
parent
1c4748d3
Pipeline
#132024
passed with stages
in 6 minutes and 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
frontend/src/components/EVLogViewer.vue
View file @
2eea8ea5
...
@@ -53,7 +53,8 @@ export default {
...
@@ -53,7 +53,8 @@ export default {
{
{
key
:
'
ta_timestamp
'
,
key
:
'
ta_timestamp
'
,
label
:
'
Zeit
'
,
label
:
'
Zeit
'
,
sortable
:
true
sortable
:
true
,
formatter
:
this
.
formatDate
},
},
{
{
key
:
'
mgr_login_name
'
,
key
:
'
mgr_login_name
'
,
...
@@ -93,6 +94,12 @@ export default {
...
@@ -93,6 +94,12 @@ export default {
},
},
ta_color
(
value
,
key
,
item
,
type
)
{
ta_color
(
value
,
key
,
item
,
type
)
{
return
{
style
:
'
background:
'
+
item
.
ta_timestamp
.
toHSL
({
lit
:
[
30
,
40
]})}
return
{
style
:
'
background:
'
+
item
.
ta_timestamp
.
toHSL
({
lit
:
[
30
,
40
]})}
},
formatDate
(
value
,
key
,
item
)
{
if
(
value
==
null
)
{
return
'
N/A
'
}
return
new
Date
(
Date
.
parse
(
value
)).
toLocaleString
(
'
de-DE
'
)
}
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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