|
@@ -308,6 +308,21 @@
|
|
|
}
|
|
|
this.modals = true
|
|
|
},
|
|
|
+ del (row, tit, num) {
|
|
|
+ let delfromData = {
|
|
|
+ title: tit,
|
|
|
+ num: num,
|
|
|
+ url: this.getUrl(`/${row.id}`),
|
|
|
+ method: 'DELETE',
|
|
|
+ ids: ''
|
|
|
+ }
|
|
|
+ this.$modalSure(delfromData).then((res) => {
|
|
|
+ this.$Message.success(res.msg)
|
|
|
+ this.tabList.splice(num, 1)
|
|
|
+ }).catch(res => {
|
|
|
+ this.$Message.error(res.msg)
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|