成绩管理已经有全部按钮就不需要无指定范围按钮

dev_2022-05-11
e 3 years ago
parent 90dc54510e
commit 4b2c777a9d
  1. 11
      src/pages/achievement/ass/index.vue

@ -154,7 +154,9 @@ export default {
this.avg = res.avgScore this.avg = res.avgScore
this.total = res.peopleNum this.total = res.peopleNum
let list = res.page.records; 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; let score = 0;
list.map(n => { list.map(n => {
n.class = this.className; n.class = this.className;
@ -218,9 +220,8 @@ export default {
type: "warning" type: "warning"
}) })
.then(() => { .then(() => {
let ids = this.multipleSelection.map(item => { let ids = [row.reportId]
return item.reportId; console.log(ids)
});
this.$post(`${this.api.deleteExperimentalReport}`,ids).then(res => { this.$post(`${this.api.deleteExperimentalReport}`,ids).then(res => {
util.successMsg("删除成功"); util.successMsg("删除成功");
this.getData(); this.getData();
@ -237,7 +238,7 @@ export default {
return `reportId=${item.reportId}`; return `reportId=${item.reportId}`;
}); });
let delList1 = newArr.map(item => { let delList1 = newArr.map(item => {
return `recordId=${item.recordId}`; return `recordId=${item.reportId}`;
}); });
this.$confirm("确定要删除吗?", "提示", { this.$confirm("确定要删除吗?", "提示", {
type: "warning" type: "warning"

Loading…
Cancel
Save