Commit 46e249bb by chenqiang

重点人员管理删除接口

parent 9c971b23
......@@ -8,11 +8,12 @@
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@add="add"
ref="rightContent"
@toInfor="toInfor"
>
<template #btnGroup="scope">
<!-- <span class="hbyp" @click="edit(scope.scope)">修改</span>-->
<span class="hbyp" @click="del(scope.scope)">删除</span>
<span class="hbyp" @click="dele(scope.scope)">删除</span>
</template>
</right-content>
</div>
......@@ -247,31 +248,31 @@ export default {
});
},
dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
let self = this
self.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let params = new FormData();
params.sppend("id", this.id);
params.append("id", scope.row.id);
deleteAddZdry(params).then((res) => {
if (res.success && res.code == 200) {
this.$message({
self.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
self.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
self.$message({
type: "info",
message: "已取消删除",
});
});
console.log(scope.row.id);
},
toInfor(data) {
this.$router.pushToTab({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment