|
@@ -203,7 +203,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template #default="scope">
|
|
|
- {{timeFormat(scope.row.distribution )}}
|
|
|
+ {{ timeFormat(scope.row.distribution) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -277,7 +277,7 @@ export default {
|
|
|
for (let i = 0; i < this.channel.length; i++) {
|
|
|
if (i > 4) break;
|
|
|
const v = this.channel[i];
|
|
|
- channel.push(v.value)
|
|
|
+ channel.push(v.value);
|
|
|
}
|
|
|
this.form = {
|
|
|
// app: (this.cycle[0] || { value: "" }).value,
|
|
@@ -347,7 +347,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
createImage(keyList, valueList, title) {
|
|
|
- !chart && (chart = echarts.init(this.$refs.regionChart));
|
|
|
+ if (!chart) {
|
|
|
+ chart = echarts.init(this.$refs.regionChart);
|
|
|
+ window.onresize = chart.resize;
|
|
|
+ }
|
|
|
chart.resize({
|
|
|
height: (this.$refs.regionChart.offsetWidth * 4) / 16,
|
|
|
});
|
|
@@ -603,7 +606,7 @@ export default {
|
|
|
getChannlePage(p).then(r => {
|
|
|
// 生成数据
|
|
|
let strcsv =
|
|
|
- "data:text/csv;charset=utf-8,版本,应用,升级用户数,新用户数,活跃用户数,启动次数,启动用户(分布),平均使用时长\r\n";
|
|
|
+ "data:text/csv;charset=utf-8,\uFEFF版本,应用,升级用户数,新用户数,活跃用户数,启动次数,平均使用时长\r\n";
|
|
|
(r || []).map(v => {
|
|
|
strcsv += [
|
|
|
v.appVersion,
|
|
@@ -612,7 +615,6 @@ export default {
|
|
|
v.newUser,
|
|
|
v.activeUser,
|
|
|
v.startTimes,
|
|
|
- v.distribution + "%",
|
|
|
this.timeFormat(v.duration),
|
|
|
"\r\n",
|
|
|
].join(",");
|