优化
This commit is contained in:
@@ -66,19 +66,11 @@
|
||||
|
||||
<div class="list_content">
|
||||
<div class="list_card">
|
||||
|
||||
<div class="tab" v-show="detail.sendChannel ==1">
|
||||
<div class="item" :class="subIndex0 == index? 'bgactive': ''" v-for="(item,index) in subsection" :key="index" @click="changeSub0(index)">
|
||||
<div class="tab" >
|
||||
<div class="item" :class="subIndex == index? 'bgactive': ''" v-for="(item,index) in subsection" :key="index" @click="changeSub(index)">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab" v-show="detail.sendChannel !=1">
|
||||
<div class="item" :class="subIndex1 == index? 'bgactive': ''" v-for="(item,index) in subSelect" :key="index" @click="changeSub1(index)">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiTable
|
||||
:data="tableData"
|
||||
:colConfigs="tabIndex == 0 ? colConfigs0 : colConfigs1"
|
||||
@@ -98,8 +90,7 @@ export default {
|
||||
tabs: ["成员统计", "居民群统计"],
|
||||
tabIndex: 0,
|
||||
pieEcharts: null,
|
||||
subIndex0: 0,
|
||||
subIndex1: 0,
|
||||
subIndex: 0,
|
||||
tableData: [],
|
||||
createTime: "",
|
||||
id: "",
|
||||
@@ -134,8 +125,7 @@ export default {
|
||||
methods: {
|
||||
tabClick(index) {
|
||||
this.tabIndex = index;
|
||||
this.subIndex0 = 0
|
||||
this.subIndex1 = 0
|
||||
this.subIndex = 0
|
||||
if(this.sendChannel == 1) {
|
||||
if(this.tabIndex == 0) {
|
||||
this.subsection = ["未执行","已执行"]
|
||||
@@ -208,25 +198,17 @@ export default {
|
||||
}
|
||||
},
|
||||
// 切换分段器
|
||||
changeSub0(index) {
|
||||
this.subIndex0 = index;
|
||||
changeSub(index) {
|
||||
this.subIndex = index;
|
||||
this.getStatistics();
|
||||
},
|
||||
changeSub1(index) {
|
||||
this.subIndex1 = index;
|
||||
this.getStatistics();
|
||||
},
|
||||
// changeSub(index) {
|
||||
// this.subIndex = index;
|
||||
// this.getStatistics();
|
||||
// },
|
||||
// 获取数据
|
||||
getStatistics() {
|
||||
this.$http
|
||||
.post(`/app/appmasssendingtask/detailStatistics`, null, {
|
||||
params: {
|
||||
type: this.tabIndex,
|
||||
sendStatus: this.detail.sendChannel==1? this.subIndex0: this.subIndex1,
|
||||
sendStatus: this.subIndex,
|
||||
taskId: this.id,
|
||||
current: this.current,
|
||||
size: 3000
|
||||
@@ -322,10 +304,10 @@ export default {
|
||||
}
|
||||
} else if(v.sendChannel != 1) {
|
||||
if(this.tabIndex == 0) {
|
||||
this.subSelect = ["未执行","已执行","无法执行"]
|
||||
this.subsection = ["未执行","已执行","无法执行"]
|
||||
this.$forceUpdate()
|
||||
} else if(this.tabIndex == 1){
|
||||
this.subSelect = ["未送达","已送达","无法送达"]
|
||||
this.subsection = ["未送达","已送达","无法送达"]
|
||||
this.$forceUpdate()
|
||||
}
|
||||
}
|
||||
@@ -339,24 +321,6 @@ export default {
|
||||
this.$dict.load("mstStatus")
|
||||
this.getDetail();
|
||||
this.getStatistics();
|
||||
if(this.sendChannel == 1) {
|
||||
if(this.tabIndex == 0) {
|
||||
this.subsection = ["未执行","已执行"]
|
||||
this.$forceUpdate()
|
||||
} else if(this.tabIndex == 1){
|
||||
this.subsection = ["未送达","已送达"]
|
||||
this.$forceUpdate()
|
||||
}
|
||||
} else if(this.sendChannel != 1) {
|
||||
if(this.tabIndex == 0) {
|
||||
this.subSelect = ["未执行","已执行","无法执行"]
|
||||
this.$forceUpdate()
|
||||
} else if(this.tabIndex == 1){
|
||||
this.subSelect = ["未送达","已送达","无法送达"]
|
||||
this.$forceUpdate()
|
||||
}
|
||||
}
|
||||
this.getStatistics();
|
||||
},
|
||||
mounted() {
|
||||
this.getPieEcharts();
|
||||
|
||||
Reference in New Issue
Block a user