//定义删除方法 handleDelete()
// 编写删除方法
handleDelete(row) {
let _id = row.id
this.$confirm('是否要删除 ' + row.name + ' ?', '提示', {
dangerouslyUseHTMLString: true,
showCancelButton: false,
confirmButtonText: '确定',
type: 'warning',
center: true
}).then(() => {
this.$axios.post('/api/LampPole/DelLampTypeTypeInfo', { data: { id: _id } }
).then((res) => {
this.$message.success(res.data.msg)
// 通过this.$emit属性传自定义的属性和值给父组件
this.$emit("refresh-item", res.data.code)
}).catch((err) => {
this.$message.error(err)
})
}).catch(e => e);
}