소스 검색

updated pe

Peter Muturi 2 년 전
부모
커밋
5b30875d72
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      resources/views/app/patient/segment-templates/omega_pe/edit.blade.php

+ 9 - 0
resources/views/app/patient/segment-templates/omega_pe/edit.blade.php

@@ -381,6 +381,15 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
               data: <?= json_encode($contentData) ?>,
               defaultDropdownOptions: {}
             },
+            watch: {
+                $data: {
+                    handler: function(val, oldVal) {
+                        let parent = $('#edit-univ_physical_exam-container').closest('form');
+                        parent.find('[name="data"]').val(JSON.stringify(this.$data)).trigger('save-trigger');
+                    },
+                    deep: true
+                }
+            },
             mounted: function() {
                 $('#edit-univ_physical_exam-container').find('[moe][initialized]').removeAttr('initialized');
                 initMoes();