KKbes
2023-08-07 492f744d9d84289e27b2ddac9a9b4a2137fd11d6
force-app/main/default/lwc/lexMeetingCosts/lexMeetingCosts.js
@@ -13,9 +13,9 @@
  // author: kkbes
  const event = new ShowToastEvent({
            title: '权限不足',
            message:
                '无权查看会议费用情况',
            variant : 'error'
        });
export default class lexMeetingCosts extends LightningElement {
@@ -32,8 +32,6 @@
          const urlValue = currentPageReference.state.recordId;
          if (urlValue) {
            let str = `${urlValue}`;
            console.log("str");
            console.log(str);
            this.recordId = str;
          }
        }
@@ -43,17 +41,10 @@
         userDetails({error, data}) {
            if (data) {
                this.currentUserProfileId = data.fields.ProfileId.value;
                console.log('currentUserProfileId = :' + this.currentUserProfileId);
               
            } else if (error) {
                this.error = error ;
            }
    }
    connectedCallback(){
        console.log(this.recordId);
        init({
            recordId: this.recordId
        }).then(result => {
@@ -68,6 +59,12 @@
            console.log("error");
            console.log(error);
        });
    }
    connectedCallback(){
    }