1
chenjingwu
2024-04-10 f6cc0758077ae6392a1951ffef34d90e2ce562be
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
import { api, wire,LightningElement } from 'lwc';
import { getRecord } from 'lightning/uiRecordApi';
export default class LexOpportunity12Rating extends LightningElement {
    @api recordId;
    
    @wire(getRecord,{ recordId: '$recordId',
    fields: [
        'Opportunity.Rating01__c',
        'Opportunity.Rating02__c',
        'Opportunity.Rating03__c',
        'Opportunity.Rating04__c',
        'Opportunity.Rating05__c',
        'Opportunity.Rating06__c',
        'Opportunity.Rating07__c',
        'Opportunity.Rating08__c',
        'Opportunity.Rating09__c',
        'Opportunity.Rating10__c',
        'Opportunity.Rating11__c',
        'Opportunity.Rating12__c'
    ] })
    opp;
    month = new Date().getMonth;
    ifMonth1 = this.month == 1;
    ifMonth2 = this.month == 2;
    ifMonth3 = this.month == 3;
    ifMonth4 = this.month == 4;
    ifMonth5 = this.month == 5;
    ifMonth6 = this.month == 6;
    ifMonth7 = this.month == 7;
    ifMonth8 = this.month == 8;
    ifMonth9 = this.month == 9;
    ifMonth10 = this.month == 10;
    ifMonth11 = this.month == 11;
    ifMonth12 = this.month == 12;
}