1
chenjingwu
2024-04-11 b25bfabc33dc733574e8e1b176c948692680633c
force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
@@ -28,12 +28,17 @@
                this.id = result.Id;
                this.AntiLogicButton();
                this.dispatchEvent(new CloseActionScreenEvent());
        })
        }).catch(() => {
        }).finally(() => {
        });
    }
    //招标项目反逻辑删除
    //反逻辑删除
    AntiLogicButton(){
        ContraryLogicalDel({DTenId : this.id}).then(result =>{
            console.log(result,'成功与否');
            if(result == 'OK'){
                this.showToast("反逻辑删除成功","success");
            }
@@ -47,6 +52,14 @@
            variant: type
        });
        this.dispatchEvent(event);
        this.dispatchEvent(new CloseActionScreenEvent());
    }
}
// /var ContraryL = function(){
//     var DTenId = "{!Tender_information__c.Id}";//删除的招投标
//     var rtn = sforce.apex.execute("TenderWebService", "ContraryLogicalDel", {DTenId : DTenId } );
//     //重新加载页面
//     window.location.reload();
//     }
//     ContraryL();