diff --git a/src/pages/achievement/teach/index.vue b/src/pages/achievement/teach/index.vue index b78f8d1..6b45802 100644 --- a/src/pages/achievement/teach/index.vue +++ b/src/pages/achievement/teach/index.vue @@ -177,10 +177,11 @@ export default { } }, handleDelete(row) { // 删除 + console.log(row) this.$confirm("确定要删除吗?", "提示", { type: "warning" }).then(() => { - this.$post(this.api.deleteExperimentalReport, [row.projectId]).then(res => { + this.$post(this.api.deleteExperimentalReport, [row.reportId]).then(res => { util.successMsg("删除成功"); this.getData(); }).catch(res => { @@ -194,8 +195,9 @@ export default { type: "warning" }).then(() => { let ids = this.multipleSelection.map(item => { - return item.projectId; + return item.reportId; }); + console.log(ids) this.$post(this.api.deleteExperimentalReport, ids).then(res => { this.multipleSelection = []; this.$refs.table.clearSelection();