From cdcc4d1afdcac552400acbe085da29fd477e6c53 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Fri, 31 Dec 2021 16:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8A=A5=E5=91=8Abug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/achievement/teach/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();