就是表格一排信息
// -------删除-------
deleteDetail: async function(obj) {
this.newObj2 = obj
console.log(this.newObj2,33)
this.$confirm('此操作将永久删除该信息, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(async () => {
const { data } = await this.$http.delete(
`/driverUser/deleteDriver?driverId=${this.newObj2.id}`
)
if (data.code == 1) {
this.$message.success('删除成功')
this.reload()
}
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消删除',
})
})
this.reload();
},
文章为作者独立观点,不代表观点