19626
2023-09-13 196df4d4bf1941546d349cadbf343655578ec280
force-app/main/default/lwc/lexNewSolutionProgramma/lexNewSolutionProgramma.js
@@ -4,7 +4,7 @@
 * @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';
@@ -41,12 +41,13 @@
  }
  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
@@ -61,9 +62,7 @@
    });
  }
  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());