main
wangqiujuan0808 2024-12-30 09:51:55 +08:00
parent 013a5c9e78
commit dda216d4aa
2 changed files with 7 additions and 4 deletions

View File

@ -161,10 +161,10 @@ export default {
} }
const res = await infoApi.detP(param); const res = await infoApi.detP(param);
if (res.code == 0) { if (res.code == 0) {
ElMessage.success(res.message || "删除成功"); ElMessage.success(res.data || res.message || "删除成功");
getPointList(); getPointList();
} else { } else {
ElMessage.error(res.message | "删除失败"); ElMessage.error(res.data || res.message | "删除失败");
} }
}) })
.catch(() => { .catch(() => {

View File

@ -138,12 +138,15 @@ export default {
type: "warning", type: "warning",
}) })
.then(async () => { .then(async () => {
const res = await infoApi.delMb(item); const param = {
template_name : item.template_name
}
const res = await infoApi.delMb(param);
if (res.code == 0) { if (res.code == 0) {
ElMessage.success(res.data || res.message || "请求成功"); ElMessage.success(res.data || res.message || "请求成功");
getTableData(); getTableData();
} else { } else {
ElMessage.error(res.data || res.message || "请求失败"); ElMessage.error(res.message || res.data || "请求失败");
} }
}) })
.catch(() => { .catch(() => {