日常使用代码块备份
this.$confirm('确定删除该条记录吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'confirm-box',
type: 'warning'
}).then(() => {
if(!this.isValidNot0(item.id)){this.msg('该条记录的ID无效','error');return}
let delParam = {
comsnCalcPerdId:item.id
}
apiDelComsnCalc(delParam,res=>{
if(res.data.errcode == 0){
this.msg('操作成功','success');
this.getList();
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});