Files
EasySoft-ZenTaoPMS/module/testcase/js/batchedit.ui.js
T
2023-10-19 02:45:38 +00:00

28 lines
885 B
JavaScript

window.handleRenderRow = function($row, index, row)
{
/* Set the branches for the row. */
if(branchProduct)
{
$row.find('.form-batch-control[data-name="branch"] .picker-box').on('inited', function(e, info)
{
let $branch = info[0];
$branch.$.setValue(row.branch);
});
}
/* Set the modules for the row. */
$row.find('.form-batch-control[data-name="module"] .picker-box').on('inited', function(e, info)
{
let $module = info[0];
$module.render({items: modulePairs[row.id]});
$module.$.setValue(row.module);
});
/* Set the scenes for the row. */
$row.find('.form-batch-control[data-name="scene"] .picker-box').on('inited', function(e, info)
{
let $scene = info[0];
$scene.render({items: scenePairs[row.id]});
$scene.$.setValue(row.scene);
});
}