|
@@ -381,6 +381,15 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
data: <?= json_encode($contentData) ?>,
|
|
data: <?= json_encode($contentData) ?>,
|
|
defaultDropdownOptions: {}
|
|
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() {
|
|
mounted: function() {
|
|
$('#edit-univ_physical_exam-container').find('[moe][initialized]').removeAttr('initialized');
|
|
$('#edit-univ_physical_exam-container').find('[moe][initialized]').removeAttr('initialized');
|
|
initMoes();
|
|
initMoes();
|