| | |
| | | </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"> |
| | |
| | | <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> |
| | |
| | | } |
| | | 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> |