Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
蔡永松
/
fontweb-dc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c27af4e9
authored
2020-08-03 17:57:37 +0800
by
焦小希
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改时间过滤器
1 parent
39438852
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
src/main/webapp/view/PHJG/AJCC/yiban/js/widget.js
src/main/webapp/view/PHJG/AJCC/yiban/widget.html
src/main/webapp/view/PHJG/AJCC/yiban/js/widget.js
View file @
c27af4e
...
...
@@ -68,6 +68,21 @@ var self = new Vue({
mounted
(){
this
.
getData
();
},
//私有过滤器
filters
:{
dataFormat
:
function
(
originVal
)
{
const
dt
=
new
Date
(
originVal
)
const
y
=
dt
.
getFullYear
()
const
m
=
(
dt
.
getMonth
()
+
1
+
''
).
padStart
(
2
,
'0'
)
const
d
=
(
dt
.
getDate
()
+
''
).
padStart
(
2
,
'0'
)
const
hh
=
(
dt
.
getHours
()
+
''
).
padStart
(
2
,
'0'
)
const
mm
=
(
dt
.
getMinutes
()
+
''
).
padStart
(
2
,
'0'
)
const
ss
=
(
dt
.
getSeconds
()
+
''
).
padStart
(
2
,
'0'
)
// yyyy-mm-dd hh:mm:ss
return
`
${
y
}
-
${
m
}
-
${
d
}
${
hh
}
:
${
mm
}
:
${
ss
}
`
}
},
methods
:{
getData
()
{
axios
.
get
(
CONF_NEWGHSC_SERVERURL
+
'/dblb/list/worked'
,
{
...
...
src/main/webapp/view/PHJG/AJCC/yiban/widget.html
View file @
c27af4e
...
...
@@ -183,6 +183,11 @@
align=
"center"
width=
"200"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope.row.CREATETIME | dataFormat
}}
</span>
</template>
</el-table-column>
<el-table-column
prop=
"RECEIVETIME"
...
...
Please
register
or
sign in
to post a comment