| | |
| | | // author: kkbes |
| | | |
| | | const event = new ShowToastEvent({ |
| | | title: '权限不足', |
| | | message: |
| | | '无权查看会议费用情况', |
| | | variant : 'error' |
| | | }); |
| | | export default class lexMeetingCosts extends LightningElement { |
| | | |
| | |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | |
| | | 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 => { |
| | |
| | | }).catch(error => { |
| | | console.log("error"); |
| | | console.log(error); |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | connectedCallback(){ |
| | | |
| | | |
| | | } |
| | | |