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

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

View File

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