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