Commit 4a796995 authored by 许珑标's avatar 许珑标

删除操作的提醒消息优化

parent 42c14f0a
......@@ -326,7 +326,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除发薪合同编号为"' + ids + '"的数据项?').then(function () {
const msgName = row.contractName || this.contractNames;
this.$modal.confirm('是否确认删除合同[' + msgName + ']?').then(function () {
return delOutContract(ids);
}).then(() => {
this.getList();
......
......@@ -172,6 +172,7 @@ export default {
loading: true,
// 选中数组
ids: [],
userNames: [],
// 非单个禁用
single: true,
// 非多个禁用
......@@ -300,6 +301,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.userNames = selection.map(item => item.userName)
this.single = selection.length !== 1
this.multiple = !selection.length
},
......@@ -364,7 +366,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除收薪人员信息编号为"' + ids + '"的数据项?').then(function () {
const msgName = row.userName || this.userNames
this.$modal.confirm('是否确认删除收薪人员[' + msgName + ']?').then(function () {
return delOutPersonal(ids);
}).then(() => {
this.getList();
......
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