* [bug#54666,0.5h] fix single and multiple change bug.

This commit is contained in:
songchenxuan
2025-01-14 15:34:12 +08:00
committed by 綦新志
parent 2db776f1f4
commit 9e2532be42
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ window.afterPageUpdate = function($target, info, options)
window.initCheckedList = function()
{
if(typeof window.checkedList !== 'undefined' && Array.isArray(window.checkedList) && window.checkedList.length > 1)
if(viewType == 'multiple' && (typeof window.checkedList !== 'undefined' && Array.isArray(window.checkedList) && window.checkedList.length > 1))
{
return window.checkedList;
}
@@ -18,7 +18,7 @@ foreach($groupMetrics as $key => $metrics)
foreach($metrics as $metric)
{
$class = in_array($metric->id, $checkedList) ? 'metric-current' : '';
$class .= ' font-medium checkbox';
$class .= ' check-metric font-medium checkbox';
$metricCheckItems[] = item
(
set::text($metric->name),