Commit 1088fce3 by 胡悦

添加群发查看loading

1 parent b2be6e22
......@@ -86,7 +86,8 @@
<!-- <span>将消息发送给客户符合条件的客户</span> -->
<div class="filter-number">
查看预计群发人数
<span v-show="isUpdate" @click="viewMembers">查看</span>
<el-button type="text" v-show="isUpdate" :loading="viewLoading" @click="viewMembers">查看</el-button>
<!-- <span v-show="isUpdate" @click="viewMembers">查看</span> -->
<span v-show="!isUpdate">{{ groupNumber }}</span>
</div>
</div>
......@@ -280,7 +281,8 @@ export default {
editStatus: false,
firstFlag: true,
footerLeft: 40,
footerWidth: 500
footerWidth: 500,
viewLoading: false
}
},
watch: {
......@@ -557,15 +559,18 @@ export default {
}
const params = this.getSiftMembers()
console.log(params)
this.viewLoading = true
this.$apis.customerTransform
.customerCount(params)
.then(res => {
// if (res) {
this.viewLoading = false
this.groupNumber = res
// }
this.isUpdate = false
})
.catch(err => {
this.viewLoading = false
this.groupNumber = 0
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!