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" <el-table-column align="center" header-align="center" type="index"
:index="indexMethod" label="序号" :index="indexMethod" label="序号"
<!-- width="80px"></el-table-column>--> width="80px"></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
header-align="center" header-align="center"
@@ -323,7 +323,12 @@ layout("/layouts/platform.html"){
this.importLoading = false this.importLoading = false
this.doSearch() this.doSearch()
}, },
async doDelete(id) { doDelete(id) {
this.$confirm("您确定要删除吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
}).then(async () => {
const resp = await this.$axios.post(loc() + '/doDelete', {id}); const resp = await this.$axios.post(loc() + '/doDelete', {id});
if (resp.code === 0) { if (resp.code === 0) {
this.notifySuccess(resp.msg); this.notifySuccess(resp.msg);
@@ -331,6 +336,8 @@ layout("/layouts/platform.html"){
} else { } else {
this.notifyError(resp.msg); this.notifyError(resp.msg);
} }
})
}, },
}, },
async created() { async created() {