|
|
|
@ -112,11 +112,8 @@
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
queryList, |
|
|
|
|
addData, |
|
|
|
|
updateData, |
|
|
|
|
delData, |
|
|
|
|
exportHandLandToListExcel, |
|
|
|
|
downloadHandLandTemplate, |
|
|
|
|
exportRecordExcel |
|
|
|
|
} from "@/views/company/auction/api/api"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
@ -244,6 +241,24 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
exportData() { |
|
|
|
|
if (this.selectedData.length < 1) { |
|
|
|
|
this.$message({ |
|
|
|
|
message: "未选中数据", |
|
|
|
|
type: "warning", |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let ids = []; |
|
|
|
|
for (let item of this.selectedData) { |
|
|
|
|
ids.push(item["auctionRecordId"]); |
|
|
|
|
} |
|
|
|
|
exportRecordExcel(ids.toString()).then((res) => { |
|
|
|
|
const aLink = document.createElement("a"); |
|
|
|
|
let blob = new Blob([res.data], {type: "application/vnd.ms-excel"}); |
|
|
|
|
aLink.href = URL.createObjectURL(blob); |
|
|
|
|
aLink.setAttribute("download", "kg" + ".xls"); // 设置下载文件名称 |
|
|
|
|
aLink.click(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 清空选中 |
|
|
|
|
clearSelection() { |
|
|
|
@ -329,7 +344,7 @@ export default {
|
|
|
|
|
} |
|
|
|
|
let ids = []; |
|
|
|
|
for (let item of this.selectedData) { |
|
|
|
|
ids.push(item["dataId"]); |
|
|
|
|
ids.push(item["auctionRecordId"]); |
|
|
|
|
} |
|
|
|
|
delData(ids).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|