@@ -541,7 +541,7 @@ | |||||
<div v-if="role != 2"> | <div v-if="role != 2"> | ||||
<!-- 卡片部分 --> | <!-- 卡片部分 --> | ||||
<div class="page-container grid4"> | <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 style="width:100%"> | ||||
<div class="pageboxtitle1 projectCardItem"> | <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) { | jumpto(ind) { | ||||
let num = 24 * 3600 * 1000 * 29; | let num = 24 * 3600 * 1000 * 29; | ||||
let dang = this.getCurrentTime(); | let dang = this.getCurrentTime(); | ||||
@@ -372,11 +372,11 @@ | |||||
<!-- <el-table-column prop="address" label="禁忌执行率" align="center"> | <!-- <el-table-column prop="address" label="禁忌执行率" align="center"> | ||||
</el-table-column> --> | </el-table-column> --> | ||||
<!-- scope --> | <!-- scope --> | ||||
<!-- <el-table-column prop="taboo" label="是否违禁" align="center"> | |||||
<el-table-column prop="taboo" label="是否违禁" align="center"> | |||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
{{ row.taboo == 0 ? "否" : "是" }} | {{ row.taboo == 0 ? "否" : "是" }} | ||||
</template> | </template> | ||||
</el-table-column> --> | |||||
</el-table-column> | |||||
<!-- <el-table-column prop="zfal" label="是否加精" align="center"> | <!-- <el-table-column prop="zfal" label="是否加精" align="center"> | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
{{ row.zfal == 0 ? "已加精" : "未加精" }} | {{ row.zfal == 0 ? "已加精" : "未加精" }} | ||||
@@ -177,14 +177,14 @@ | |||||
> | > | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column | ||||
prop="sumDuration" | |||||
prop="sumDurationMinutes" | |||||
label="接待时长(分)" | label="接待时长(分)" | ||||
align="center" | align="center" | ||||
sortable | sortable | ||||
width="120" | width="120" | ||||
> | > | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
{{ Math.floor(row.sumDuration / 60) }}分钟 | |||||
{{ Math.floor(row.sumDurationMinutes) }}分钟 | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column | ||||
@@ -273,13 +273,13 @@ | |||||
> | > | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column | ||||
prop="sumDuration" | |||||
prop="sumDurationMinutes" | |||||
label="接待时长(分)" | label="接待时长(分)" | ||||
align="center" | align="center" | ||||
> | > | ||||
<template slot-scope="{ row }"> | <template slot-scope="{ row }"> | ||||
{{ Math.floor(row.sumDuration / 60) }} | |||||
{{ Math.floor(row.sumDurationMinutes) }} | |||||
</template> | </template> | ||||
</el-table-column> | </el-table-column> | ||||
<el-table-column | <el-table-column | ||||
@@ -726,6 +726,12 @@ export default { | |||||
this.searchForm.startWorking = this.starTime[0]; | this.searchForm.startWorking = this.starTime[0]; | ||||
this.searchForm.endWorking = this.starTime[1]; | this.searchForm.endWorking = this.starTime[1]; | ||||
} | } | ||||
if (this.$route.query.types) { | |||||
this.starTime = [this.$route.query.types.split(",")[0], this.$route.query.types.split(",")[1]]; | |||||
this.searchForm.startWorking = this.starTime[0]; | |||||
this.searchForm.endWorking = this.starTime[1]; | |||||
} | |||||
this.orgType = localStorage.getItem("orgType"); | this.orgType = localStorage.getItem("orgType"); | ||||
// 获取公司列表数据 | // 获取公司列表数据 | ||||
this.getOrgList(); | this.getOrgList(); | ||||