恢复分段器

This commit is contained in:
shijingjing
2022-07-28 16:40:26 +08:00
parent 4d12c27ff7
commit 1dc0103e03

View File

@@ -66,21 +66,34 @@
<div class="list_content"> <div class="list_content">
<div class="list_card"> <div class="list_card">
<div class="tab" v-show="tabIndex == 0"> <div class="tab">
<u-subsection
:list="subsection"
mode="button"
activeColor="#3c9cff"
:current="subIndex"
@change="changeSub"
></u-subsection>
</div>
<!-- <div class="tab" v-show="tabIndex == 0">
<u-subsection <u-subsection
:list="subsectionA" :list="subsectionA"
mode="button"
activeColor="#3c9cff"
:current="subIndexA" :current="subIndexA"
@change="changeSubA" @change="changeSubA"
></u-subsection> ></u-subsection>
</div> </div>
<div class="tab" v-show="tabIndex == 1"> <div class="tab" v-show="tabIndex == 1">
<u-subsection <u-subsection
:list="subsectionB" :list="subsectionB"
mode="button"
activeColor="#3c9cff"
:current="subIndexB" :current="subIndexB"
@change="changeSubB" @change="changeSubB"
></u-subsection> ></u-subsection>
</div> </div> -->
<AiTable <AiTable
:data="tableData" :data="tableData"
@@ -110,8 +123,8 @@ export default {
tabs: ["成员统计", "居民群统计"], tabs: ["成员统计", "居民群统计"],
tabIndex: 0, tabIndex: 0,
pieEcharts: null, pieEcharts: null,
subIndexA: 0, subIndex: 0,
subIndexB: 0, // subIndexB: 0,
tableData: [], tableData: [],
createTime: "", createTime: "",
id: "", id: "",
@@ -121,16 +134,16 @@ export default {
currentClickTime: "", currentClickTime: "",
flag: true, flag: true,
detail: {}, detail: {},
subsectionA: [ subsection: [
{ name: "未执行" }, { name: "未执行" },
{ name: "已执行" }, { name: "已执行" },
{ name: "无法执行" }, { name: "无法执行" },
], ],
subsectionB: [ // subsectionB: [
{ name: "未送达" }, // { name: "未送达" },
{ name: "已送达" }, // { name: "已送达" },
{ name: "无法送达" }, // { name: "无法送达" },
] // ]
}; };
}, },
computed: { computed: {
@@ -212,21 +225,21 @@ export default {
} }
}, },
// 切换分段器 // 切换分段器
changeSubA(index) { changeSub(index) {
this.subIndexA = index; this.subIndexA = index;
this.getStatistics(); this.getStatistics();
}, },
changeSubB(index) { // changeSubB(index) {
this.subIndexB = index; // this.subIndexB = index;
this.getStatistics(); // this.getStatistics();
}, // },
// 获取数据 // 获取数据
getStatistics() { getStatistics() {
this.$http this.$http
.post(`/app/appmasssendingtask/detailStatistics`, null, { .post(`/app/appmasssendingtask/detailStatistics`, null, {
params: { params: {
type: this.tabIndex, type: this.tabIndex,
sendStatus: this.tabIndex==0? this.subIndexA : this.subIndexB, sendStatus: this.subIndex,
taskId: this.id, taskId: this.id,
current: this.current, current: this.current,
}, },