25609
This commit is contained in:
@@ -39,8 +39,8 @@
|
||||
</ai-search-bar>
|
||||
<ai-search-bar>
|
||||
<template slot="left">
|
||||
<el-button type="primary" icon="iconfont iconAdd" @click="isShow = true" :disabled="!ids.length">批量打标签</el-button>
|
||||
<!-- <el-button type="primary" icon="iconfont iconDelete" @click="onConfirm(1)" :disabled="!ids.length">批量移除群标签</el-button> -->
|
||||
<el-button type="primary" icon="iconfont iconAdd" @click="isRemove = false, isShow = true" :disabled="!ids.length">批量打标签</el-button>
|
||||
<el-button type="primary" icon="iconfont iconDelete" @click="isRemove = true, isShow = true" :disabled="!ids.length">批量移除标签</el-button>
|
||||
</template>
|
||||
<template slot="right">
|
||||
<el-button type="primary" icon="iconfont iconResetting" @click="update" :loading="btnLoading">更新数据</el-button>
|
||||
@@ -100,7 +100,7 @@
|
||||
<ai-dialog
|
||||
:visible.sync="isShow"
|
||||
width="800px"
|
||||
title="批量打标签"
|
||||
:title="isRemove ? '批量移除标签' : '批量打标签'"
|
||||
@close="onClose"
|
||||
@onConfirm="onConfirm">
|
||||
<div class="tags">
|
||||
@@ -143,6 +143,7 @@
|
||||
wxUserId: '',
|
||||
isRealName: ''
|
||||
},
|
||||
isRemove: false,
|
||||
btnLoading: false,
|
||||
isLoading: false,
|
||||
isShow: false,
|
||||
@@ -277,15 +278,29 @@
|
||||
return this.$message.error('请选择标签')
|
||||
}
|
||||
|
||||
this.instance.post(`/app/wxcp/wxcorptag/markTagForWeb`, {
|
||||
addTagIds: this.chooseTags,
|
||||
customerIds: this.ids.map(v => v.id)
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.isShow = false
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
if (this.isRemove) {
|
||||
this.instance.post(`/app/wxcp/wxcorptag/markTagForWeb`, {
|
||||
delTagIds: this.chooseTags,
|
||||
customerIds: this.ids.map(v => v.id)
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.isShow = false
|
||||
this.$message.success('移除成功')
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.instance.post(`/app/wxcp/wxcorptag/markTagForWeb`, {
|
||||
addTagIds: this.chooseTags,
|
||||
customerIds: this.ids.map(v => v.id)
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.isShow = false
|
||||
this.getList()
|
||||
this.$message.success('添加标签成功')
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
getTags () {
|
||||
|
||||
Reference in New Issue
Block a user