修改未符合项的传参

This commit is contained in:
qq787203167
2022-05-12 14:26:38 +08:00
parent 89f5dc7932
commit 9b3f5dcd72
6 changed files with 57 additions and 38 deletions
@@ -244,7 +244,8 @@
url: {
page: '/project/ncrTrackController/queryPage',
exportData: '/project/ncrTrackController/exportData'
}
},
content: []
}
},
mounted() {
@@ -269,7 +270,20 @@
this.getList()
},
onSelectChange(value) {
this.content = []
this.selectedRowKeys = value
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.dataSource.forEach(res => {
this.selectedRowKeys.forEach(val => {
if (res.id == val) {
this.content.push({
id: res.id,
flowType: res.flowType
})
}
})
})
}
},
searchReset() {
this.pageNo = 1
@@ -307,7 +321,7 @@
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let query = {
...this.queryParam,
ids: selectedRowKeys.join(',')
ncrTrackVOList: this.content
}
downloadFile(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect)
},