123
chenjingwu
2024-04-15 a55a26c9266a1d3cbbe06272b1e23dcaed95a846
force-app/main/default/lwc/lexApplicationSubmitButton/lexApplicationSubmitButton.js
@@ -2,7 +2,7 @@
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';
@@ -34,15 +34,13 @@
                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