This commit is contained in:
曹辉 2023-03-06 10:30:18 +08:00
parent 5b38b79616
commit 81adedf478

View File

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