增加字典详情删除时给出提示

This commit is contained in:
ival 2019-08-30 19:27:03 +08:00
parent 1f82f68cd1
commit 0031b51f55

View File

@ -133,12 +133,18 @@ export default {
}, },
handleDelete(index, row) { handleDelete(index, row) {
del(this.dicId, row.id).then(response => { this.$confirm(this.$t('system.wellDelType'), this.$t('global.tips'), {
this.$message.success(this.$t('system.deleteSuccess')); confirmButtonText: this.$t('global.confirm'),
this.reloadTable(); cancelButtonText: this.$t('global.cancel'),
}).catch(() => { type: 'warning'
this.reloadTable(); }).then(() => {
this.$messageBox(this.$t('error.deleteFailed')); del(this.dicId, row.id).then(response => {
this.$message.success(this.$t('system.deleteSuccess'));
this.reloadTable();
}).catch(() => {
this.reloadTable();
this.$messageBox(this.$t('error.deleteFailed'));
});
}); });
}, },