阅读:4945
回复:10
|
子表赋值只有第一行好用 第二行就不好用了
版本10.3 在onchange里写得事件 第一行好用 第二行就不行了 求大神解答
|
|
1楼#
发布于:2018-07-10 14:25
岩竹玉雨:子表获取复制都要带上行号$("table[data-datafield='AddCustomerAddress']").find("tr[class=rows]").each(function (n, value) { if($.MvcSheetUI.GetControlValue("AddCustomerAddress.AddressTypeID")=="收货地址",n+1){ $.MvcSheetUI.SetControlValue("AddCustomerAddress.AddressType","A",n+1); }else if($.MvcSheetUI.GetControlValue("AddCustomerAddress.AddressTypeID")=="收票地址",n+1){ $.MvcSheetUI.SetControlValue("AddCustomerAddress.AddressType","B",n+1); } } 照您那个写了个 但是没有用 麻烦大神看看哪里写的不对 |
|
|
2楼#
发布于:2018-07-11 09:18
|
|
|