Commit b16ab542 by liuguorong93

退役犬新增 绑定接口

parent 5ec615c9
......@@ -449,7 +449,50 @@ export default {
this.$message("已取消删除");
});
},
exportData() {},
exportData() {
this.tableLoading = true;
let params = {
pageNow: 1,
pageSize: 99999,
chipCode: this.formData.chipCode,
name: this.formData.name,
birthkssj:
this.formData.birthDate && this.formData.birthDate.length
? this.formData.birthDate[0]
: "",
birthjssj:
this.formData.birthDate && this.formData.birthDate.length
? this.formData.birthDate[1]
: "",
retiredkssj:
this.formData.retiredDate && this.formData.retiredDate.length
? this.formData.retiredDate[0]
: "",
retiredjssj:
this.formData.retiredDate && this.formData.retiredDate.length
? this.formData.retiredDate[1]
: "",
trainingUnit: this.formData.trainingUnit,
};
axios
.post(exportRetireDogUrl, JSON.stringify(params), {
headers: { "Content-Type": "application/json" },
responseType: "blob",
})
.then((res) => {
if (!res.data) {
this.tableLoading = false;
return;
}
let obj = {
data: res.data,
filename: "警用退役犬信息.xlsx",
};
handleDownFile(obj);
this.tableLoading = false;
});
},
// 配置表头
handleHeaderSettings() {
this.showHeaderSettingBox = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment