html
<el-button title="删除" type="text" size="small" @click="delRemarkVoList(scope.$index)">
<i class="el-icon-delete" style="color: #ff0000"></i>
</el-button>
js
delRemarkVoList(index) {
this.$confirm("您确定要删除此条备注信息吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.caseData.prplremarkVoList.splice(index, 1);
this.$message.success("删除成功!");
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除操作!"
});
});
},