Răsfoiți Sursa

Vue logic update in edit popup

Vijayakrishnan 4 ani în urmă
părinte
comite
0f73b28cb7

+ 1 - 1
resources/views/app/patient/partials/equipment.blade.php

@@ -88,7 +88,7 @@
                     showPopup: function(_name, _item) {
                         closeStagPopup();
                         this.popupMode = _item ? 'edit' : 'add';
-                        this.popupItem = _item ? _item : {
+                        this.popupItem = _item ? JSON.parse(JSON.stringify(_item)) : {
                             uid: '',
                             is_open: true,
                             items: '',

+ 1 - 1
resources/views/app/patient/partials/imaging.blade.php

@@ -88,7 +88,7 @@
                     showPopup: function(_name, _item) {
                         closeStagPopup();
                         this.popupMode = _item ? 'edit' : 'add';
-                        this.popupItem = _item ? _item : {
+                        this.popupItem = _item ? JSON.parse(JSON.stringify(_item)) : {
                             uid: '',
                             is_open: true,
                             tests: '',

+ 1 - 1
resources/views/app/patient/partials/lab.blade.php

@@ -88,7 +88,7 @@
                     showPopup: function(_name, _item) {
                         closeStagPopup();
                         this.popupMode = _item ? 'edit' : 'add';
-                        this.popupItem = _item ? _item : {
+                        this.popupItem = _item ? JSON.parse(JSON.stringify(_item)) : {
                             uid: '',
                             is_open: true,
                             tests: '',