소스 검색

跨级选中

laiguoran 4 년 전
부모
커밋
2a46b00538
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/public/js/schedule_ledger.js

+ 2 - 1
app/public/js/schedule_ledger.js

@@ -142,10 +142,11 @@ $(function () {
                     if (select_msg.select_children || select.is_select === 0) {
                         updateChildrenSelect(select.children, select.is_select);
                     }
-                    if (select_msg.select_siblings) {
+                    if (!select_msg.select_other_siblings && select_msg.select_siblings) {
                         updateSiblingsSelect(info.sheet.zh_tree, select.ledger_pid, select.is_select, select_msg);
                     }
                     if (select_msg.select_other_siblings) {
+                        updateSiblingsSelect(info.sheet.zh_tree, select.ledger_pid, select.is_select, select_msg);
                         updateOtherSiblingsSelect(info.sheet.zh_tree, select.ledger_pid, select.is_select, select_msg);
                     }
                     if(select.is_select === 1) {