删除报告bug

dev_2022-05-11
luoJunYong.123 3 years ago
parent c8ea99e47a
commit cdcc4d1afd
  1. 6
      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();

Loading…
Cancel
Save