|
|
@@ -248,6 +248,31 @@ export default {
|
|
|
path: "/site-management/idle-fee-" + row.dynamicIdleFeeId
|
|
|
})
|
|
|
},
|
|
|
+ onClickDelete(row) {
|
|
|
+ this.$confirm('Are you sure you want to delete this config?', 'Delete', {
|
|
|
+ confirmButtonText: 'OK',
|
|
|
+ cancelButtonText: 'Cancel',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(res => {
|
|
|
+ this.deleteConfig(row.dynamicIdleFeeId);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ deleteConfig(id) {
|
|
|
+ this.table.loading = true;
|
|
|
+ api.deleteIdleFeeById(id).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: "Delete success."
|
|
|
+ })
|
|
|
+ this.getTableList()
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: err
|
|
|
+ })
|
|
|
+ this.table.loading = false;
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|