国内外标准-分解单导出修改传参
This commit is contained in:
@@ -3577,7 +3577,11 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
if (this.selectedItemList != null && this.selectedItemList.length > 0) {
|
if (this.selectedItemList != null && this.selectedItemList.length > 0) {
|
||||||
window.open('/api/lawss/sarStandItems/exportStandardItemExcel?idList=' + this.selectedItemList.join(','))
|
const ids = this.selectedItemList.reduce((init,item,index,arr)=>{
|
||||||
|
init.push(item.id)
|
||||||
|
return init
|
||||||
|
},[])
|
||||||
|
window.open('/api/lawss/sarStandItems/exportStandardItemExcel?idList=' + ids.join(','))
|
||||||
this.$message.success('导出成功')
|
this.$message.success('导出成功')
|
||||||
} else if (this.standItemList.length > 0) {
|
} else if (this.standItemList.length > 0) {
|
||||||
window.open('/api/lawss/sarStandItems/exportStandardItemExcel?standId=' + this.$route.params.id + '&fileType=' + this.fileType)
|
window.open('/api/lawss/sarStandItems/exportStandardItemExcel?standId=' + this.$route.params.id + '&fileType=' + this.fileType)
|
||||||
|
|||||||
Reference in New Issue
Block a user