Commit 4120b771 by 姜雷

Merge branch 'test' into 'master'

Test See merge request !11
parents e01945e9 c3abe53e
...@@ -88,11 +88,19 @@ export default { ...@@ -88,11 +88,19 @@ export default {
}, },
computed: { computed: {
day() { day() {
let sed = Math.ceil( let sub =
(new Date(this.selected.endDate).getTime() / 1000 / 60 / 60 -
new Date(this.selected.beginDate).getTime() / 1000 / 60 / 60) %
24 >
1
? 1
: 0;
let sed =
Math.floor(
(new Date(this.selected.endDate).getTime() / 1000 / 60 / 60 - (new Date(this.selected.endDate).getTime() / 1000 / 60 / 60 -
new Date(this.selected.beginDate).getTime() / 1000 / 60 / 60) / new Date(this.selected.beginDate).getTime() / 1000 / 60 / 60) /
24 24
); ) + sub;
return sed; return sed;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment