| | |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-06-26 11:10:52 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-07-10 14:11:57 |
| | | * @LastEditTime: 2023-09-11 15:23:16 |
| | | */ |
| | | |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | |
| | | } |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | title: ' ', |
| | | message: msg, |
| | | variant: type, |
| | | mode: 'sticky' |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | } |
| | | connectedCallback(){ |
| | | init({ |
| | | recordId: this.recordId |
| | |
| | | }); |
| | | } |
| | | newSolutionProgramma(){ |
| | | this.profileId = this.m2profileId; |
| | | this.girWindowDirectorApproved = true; |
| | | console.log(this.profileId != this.m2profileId); |
| | | console.log(this.girWindowDirectorApproved); |
| | | if(this.profileId != this.m2profileId){ |
| | | this.showToast('只有GIR窗口才能新建方案','error'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |