Vijayakrishnan 4 vuotta sitten
vanhempi
commit
87a72d8a5d

+ 1 - 27
resources/views/app/patient/canvas-sections/lifestyle_rx_review/form.blade.php

@@ -115,33 +115,7 @@ $formID = rand(0, 100000);
                     }
                 },
                 methods: {
-                    addItem: function() {
-                        this.data['{{$sectionPro->uid}}']['current_cch']['list'].push({
-                            "category": '',
-                            "name": '',
-                            "icd": '',
-                            "memo": '',
-                            "hpi": {
-                                "free_text": ''
-                            },
-                        });
-                    },
-                    removeItem: function(_index) {
-                        this.data['{{$sectionPro->uid}}']['current_cch']['list'].splice(_index, 1);
-                    },
-                    cleanArray: function(_source) {
-                        let plItems = [], plObject = {};
-                        for (let x=0; x<_source.length; x++) {
-                            plObject = {};
-                            for (let y in _source[x]) {
-                                if(_source[x].hasOwnProperty(y)) {
-                                    plObject[y] = _source[x][y];
-                                }
-                            }
-                            plItems.push(plObject);
-                        }
-                        return plItems;
-                    },
+
                 }
             });
         }

+ 1 - 27
resources/views/app/patient/canvas-sections/lifestyle_rx_update/form.blade.php

@@ -411,33 +411,7 @@ $formID = rand(0, 100000);
                     }
                 },
                 methods: {
-                    addItem: function() {
-                        this.data['{{$sectionPro->uid}}']['current_cch']['list'].push({
-                            "category": '',
-                            "name": '',
-                            "icd": '',
-                            "memo": '',
-                            "hpi": {
-                                "free_text": ''
-                            },
-                        });
-                    },
-                    removeItem: function(_index) {
-                        this.data['{{$sectionPro->uid}}']['current_cch']['list'].splice(_index, 1);
-                    },
-                    cleanArray: function(_source) {
-                        let plItems = [], plObject = {};
-                        for (let x=0; x<_source.length; x++) {
-                            plObject = {};
-                            for (let y in _source[x]) {
-                                if(_source[x].hasOwnProperty(y)) {
-                                    plObject[y] = _source[x][y];
-                                }
-                            }
-                            plItems.push(plObject);
-                        }
-                        return plItems;
-                    },
+
                 }
             });
         }