Commit c577d65b by 陈羽

update: 批量同步成功延时获取列表

parent 86ec9534
......@@ -351,27 +351,31 @@ export default {
},
// 处理批量同步
handlePartSync() {
let ids = this.tagIds.map(el => el.tagId).toString();
let that = this;
that.loading = true;
let ids = that.tagIds.map(el => el.tagId).toString();
let params = {
wxEnterpriseId: this.wxEnterpriseId,
enterpriseId: this.brandId,
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId,
tagIds: ids
};
syncSet(params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
this.$message.success('批量同步完成');
this.selectIds = {};
this.tagIds = [];
this.$refs.table.clearSelection();
this.getTableList();
setTimeout(() => {
that.$message.success('批量同步完成');
that.selectIds = {};
that.tagIds = [];
that.$refs.table.clearSelection();
that.getTableList();
}, 3000);
} else {
errMsg.errorMsg(resData);
}
})
.catch(function(error) {
this.$message.error({
that.$message.error({
duration: 1000,
message: error.message
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment