deletePersonnelById(id){
console.log(id);
this.id = id
console.log(this.id)
this.$confirm('此操作将永久删除该信息, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then((res) => {
deletePersonnel(this.id).then(res =>{
if(res.status == 0){
this.getData
this.$message.success('删除成功!')
}else{
this.$message.error('删除失败!')
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
10020044
10020044
{status: 1, message: ""id" is required"}
message: ""id" is required"
status: 1
id定义为全局的数值变量,改成字符串型还是不对