瀏覽代碼

2023-12-9

cmy 1 年之前
父節點
當前提交
8f3cce1d40
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/pages/setting/step/index.vue

+ 15 - 0
src/pages/setting/step/index.vue

@@ -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)
+			    })
+			}
 
 		}
 	}