| | |
| | | |
| | | //分页start |
| | | @track sortBy = ''; |
| | | @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 |
| | |
| | | ) * 100 |
| | | ).toFixed(2) |
| | | ); |
| | | console.log( |
| | | 'this.amend = ' + |
| | | this.amend( |
| | | this.topInfo.deList[i], |
| | | this.topInfo.saleAmount, |
| | | '/' |
| | | ) * |
| | | 100 |
| | | ); |
| | | console.log('this.amend = ' + this.amend(this.topInfo.deList[i],this.topInfo.saleAmount,'/') * 100); |
| | | total -= number; |
| | | this.topAccountData[i]['proportion'] = |
| | | number + '%'; |
| | |
| | | ); |
| | | |
| | | //其他 |
| | | console.log( |
| | | '(total.toFixed(2) > 0.00 ? total.toFixed(2) : 0.00) = ' + |
| | | (total.toFixed(2) > 0.0 |
| | | ? total.toFixed(2) |
| | | : '0.00') |
| | | ); |
| | | console.log('(total.toFixed(2) > 0.00 ? total.toFixed(2) : 0.00) = ' + (total.toFixed(2) > 0.00 ? total.toFixed(2) : '0.00')) |
| | | if (total != 100) { |
| | | this.topAccountData.push({ |
| | | accountName: '...', |
| | | accountUrl: '/s/lexconsumableaccount', |
| | | isDisable: true, |
| | | proportion: |
| | | (total.toFixed(2) > 0.0 |
| | | ? total.toFixed(2) |
| | | : '0.00') + '%', |
| | | proportion: (total.toFixed(2) > 0.00 ? total.toFixed(2) : '0.00') + '%', |
| | | CityMasterName: '...', |
| | | CityMasterNameUrl: '/lexconsumableaccount', |
| | | Town__c: '...', |
| | |
| | | accountName: '...', |
| | | accountUrl: '/s/lexconsumableaccount', |
| | | isDisable: true, |
| | | proportion: |
| | | (total.toFixed(2) > 0.0 |
| | | ? total.toFixed(2) |
| | | : '0.00') + '%', |
| | | proportion: (total.toFixed(2) > 0.00 ? total.toFixed(2) : '0.00') + '%', |
| | | CityMasterName: '...', |
| | | CityMasterNameUrl: '/lexconsumableaccount', |
| | | Town__c: '...', |
| | |
| | | } |
| | | |
| | | onHandleSort(event) { |
| | | console.log('event.detail.fieldName = ' + event.detail.fieldName); |
| | | console.log('event.detail.fieldName = ' + event.detail.fieldName) |
| | | this.sortBy = event.detail.fieldName; |
| | | switch (this.sortBy) { |
| | | case 'NameUrl': |