1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-01 13:33:58 +08:00

Terminals list refreshes once a teminal is deleted

This commit is contained in:
Chad Derya 2019-09-11 12:05:35 +01:00
parent 02d9a1765d
commit 1dad28d2ae

View File

@ -50,6 +50,7 @@
<deletePopUp
:item="scope.row"
:type="'terminal'"
@success="successfullyDeleted"
/>
</template>
</el-table-column>
@ -105,6 +106,11 @@ export default {
this.filteredList = this.originaList.filter(function(terminal) {
return terminal.name.toLowerCase().includes(searchQuery)
})
},
successfullyDeleted: function(val) {
if (val) {
this.getList()
}
}
}
}