From 4b2c777a9df6af0fd459bcd1df4ed4b8aff458bc Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Tue, 4 Jan 2022 18:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E7=BB=A9=E7=AE=A1=E7=90=86=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E6=9C=89=E5=85=A8=E9=83=A8=E6=8C=89=E9=92=AE=E5=B0=B1?= =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81=E6=97=A0=E6=8C=87=E5=AE=9A=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/achievement/ass/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/achievement/ass/index.vue b/src/pages/achievement/ass/index.vue index 065626c..63a19de 100644 --- a/src/pages/achievement/ass/index.vue +++ b/src/pages/achievement/ass/index.vue @@ -154,7 +154,9 @@ export default { this.avg = res.avgScore this.total = res.peopleNum let list = res.page.records; - this.assessmentId = res.page.records[0].assessmentId; + if (res.page.records.length){ + this.assessmentId = res.page.records[0].assessmentId; + } let score = 0; list.map(n => { n.class = this.className; @@ -218,9 +220,8 @@ export default { type: "warning" }) .then(() => { - let ids = this.multipleSelection.map(item => { - return item.reportId; - }); + let ids = [row.reportId] + console.log(ids) this.$post(`${this.api.deleteExperimentalReport}`,ids).then(res => { util.successMsg("删除成功"); this.getData(); @@ -237,7 +238,7 @@ export default { return `reportId=${item.reportId}`; }); let delList1 = newArr.map(item => { - return `recordId=${item.recordId}`; + return `recordId=${item.reportId}`; }); this.$confirm("确定要删除吗?", "提示", { type: "warning"