buli
2023-07-14 5b5c1e16deaa3a9d6d0ed1ffca390655ed103df7
force-app/main/default/lwc/lexConsumableAccount/lexConsumableAccount.js
@@ -228,7 +228,7 @@
    //分页start
    @track sortBy = '';
    @track pageSize = 10;
    @track pageSize = 200;
    error;
    records;
    currentPageToken = 0;
@@ -238,7 +238,7 @@
    @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
@@ -485,15 +485,7 @@
                                        ) * 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 + '%';
@@ -505,21 +497,13 @@
                            );
                            //其他
                            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: '...',
@@ -686,10 +670,7 @@
                            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: '...',
@@ -821,7 +802,7 @@
    }
    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':