Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
shanyunduo.cheng
2021-12-07 17:35:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ccda7d08a83799fba9224d9ec0f723d1b8fd9bfa
ccda7d08
1 parent
f65f725f
时间格式
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
src/views/allocationConfig/flightAllocConfig/index.vue
src/views/allocationConfig/flightAllocConfig/index.vue
View file @
ccda7d0
...
...
@@ -228,20 +228,24 @@ export default {
this.getList();
},
filters: {
formatTimer: function (value) {
let date = new Date(value);
let y = date.getFullYear();
let MM = date.getMonth() + 1;
MM = MM < 10 ? "0" + MM : MM;
let d = date.getDate();
d = d < 10 ? "0" + d : d;
let h = date.getHours();
h = h < 10 ? "0" + h : h;
let m = date.getMinutes();
m = m < 10 ? "0" + m : m;
let s = date.getSeconds();
s = s < 10 ? "0" + s : s;
return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s;
formatTimer: function (time) {
let time1 = new Date(time.replace(/-/g, '/').replace('T', ' ')).toISOString() // 转为国际标准化时间
return time1.split('T')[0] + " " + time1.split('T')[1].substring(0,8);
// let date = new Date(value);
// let y = date.getFullYear();
// let MM = date.getMonth() + 1;
// MM = MM < 10 ? "0" + MM : MM;
// let d = date.getDate();
// d = d < 10 ? "0" + d : d;
// let h = date.getHours();
// h = h < 10 ? "0" + h : h;
// let m = date.getMinutes();
// m = m < 10 ? "0" + m : m;
// let s = date.getSeconds();
// s = s < 10 ? "0" + s : s;
// return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s;
},
},
};
...
...
Please
register
or
login
to post a comment