| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import { NavigationMixin } from 'lightning/navigation'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import init from '@salesforce/apex/QISReportController.initForlexSendQISButton'; |
| | | import sendSPO from '@salesforce/apex/QISReportController.updateQisForSendQIS'; |
| | | import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | |
| | | export default class lexSendQIS extends LightningElement { |
| | | @api recordId; |
| | |
| | | |
| | | }); |
| | | } |
| | | updateRecordView(recordId) { |
| | | updateRecord({fields: { Id: recordId }}); |
| | | } |
| | | |
| | | send2SPO(){ |
| | | sendSPO({ |
| | | recordId: this.recordId |
| | |
| | | }); |
| | | this.dispatchEvent(evt); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.updateRecordView(this.recordId); |
| | | window.location.replace("https://olympus.sharepoint.cn/sites/GSPWF/SitePages/HomePage.aspx"); |
| | | } |
| | | |