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