修改未符合项的传参
This commit is contained in:
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user