/* * @Date: 2024-02-27 13:47:08 * @Author: @zyh * @LastEditTime: 2024-03-01 10:59:05 * @Descripttion: */ import { LightningElement, track, api, wire } from 'lwc'; import getRecentlyViewedListView from '@salesforce/apex/RecordLastCtl.getRecentlyViewedListView'; import gettotalcount from '@salesforce/apex/RetrieveApprovalRecordsController.gettotalcount'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; import { NavigationMixin } from 'lightning/navigation'; import { refreshApex } from '@salesforce/apex'; export default class RecordLast extends LightningElement { @api wrapperList = []; @api draftValues = []; @track error; @track sortBy; @track sortDirection; @track bShowModal = false; @track selectedcommentrowno; @track icomments = ''; @track record; @track queryOffset; @track queryLimit; @track totalRecordCount; @track showinfiniteLoadingSpinner = true; @track showLoadingSpinner = false; @track isDialogVisible = false; @track originalMessage; @track wrapperListtrue = true; @track title = '最近记录'; @api footertext; @track enable_app_rej = true; @track columns = [ { label: '', type: 'icon', initialWidth: 80, cellAttributes: { iconName: {fieldName:'ico'} } }, { label: '名称', fieldName: 'amount', type: 'url', typeAttributes:{ label:{fieldName: 'name'}, target:'_blank' }, // initialWidth: 200, wrapText: true, sortable: false, hideDefaultActions: true }, { label: '类型', fieldName: 'type', type: 'text', initialWidth: 120, sortable: false, hideDefaultActions: true } ]; connectedCallback() { getRecentlyViewedListView() .then(data => { this.wrapperList = data; console.log('test111',data); console.log('test222',this.wrapperList); }) .catch(error => { console.log('error==='+error); console.log('error===',error); }); } }