diff --git a/src/components/AddNote.vue b/src/components/AddNote.vue index d29ce86..1439745 100644 --- a/src/components/AddNote.vue +++ b/src/components/AddNote.vue @@ -27,8 +27,9 @@ export default { methods: { saveComment() { this.saving = true - let url = this.$api_url + "/customers/" + this.customer.acc_no + "/comments" + let url = this.$api_url + "/customers/comments" axios.put(url, { + acc_no: this.customer.acc_no, comment: this.comment }) .then(resp => { diff --git a/src/router/index.js b/src/router/index.js index 44a02aa..dd3ebe1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -39,11 +39,21 @@ const routes = [ name: 'contractlist', component: ContractList }, + { + path: '/customers/contracts/list/:id', + name: 'contractlistid', + component: ContractList + }, { path: '/customers/medicated-feeds/list', name: 'medfeedslist', component: MedFeedsList }, + { + path: '/customers/medicated-feeds/list/:id', + name: 'medfeedslistid', + component: MedFeedsList + }, { path: '/customers/complaints/list', name: 'complaintslist', diff --git a/src/views/contracts/ContractList.vue b/src/views/contracts/ContractList.vue index 55da30b..4d3029c 100644 --- a/src/views/contracts/ContractList.vue +++ b/src/views/contracts/ContractList.vue @@ -1,5 +1,5 @@