|
|
@@ -541,7 +541,7 @@ |
|
|
|
<div v-if="role != 2"> |
|
|
|
<!-- 卡片部分 --> |
|
|
|
<div class="page-container grid4"> |
|
|
|
<div class="pagechen" @click="toDetail('/building/index', '', '楼盘管理')"> |
|
|
|
<div class="pagechen" @click="toDetail('/building/index', getTimes(), '楼盘管理')"> |
|
|
|
|
|
|
|
<div style="width:100%"> |
|
|
|
<div class="pageboxtitle1 projectCardItem"> |
|
|
@@ -1630,6 +1630,38 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 获取时间段 |
|
|
|
getTimes() { |
|
|
|
let str = '' |
|
|
|
let time = new Date().getTime() |
|
|
|
if (this.TimetoAhoose == 0) { |
|
|
|
str = `${new Date(time).getFullYear()}-${new Date(time).getMonth()+1}-${new Date(time).getDate()}` |
|
|
|
} |
|
|
|
if (this.TimetoAhoose == 1) { |
|
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; |
|
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
|
|
new Date(starTime).getMonth() + 1 |
|
|
|
}-${new Date(starTime).getDate()}`; |
|
|
|
let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; |
|
|
|
let endDate = `${new Date(endTime).getFullYear()}-${ |
|
|
|
new Date(endTime).getMonth() + 1 |
|
|
|
}-${new Date(endTime).getDate()}`; |
|
|
|
str = `${startDate},${endDate}` |
|
|
|
} |
|
|
|
if(this.TimetoAhoose == 2) { |
|
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 30; |
|
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
|
|
new Date(starTime).getMonth() + 1 |
|
|
|
}-${new Date(starTime).getDate()}`; |
|
|
|
let endTime = new Date().getTime() - 24 * 60 * 60 * 1000; |
|
|
|
let endDate = `${new Date(endTime).getFullYear()}-${ |
|
|
|
new Date(endTime).getMonth() + 1 |
|
|
|
}-${new Date(endTime).getDate()}`; |
|
|
|
str = `${startDate},${endDate}` |
|
|
|
} |
|
|
|
return str |
|
|
|
}, |
|
|
|
|
|
|
|
jumpto(ind) { |
|
|
|
let num = 24 * 3600 * 1000 * 29; |
|
|
|
let dang = this.getCurrentTime(); |
|
|
|