diff --git a/src/views/system/groupQrCodeInfo/index.vue b/src/views/system/groupQrCodeInfo/index.vue index 265d1c8..d402dde 100644 --- a/src/views/system/groupQrCodeInfo/index.vue +++ b/src/views/system/groupQrCodeInfo/index.vue @@ -406,6 +406,7 @@ export default { loading: true, // 选中数组 ids: [], + groupName:[], getListByUserquery: { pageNum: 1, pageSize: 10 @@ -658,6 +659,8 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.id); + this.groupName = selection.map(item => item.groupName); + this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -725,9 +728,10 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const ids = row.id || this.ids; + console.log(row); + const ids = row.groupName || this.groupName; this.$modal - .confirm('是否确认删除在线客服编号为"' + ids + '"的数据项?') + .confirm('是否确认删除群名称为"' + ids + '"的数据?') .then(function() { return delGroupQrCodeInfo(ids); })