* Set branch value.

This commit is contained in:
daitingting
2023-10-19 02:45:38 +00:00
parent de66ea6ba2
commit 3499444e5e
2 changed files with 16 additions and 5 deletions
+9
View File
@@ -1,5 +1,14 @@
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)
{
+7 -5
View File
@@ -10,11 +10,13 @@ declare(strict_types=1);
*/
namespace zin;
jsVar('modulePairs', $modulePairs);
jsVar('scenePairs', $scenePairs);
jsVar('productID', $productID);
jsVar('products', $products);
jsVar('cases', $cases);
jsVar('branchProduct', $branchProduct);
jsVar('branchOption', $branchTagOption[$productID]);
jsVar('modulePairs', $modulePairs);
jsVar('scenePairs', $scenePairs);
jsVar('productID', $productID);
jsVar('products', $products);
jsVar('cases', $cases);
if(isset($suhosinInfo))
{