From 32846f936c11e78145b7943ad2713bce04b3c359 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 25 四月 2024 13:13:42 +0800
Subject: [PATCH] 123
---
force-app/main/default/pages/MaintenanceProductData.page | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/pages/MaintenanceProductData.page b/force-app/main/default/pages/MaintenanceProductData.page
index d1a1e36..8f7fbe4 100644
--- a/force-app/main/default/pages/MaintenanceProductData.page
+++ b/force-app/main/default/pages/MaintenanceProductData.page
@@ -1658,7 +1658,7 @@
</td>
<td>
<apex:commandButton id="add" onclick="addJs(this);" value="娣诲姞" style="position:relative;width:100px;"/>
- <apex:commandButton id="delete" onclick="deleteJs();" value="鍒犻櫎" style="position:relative;width:100px;"/>
+ <apex:commandButton id="delete" onclick="deleteJs(this);" value="鍒犻櫎" style="position:relative;width:100px;"/>
</td>
</tr>
<apex:repeat value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c]}" var="mu" id="bb1" first="1">
@@ -1673,8 +1673,8 @@
<apex:InputField value="{!mu.mpdrdd.AmountWithheld__c}" id="AmountWithheld" />
</td>
<td>
- <apex:commandButton id="add1" onclick="addJs(this);" value="娣诲姞" style="position:relative;width:100px;"/>
- <apex:commandButton id="delete1" onclick="deleteJs(this);" value="鍒犻櫎" style="position:relative;width:100px;"/>
+ <apex:commandButton id="add1" onclick="add1Js(this);" value="娣诲姞" style="position:relative;width:100px;"/>
+ <apex:commandButton id="delete1" onclick="delete1Js(this);" value="鍒犻櫎" style="position:relative;width:100px;"/>
</td>
</tr>
</apex:repeat>
@@ -1733,6 +1733,12 @@
}
console.log(index);
}
+ function add1Js(el){
+ // if(el.id){
+ // var index = el.id.substring(el.id.lastIndexOf('aa:') + 3,el.id.length - 4);
+ // }
+ console.log(el.id);
+ }
</script>
<!-- chenjingwu 20240417 end -->
</apex:pageBlock>
--
Gitblit v1.9.1