From e2fefbbb75ae93ed892665c80c0adcf4933ad8c2 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 21 Aug 2024 10:08:20 +0800 Subject: [PATCH] + [bug#54283,start,0.3h] set company picker. --- module/user/js/batchcreate.ui.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/module/user/js/batchcreate.ui.js b/module/user/js/batchcreate.ui.js index 859f30a8bd..83bf26da52 100644 --- a/module/user/js/batchcreate.ui.js +++ b/module/user/js/batchcreate.ui.js @@ -1,3 +1,21 @@ +window.renderRowData = function($row, index, row) +{ + $row.find('[data-name="companyItem"]').find('.picker-box').on('inited', function(e, info) + { + let $compnayPicker = info[0]; + if(index == 0) + { + let companyItems = info[0].options.items; + companyItems.pop(); + $compnayPicker.render({items: companyItems}); + } + else + { + $compnayPicker.$.setValue('ditto'); + } + }); +}; + /** * 根据用户类型切换控件的显示和隐藏。 * Toggle the display of controls according to the user type.