|
@@ -81,6 +81,7 @@ export default {
|
|
|
loading: true,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
+ linkNames: [],
|
|
|
// 非单个禁用
|
|
|
single: true,
|
|
|
// 非多个禁用
|
|
@@ -165,6 +166,7 @@ export default {
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.id);
|
|
|
+ this.linkNames = selection.map(item => item.linkName);
|
|
|
this.single = selection.length !== 1;
|
|
|
this.multiple = !selection.length;
|
|
|
},
|
|
@@ -217,9 +219,10 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
+ const linkNames = row.linkName || this.linkNames;
|
|
|
this.$modal
|
|
|
// .confirm('是否确认删除友情链接编号为"' + ids + '"的数据项?')
|
|
|
- .confirm(`是否确认删除友情链接编号为【${ids}】;链接名称为【${row.linkName}】的数据项?`)
|
|
|
+ .confirm(`是否确认删除友情链接编号为【${ids}】;链接名称为【${linkNames}】的数据项?`)
|
|
|
.then(function () {
|
|
|
return delFRIENDLYLINKS(ids);
|
|
|
})
|