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