KKbes
2023-08-07 492f744d9d84289e27b2ddac9a9b4a2137fd11d6
force-app/main/default/lwc/lexSubmitCampaign/lexSubmitCampaign.js
@@ -6,7 +6,7 @@
const event1 = new ShowToastEvent({
                  message:
                   "请填写是否需要出借备品!",
                   variant : "warning"
                   variant : "error"
});
const event2 = new ShowToastEvent({
                  message:
@@ -16,12 +16,12 @@
const event3 = new ShowToastEvent({
                  message:
                   "会议未结束,不允许提交会议报告。!",
                    variant : "warning"
                    variant : "error"
});
const event4 = new ShowToastEvent({
                  message:
                   "不能提交审批,请确认会议状态!",
                    variant : "warning"
                    variant : "error"
});
import init  from '@salesforce/apex/LexSubmitCampaignController.initSubmit';
@@ -40,7 +40,6 @@
          if (urlValue) {
            let str = `${urlValue}`;
            this.recordId = str;
            console.log(this.recordId);
          }
        }
    }
@@ -51,7 +50,6 @@
        }).then(result => {
            if (result != null) {
                this.Campaign = result;
                console.log(this.Campaign);
                this.submit().then(result=>{
                   this.IsLoading=false;
                   this.dispatchEvent(new CloseActionScreenEvent());
@@ -135,7 +133,6 @@
                     variant : 'error'
                 });   
              this.dispatchEvent(eventFail);
              alert('2222');
              return;
         }
      });