1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
| /*
| * @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);
| });
|
| }
| }
|
|