This commit is contained in:
shijingjing
2022-07-28 15:37:02 +08:00
parent 5634546ce7
commit baab315005

View File

@@ -66,11 +66,19 @@
<div class="list_content"> <div class="list_content">
<div class="list_card"> <div class="list_card">
<div class="tab"> <div class="tab" v-show="tabIndex == 0">
<u-subsection <u-subsection
:list="subsection" :list="subsectionA"
:current="subIndex" :current="subIndexA"
@change="changeSub" @change="changeSubA"
></u-subsection>
</div>
<div class="tab" v-show="tabIndex == 1">
<u-subsection
:list="subsectionB"
:current="subIndexB"
@change="changeSubB"
></u-subsection> ></u-subsection>
</div> </div>
@@ -102,7 +110,8 @@ export default {
tabs: ["成员统计", "居民群统计"], tabs: ["成员统计", "居民群统计"],
tabIndex: 0, tabIndex: 0,
pieEcharts: null, pieEcharts: null,
subIndex: 0, subIndexA: 0,
subIndexB: 0,
tableData: [], tableData: [],
createTime: "", createTime: "",
id: "", id: "",
@@ -112,28 +121,19 @@ export default {
currentClickTime: "", currentClickTime: "",
flag: true, flag: true,
detail: {}, detail: {},
subsection: [ subsectionA: [
{ name: "未执行" }, { name: "未执行" },
{ name: "已执行" }, { name: "已执行" },
{ name: "无法执行" }, { name: "无法执行" },
], ],
subsectionB: [
{ name: "未送达" },
{ name: "已送达" },
{ name: "无法送达" },
]
}; };
}, },
computed: { computed: {
subsection_0() {
return [
{ name: "未执行" },
{ name: "已执行" },
{ name: "无法执行" },
]
},
// subsection_1() {
// return [
// { name: "未送达" },
// { name: "已送达" },
// { name: "无法送达" },
// ]
// },
colConfigs0() { colConfigs0() {
return [ return [
{ slot: "groupOwnerId", label: "成员" }, { slot: "groupOwnerId", label: "成员" },
@@ -148,25 +148,6 @@ export default {
]; ];
}, },
}, },
// watch: {
// subsection: {
// handler: (newVal, oldVal) => {
// if(newVal == 0) {
// this.subsection = [
// { name: "未执行" },
// { name: "已执行" },
// { name: "无法执行" },
// ]
// } else {
// this.subsection = [
// { name: "未送达" },
// { name: "已送达" },
// { name: "无法送达" },
// ]
// }
// }
// }
// },
onLoad(o) { onLoad(o) {
this.id = o.id; this.id = o.id;
this.createTime = o.time; this.createTime = o.time;
@@ -231,7 +212,11 @@ export default {
} }
}, },
// 切换分段器 // 切换分段器
changeSub(index) { changeSubA(index) {
this.subIndex = index;
this.getStatistics();
},
changeSubB(index) {
this.subIndex = index; this.subIndex = index;
this.getStatistics(); this.getStatistics();
}, },
@@ -241,7 +226,7 @@ export default {
.post(`/app/appmasssendingtask/detailStatistics`, null, { .post(`/app/appmasssendingtask/detailStatistics`, null, {
params: { params: {
type: this.tabIndex, type: this.tabIndex,
sendStatus: this.subIndex, sendStatus: this.tabIndex==0? this.subIndexA: this.subIndexB,
taskId: this.id, taskId: this.id,
current: this.current, current: this.current,
}, },