| | |
| | | //分页start |
| | | @track sortBy = ''; |
| | | @track sortDirection = 'asc'; |
| | | @track pageSize = 10; |
| | | @track pageSize = 200; |
| | | error; |
| | | records; |
| | | currentPageToken = 0; |
| | |
| | | @track pageNumber = 1; |
| | | @track paginationVisibility = false; |
| | | @track totalPages = 1; |
| | | pageSizeOptions = [10, 25, 50, 100]; |
| | | pageSizeOptions = [100, 200, 300]; |
| | | @track recordStart = 0; |
| | | @track recordEnd = 0; |
| | | //end |
| | |
| | | doc += '</table>'; |
| | | console.log('doc' + doc); |
| | | var bom = '\uFEFF'; |
| | | // link.href = 'data:text/csv;charset=utf-8,' + encodeURIComponent(bom + csv); |
| | | var element = |
| | | 'data:application/vnd.ms-excel,' + encodeURIComponent(bom + doc); |
| | | let downloadElement = document.createElement('a'); |
| | | downloadElement.href = element; |
| | | downloadElement.target = '_self'; |
| | | // 设置响应头禁用缓存 |
| | | // downloadElement.setAttribute('data-turbolinks-cache-control', 'no-cache'); |
| | | // downloadElement.setAttribute('data-turbolinks-track', 'reload'); |
| | | // use .csv as extension on below line if you want to export data as csv |
| | | downloadElement.download = '在库调整一览.xls'; |
| | | document.body.appendChild(downloadElement); |
| | |
| | | .querySelector('c-common-toast') |
| | | .showToast(variant, content, iconName, 10000); |
| | | } |
| | | } |
| | | } |