This commit is contained in:
liuye
2022-10-27 18:07:44 +08:00
parent 96acf75571
commit a86f37ecfc

View File

@@ -18,7 +18,7 @@
</template> </template>
<template slot="content"> <template slot="content">
<div class="top"> <div class="top">
<header>近12个月员活动参与情况统计</header> <header>近12个月员活动参与情况统计</header>
<div class="month" id="month"></div> <div class="month" id="month"></div>
</div> </div>
<div class="middle"> <div class="middle">
@@ -38,7 +38,7 @@
<div class="middle-left"> <div class="middle-left">
<ul> <ul>
<li> <li>
<p>应报到员人数</p> <p>应报到员人数</p>
<div class="num"> <div class="num">
<span>{{ numObj.party_num }}</span> <span>{{ numObj.party_num }}</span>
<span></span> <span></span>
@@ -181,7 +181,7 @@ export default {
...mapState(["user"]), ...mapState(["user"]),
table() { table() {
return [ return [
{ label: "员活动记录", id: "0" }, { label: "员活动记录", id: "0" },
{ label: "未参与活动名单", id: "1" }, { label: "未参与活动名单", id: "1" },
]; ];
}, },
@@ -282,7 +282,7 @@ export default {
link.href = URL.createObjectURL(blob); link.href = URL.createObjectURL(blob);
let fileName = ""; let fileName = "";
this.activeId == 0 this.activeId == 0
? (fileName = "员活动记录") ? (fileName = "员活动记录")
: (fileName = "未参与活动名单"); : (fileName = "未参与活动名单");
link.setAttribute("download", fileName + ".xls"); link.setAttribute("download", fileName + ".xls");
document.body.appendChild(link); document.body.appendChild(link);
@@ -315,13 +315,13 @@ export default {
dataset: { dataset: {
source: [ source: [
["product", ...months], ["product", ...months],
["应报到员人次", ...arr1], ["应报到员人次", ...arr1],
["报名活动人次", ...arr2], ["报名活动人次", ...arr2],
["实际参与活动人次", ...arr3], ["实际参与活动人次", ...arr3],
], ],
}, },
legend: { legend: {
data: ["应报到员人次", "报名活动人次", "实际参与活动人次"], data: ["应报到员人次", "报名活动人次", "实际参与活动人次"],
}, },
toolbox: { toolbox: {
feature: { feature: {
@@ -386,7 +386,7 @@ export default {
backgroundColor: "rgba(249,249,249,1)", backgroundColor: "rgba(249,249,249,1)",
title: { title: {
text: "员报到类型比例", text: "员报到类型比例",
x: "left", x: "left",
}, },
@@ -404,7 +404,7 @@ export default {
}, },
series: [ series: [
{ {
name: "员报到类型比例", name: "员报到类型比例",
type: "pie", type: "pie",
radius: ["45%", "75%"], radius: ["45%", "75%"],
center: ["30%", "55%"], center: ["30%", "55%"],