From b51b57a619d3f0075ccaa13303c99c9e849bf23a Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期二, 23 四月 2024 18:13:54 +0800
Subject: [PATCH] 123
---
force-app/main/default/pages/MaintenanceProductDataManage.page | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/pages/MaintenanceProductDataManage.page b/force-app/main/default/pages/MaintenanceProductDataManage.page
index 44d9d32..3190d17 100644
--- a/force-app/main/default/pages/MaintenanceProductDataManage.page
+++ b/force-app/main/default/pages/MaintenanceProductDataManage.page
@@ -1,10 +1,15 @@
-<apex:page standardController="Maintenance_Product_Data__c" showHeader="false" sidebar="false">
+<apex:page standardController="Maintenance_Product_Data__c" showHeader="true" sidebar="true" lightningStylesheets="true">
+ <apex:stylesheet value="{!URLFOR($Resource.StyleUtilColorCss)}"/>
<script type="text/javascript">
function init() {
// var test = window.location.search;
var str = '/apex/MaintenanceProductData?cpn1=*';
+ console.log("123124215125");
if(getParam('RecordType') != null){
str += '&RecordType='+getParam('RecordType');
+ }
+ if(getParam('recordTypeId') != null){
+ str += '&RecordType='+getParam('recordTypeId');
}
if(getParam('CMRT') != null){
str += '&CMRT='+getParam('CMRT');
@@ -15,6 +20,7 @@
if(getParam('p8') != null){
str += '&p8='+getParam('p8');
}
+ console.log(getParam('CF00N10000002DIsr'));
if(getParam('CF00N10000002DIsr') != null){
str += '&CF00N10000002DIsr='+getParam('CF00N10000002DIsr');
}
@@ -30,12 +36,16 @@
}
function getParam(paramName) {
paramValue = "", isFound = !1;
+ console.log(this.location.search);
if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) {
arrSource = unescape(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
}
+ document.addEventListener("DOMContentLoaded", function(event) {
+ init();
+ });
</script>
<body onload="init()">
--
Gitblit v1.9.1