douzhuo před 2 roky
rodič
revize
172a419362
4 změnil soubory, kde provedl 45 přidání a 7 odebrání
  1. +33
    -1
      src/page/wel.vue
  2. +2
    -2
      src/views/ReceivingRecords/index.vue
  3. +4
    -4
      src/views/Statistics/ReceptionStatistical.vue
  4. +6
    -0
      src/views/building/index.vue

+ 33
- 1
src/page/wel.vue Zobrazit soubor

@@ -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();


+ 2
- 2
src/views/ReceivingRecords/index.vue Zobrazit soubor

@@ -372,11 +372,11 @@
<!-- <el-table-column prop="address" label="禁忌执行率" align="center">
</el-table-column> -->
<!-- scope -->
<!-- <el-table-column prop="taboo" label="是否违禁" align="center">
<el-table-column prop="taboo" label="是否违禁" align="center">
<template slot-scope="{ row }">
{{ row.taboo == 0 ? "否" : "是" }}
</template>
</el-table-column> -->
</el-table-column>
<!-- <el-table-column prop="zfal" label="是否加精" align="center">
<template slot-scope="{ row }">
{{ row.zfal == 0 ? "已加精" : "未加精" }}


+ 4
- 4
src/views/Statistics/ReceptionStatistical.vue Zobrazit soubor

@@ -177,14 +177,14 @@
>
</el-table-column>
<el-table-column
prop="sumDuration"
prop="sumDurationMinutes"
label="接待时长(分)"
align="center"
sortable
width="120"
>
<template slot-scope="{ row }">
{{ Math.floor(row.sumDuration / 60) }}分钟
{{ Math.floor(row.sumDurationMinutes) }}分钟
</template>
</el-table-column>
<el-table-column
@@ -273,13 +273,13 @@
>
</el-table-column>
<el-table-column
prop="sumDuration"
prop="sumDurationMinutes"
label="接待时长(分)"
align="center"
>
<template slot-scope="{ row }">
{{ Math.floor(row.sumDuration / 60) }}
{{ Math.floor(row.sumDurationMinutes) }}
</template>
</el-table-column>
<el-table-column


+ 6
- 0
src/views/building/index.vue Zobrazit soubor

@@ -726,6 +726,12 @@ export default {
this.searchForm.startWorking = this.starTime[0];
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.getOrgList();


Načítá se…
Zrušit
Uložit