bug修复:体检管理->体检名单:删除添加提示语是否删除

This commit is contained in:
2026-03-31 11:42:54 +08:00
parent 94928ed3a2
commit 32ee62edd4
@@ -79,7 +79,7 @@ layout("/layouts/platform.html"){
<el-table-column align="center" header-align="center" type="index"
:index="indexMethod" label="序号"
<!-- width="80px"></el-table-column>-->
width="80px"></el-table-column>
<el-table-column
align="center"
header-align="center"
@@ -323,14 +323,21 @@ layout("/layouts/platform.html"){
this.importLoading = false
this.doSearch()
},
async doDelete(id) {
const resp = await this.$axios.post(loc() + '/doDelete', {id});
if (resp.code === 0) {
this.notifySuccess(resp.msg);
this.doSearch();
} else {
this.notifyError(resp.msg);
}
doDelete(id) {
this.$confirm("您确定要删除吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
}).then(async () => {
const resp = await this.$axios.post(loc() + '/doDelete', {id});
if (resp.code === 0) {
this.notifySuccess(resp.msg);
this.doSearch();
} else {
this.notifyError(resp.msg);
}
})
},
},
async created() {