|
@@ -344,7 +344,8 @@ |
|
|
{{ activeName == "3" ? "平均执行率" : "合计" }} |
|
|
{{ activeName == "3" ? "平均执行率" : "合计" }} |
|
|
</div> |
|
|
</div> |
|
|
<div class="text1-2"> |
|
|
<div class="text1-2"> |
|
|
{{activeName == "3" ? (ceratelist.avg || 0) : (ceratelist.sum || 0 )}}{{ activeName | company }} |
|
|
|
|
|
|
|
|
{{ activeName == "3" ? ceratelist.avg || 0 : ceratelist.sum || 0 |
|
|
|
|
|
}}{{ activeName | company }} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="sanbox1" style="width: 40%; text-align: center"> |
|
|
<div class="sanbox1" style="width: 40%; text-align: center"> |
|
@@ -768,7 +769,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.zkhousePage(); |
|
|
this.zkhousePage(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.TimetoAhoose == 4) { |
|
|
if (this.TimetoAhoose == 4) { |
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; |
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; |
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
@@ -890,15 +891,6 @@ export default { |
|
|
} |
|
|
} |
|
|
this.$api.http.overviewreceptionRanking(parmo).then((res) => { |
|
|
this.$api.http.overviewreceptionRanking(parmo).then((res) => { |
|
|
let arr = []; |
|
|
let arr = []; |
|
|
// <div class="text1-2">{{ ceratelist.sum || 0 }}{{ activeName | company }}</div> |
|
|
|
|
|
// </div> |
|
|
|
|
|
// <div class="sanbox1" style="width: 40%"> |
|
|
|
|
|
// <div class="text1-1">顾问</div> |
|
|
|
|
|
// <div class="text1-2">{{ ceratelist.num || 0 }}个</div> |
|
|
|
|
|
// </div> |
|
|
|
|
|
// <div class="sanbox1" style="width: 30%"> |
|
|
|
|
|
// <div class="text1-1">{{ activeName | comName }}</div> |
|
|
|
|
|
// <div class="text1-2">{{ ceratelist.avg || 0 }}次</div> |
|
|
|
|
|
if (this.activeName == "1") { |
|
|
if (this.activeName == "1") { |
|
|
res.data.avg = this.formatDate(res.data.avg); |
|
|
res.data.avg = this.formatDate(res.data.avg); |
|
|
res.data.sum = this.formatDate(res.data.sum); |
|
|
res.data.sum = this.formatDate(res.data.sum); |
|
@@ -910,7 +902,7 @@ export default { |
|
|
obj.zxl = item.activeCustomer; |
|
|
obj.zxl = item.activeCustomer; |
|
|
} |
|
|
} |
|
|
if (this.activeName == "1") { |
|
|
if (this.activeName == "1") { |
|
|
obj.zxl = this.formatDate(item.avgDuration); |
|
|
|
|
|
|
|
|
obj.zxl = this.formatDate(item.avgDuration || 0); |
|
|
} |
|
|
} |
|
|
if (this.activeName == "2") { |
|
|
if (this.activeName == "2") { |
|
|
obj.zxl = item.prohibitedCustomer; |
|
|
obj.zxl = item.prohibitedCustomer; |
|
@@ -938,49 +930,25 @@ export default { |
|
|
e.map((i) => { |
|
|
e.map((i) => { |
|
|
values.push(i.zxl); |
|
|
values.push(i.zxl); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
let colorArr = ["#E6625B", "#FF981E", "#FFCC00", "#07B79D"]; |
|
|
values = values.map((i, k) => { |
|
|
values = values.map((i, k) => { |
|
|
switch (k) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
return { |
|
|
|
|
|
value: values[0], |
|
|
|
|
|
itemStyle: { |
|
|
|
|
|
color: "#E6625B", |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
break; |
|
|
|
|
|
case 1: |
|
|
|
|
|
return { |
|
|
|
|
|
value: values[1], |
|
|
|
|
|
itemStyle: { |
|
|
|
|
|
color: "#FF981E", |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
case 2: |
|
|
|
|
|
return { |
|
|
|
|
|
value: values[2], |
|
|
|
|
|
itemStyle: { |
|
|
|
|
|
color: "#FFCC00", |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
|
return { |
|
|
|
|
|
value: values[k], |
|
|
|
|
|
itemStyle: { |
|
|
|
|
|
color: "#07B79D", |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return { |
|
|
|
|
|
value: i || "0", |
|
|
|
|
|
itemStyle: { |
|
|
|
|
|
color: colorArr[k <= 2 ? k : 3], |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (this.activeName == "1") { |
|
|
if (this.activeName == "1") { |
|
|
values.map((i) => { |
|
|
values.map((i) => { |
|
|
let m = i.value.split(":")[0]; |
|
|
|
|
|
let s = i.value.split(":")[1]; |
|
|
|
|
|
let totalS = Number(m) * 60 + Number(s); |
|
|
|
|
|
i.value = totalS; |
|
|
|
|
|
|
|
|
console.log(i); |
|
|
|
|
|
if (i.value.indexOf(":") != -1) { |
|
|
|
|
|
let m = i.value.split(":")[0]; |
|
|
|
|
|
let s = i.value.split(":")[1]; |
|
|
|
|
|
let totalS = Number(m) * 60 + Number(s); |
|
|
|
|
|
i.value = totalS; |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -1063,7 +1031,7 @@ export default { |
|
|
type: "value", |
|
|
type: "value", |
|
|
axisLabel: { |
|
|
axisLabel: { |
|
|
formatter: function (params) { |
|
|
formatter: function (params) { |
|
|
console.log(params) |
|
|
|
|
|
|
|
|
console.log(params); |
|
|
switch (_this.activeName) { |
|
|
switch (_this.activeName) { |
|
|
case "1": |
|
|
case "1": |
|
|
let s = params % 60; |
|
|
let s = params % 60; |
|
@@ -1670,11 +1638,11 @@ export default { |
|
|
//时间选择 |
|
|
//时间选择 |
|
|
tabtimetap(index) { |
|
|
tabtimetap(index) { |
|
|
this.TimetoAhoose = index; |
|
|
this.TimetoAhoose = index; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (index == 0) { |
|
|
if (index == 0) { |
|
|
this.customtime = [] |
|
|
|
|
|
|
|
|
this.customtime = []; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (index == 4) { |
|
|
if (index == 4) { |
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; |
|
|
let starTime = new Date().getTime() - 24 * 60 * 60 * 1000 * 7; |
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
|
let startDate = `${new Date(starTime).getFullYear()}-${ |
|
|