30664
This commit is contained in:
@@ -66,11 +66,19 @@
|
||||
|
||||
<div class="list_content">
|
||||
<div class="list_card">
|
||||
<div class="tab">
|
||||
<div class="tab" v-show="tabIndex == 0">
|
||||
<u-subsection
|
||||
:list="subsection"
|
||||
:current="subIndex"
|
||||
@change="changeSub"
|
||||
:list="subsectionA"
|
||||
:current="subIndexA"
|
||||
@change="changeSubA"
|
||||
></u-subsection>
|
||||
|
||||
</div>
|
||||
<div class="tab" v-show="tabIndex == 1">
|
||||
<u-subsection
|
||||
:list="subsectionB"
|
||||
:current="subIndexB"
|
||||
@change="changeSubB"
|
||||
></u-subsection>
|
||||
</div>
|
||||
|
||||
@@ -102,7 +110,8 @@ export default {
|
||||
tabs: ["成员统计", "居民群统计"],
|
||||
tabIndex: 0,
|
||||
pieEcharts: null,
|
||||
subIndex: 0,
|
||||
subIndexA: 0,
|
||||
subIndexB: 0,
|
||||
tableData: [],
|
||||
createTime: "",
|
||||
id: "",
|
||||
@@ -112,28 +121,19 @@ export default {
|
||||
currentClickTime: "",
|
||||
flag: true,
|
||||
detail: {},
|
||||
subsection: [
|
||||
subsectionA: [
|
||||
{ name: "未执行" },
|
||||
{ name: "已执行" },
|
||||
{ name: "无法执行" },
|
||||
],
|
||||
subsectionB: [
|
||||
{ name: "未送达" },
|
||||
{ name: "已送达" },
|
||||
{ name: "无法送达" },
|
||||
]
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
subsection_0() {
|
||||
return [
|
||||
{ name: "未执行" },
|
||||
{ name: "已执行" },
|
||||
{ name: "无法执行" },
|
||||
]
|
||||
},
|
||||
// subsection_1() {
|
||||
// return [
|
||||
// { name: "未送达" },
|
||||
// { name: "已送达" },
|
||||
// { name: "无法送达" },
|
||||
// ]
|
||||
// },
|
||||
colConfigs0() {
|
||||
return [
|
||||
{ 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) {
|
||||
this.id = o.id;
|
||||
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.getStatistics();
|
||||
},
|
||||
@@ -241,7 +226,7 @@ export default {
|
||||
.post(`/app/appmasssendingtask/detailStatistics`, null, {
|
||||
params: {
|
||||
type: this.tabIndex,
|
||||
sendStatus: this.subIndex,
|
||||
sendStatus: this.tabIndex==0? this.subIndexA: this.subIndexB,
|
||||
taskId: this.id,
|
||||
current: this.current,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user