| | |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/ApplicationButtonController.initSubmitButton'; |
| | | import UserInfo_Owner from '@salesforce/apex/ApplicationButtonController.UserInfo_Owner'; |
| | | import userInfo_Owner from '@salesforce/apex/ApplicationButtonController.userInfo_Owner'; |
| | | import submit from '@salesforce/apex/ApplicationButtonController.submit'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | |
| | | this.id = result.Id; |
| | | this.Submit(); |
| | | } |
| | | }).catch(() => { |
| | | }).finally(() => { |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | Submit(){ |
| | | this.arrMessage = []; |
| | | //获取获取当前登陆人 |
| | | UserInfo_Owner({}).then(result=>{ |
| | | userInfo_Owner({}).then(result=>{ |
| | | if(this.ownerId == result.id){ |
| | | submit({ |
| | | recordId: this.recordId |