methods: { | methods: { | ||||
exportData(data){ | exportData(data){ | ||||
this.loading=true; | this.loading=true; | ||||
api.exportList(Object.assign({sheetName:"链长制配合申请审核记录"},data)).then(res=>{ | |||||
api.exportList(Object.assign({sheetName:"链长制配合申请审核记录", isChecked: 1},data)).then(res=>{ | |||||
if (res.data.code == 0) { | if (res.data.code == 0) { | ||||
window.open(res.data.data); | window.open(res.data.data); | ||||
this.$message({ | this.$message({ |
.then((res) => { | .then((res) => { | ||||
let data = res.data.data; | let data = res.data.data; | ||||
this.count = data.total; | this.count = data.total; | ||||
data = data.records.filter((item) => { | |||||
return !this.judge(item); | |||||
}); | |||||
// data = data.records.filter((item) => { | |||||
// return !this.judge(item); | |||||
// }); | |||||
data = data.records | |||||
this.dataList = this.reduceData(data); | this.dataList = this.reduceData(data); | ||||
}) | }) | ||||
.catch((e) => { | .catch((e) => { |