Commit 1088fce3 by 胡悦

添加群发查看loading

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