douzhuo пре 2 година
родитељ
комит
c8448fd53c
3 измењених фајлова са 579 додато и 506 уклоњено
  1. +50
    -8
      src/page/wel.vue
  2. +498
    -498
      src/views/Statistics/BuildingContrast.vue
  3. +31
    -0
      src/views/Statistics/index.js

+ 50
- 8
src/page/wel.vue Прегледај датотеку

@@ -940,14 +940,14 @@
<div
class="text1"
style="margin-right: 10px"
@click="classatec1 = 0"
@click="chooseCompanyRank('classatec1', 0)"
:class="{ colostyle: classatec1 == 0 }"
>
接待量
</div>
<div
class="text1"
@click="classatec1 = 1"
@click="chooseCompanyRank('classatec1', 1)"
:class="{ colostyle: classatec1 == 1 }"
>
平均执行率
@@ -1007,14 +1007,14 @@
<div
class="text1"
style="margin-right: 10px"
@click="classatec2 = 0"
@click="chooseCompanyRank('classatec2', 0)"
:class="{ colostyle: classatec2 == 0 }"
>
接待量
</div>
<div
class="text1"
@click="classatec2 = 1"
@click="chooseCompanyRank('classatec2', 1)"
:class="{ colostyle: classatec2 == 1 }"
>
平均执行率
@@ -1089,7 +1089,9 @@ export default {
houseId: "",
houseList: [],
houseRank: [],
allHouseRank: {}, // 全部的楼盘排名
companyRank: [],
allCompanyRank: {}, // 全部的排名列表
classatec: 1,
classatec1: 0,
classatec2: 0,
@@ -1280,14 +1282,54 @@ export default {
this.sysCompare = res.data.midB;
this.orderBy = res.data.midC;
if (this.role == 2) {
this.houseRank = res.data.accountRank;
this.companyRank = res.data.houseRank;
this.houseRank = res.data.accountRank.avgFraction;
this.companyRank = res.data.houseRank.avgFraction;
this.allHouseRank = res.data.houseRank
this.allCompanyRank = res.data.accountRank
} else {
this.houseRank = res.data.houseRank;
this.companyRank = res.data.companyRank;
this.houseRank = res.data.houseRank.avgFraction || [];
this.allHouseRank = res.data.houseRank
this.allCompanyRank = res.data.companyRank
this.companyRank = res.data.companyRank.avgFraction || [];
}
});
},

// 选择公司类型切换 classatec1 公司/楼盘 classatec2 楼盘/顾问
chooseCompanyRank(keys, index) {
this[keys] = index
console.log(keys)
if (this.role != 2) {
if (keys == 'classatec1') {
if (index == 0) {
this.companyRank = this.allCompanyRank.avgFraction
} else {
this.companyRank = this.allCompanyRank.receptionCount
}
} else {
if (index == 0) {
this.houseRank = this.allHouseRank.avgFraction
} else {
this.houseRank = this.allHouseRank.receptionCount
}
}
} else {
if (keys == 'classatec1') {
if (index == 0) {
this.houseRank = this.allCompanyRank.avgFraction
} else {
this.houseRank = this.allCompanyRank.receptionCount
}
} else {
if (index == 0) {
this.companyRank = this.allHouseRank.avgFraction
} else {
this.companyRank = this.allHouseRank.receptionCount
}
}
}
},

//获取楼盘
zkhousePage() {
this.$api.api


+ 498
- 498
src/views/Statistics/BuildingContrast.vue
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 31
- 0
src/views/Statistics/index.js Прегледај датотеку

@@ -0,0 +1,31 @@
var IframeOnClick = {
resolution: 200,
iframes: [],
interval: null,
Iframe: function () {
this.element = arguments[0];
this.cb = arguments[1];
},
track: function (element, cb) {
this.iframes.push(new this.Iframe(element, cb));
var _this = this;
this.interval = setInterval(function () {
_this.checkClick();
}, this.resolution);
},
checkClick: function () {
if (document.activeElement) {
var activeElement = document.activeElement;
for (var i in this.iframes) {
if (activeElement === this.iframes[i].element) { // user is in this Iframe
this.iframes[i].cb.apply(window, []);
var btn = document.getElementById("btn")
btn.focus()
}
}
}
}
};
IframeOnClick.track(document.getElementById("iFrame"), function () {
console.log(11111);
});

Loading…
Откажи
Сачувај