1
chenjingwu
2024-05-24 bdb1a98b64a2cf59bcfd575c579aa0742e0de954
force-app/main/default/pages/LostEditPage1.page
@@ -9,7 +9,8 @@
            var ReportId = getParam('id');
            if(!ReportId){
                alert('报告没有ID,请重试!');
                window.open('/006/o','_self');
                // window.open('/006/o');
                window.location = '/006/o';
                return;
            }
            sforce.connection.sessionId = '{!GETSESSIONID()}';
@@ -40,22 +41,23 @@
            if(getParam('retURL') != null){
                str += '&retURL='+getParam('retURL');
            }
            window.open(str,'_self');
            // window.open(str);
            window.location = str;
        }
        function getParam(paramName) {
            paramValue = "", isFound = !1;
            if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) {
                arrSource = decodeURI(this.location.search).substring(1, this.location.search.length).split("&"), i = 0;
                while (i < arrSource.length && !isFound) arrSource[i].indexOf("=") > 0 && arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase() && (paramValue = arrSource[i].split("=")[1], isFound = !0), i++
                    }
            }
            return paramValue == "" && (paramValue = null), paramValue;
        }
        function lostReport(){
        //失单报告的ID
        var ReportId = getParam('id');
        var str = '/apex/PCLLostReportPage?pageStatus=Edit&id=' + ReportId;
        window.open(str,'_self');
        var str = '/lightning/n/PCLLostReportPageLwc#pageStatus=Edit&reportId=' + ReportId;
        // window.open(str);
        window.location = str;
        }
    </script>
</apex:page>