diff --git a/src/components/core/Drawer.vue b/src/components/core/Drawer.vue index 0de6261..c471437 100644 --- a/src/components/core/Drawer.vue +++ b/src/components/core/Drawer.vue @@ -19,15 +19,15 @@ @@ -53,7 +53,7 @@ export default { { to: {name: 'MyInfo'}, icon: 'mdi-account', - text: 'My Info' + text: 'My Info', }, { to: {name: 'SubmitTestResult'}, @@ -63,53 +63,36 @@ export default { { to: {name: 'AllResultTest'}, icon: 'description', - text: 'All Test Result', - line: true - }, - { - to: {name: 'ManageMedicalCenter'}, - icon: 'far fa-building', - text: 'Manage Medical Center', - role: 'Admin', - }, - { - to: {name: 'ManageUsers'}, - icon: 'far fa-address-book', - text: 'Manage Users', - role: 'Admin', - }, - { - to: {name: 'ListTestType'}, - icon: 'fas fa-vial', - text: 'List Test Type', - role: 'Admin', + text: 'Test Results', line: true }, + { to: {name: 'AllItem'}, icon: 'far fa-clone', text: 'Items', - role: 'Admin|Supervisor|User' }, { to: {name: 'MyItem'}, icon: 'far fa-clone', text: 'My Items', - role: 'Admin|Supervisor|User', line: true }, { to: {name: 'AllPackage'}, icon: 'fas fa-archive', text: 'Packages', - role: 'Admin|Supervisor|User', + }, + { + to: {name: 'MyPackage'}, + icon: 'far fa-clone', + text: 'My Packages', line: true }, { to: {name: 'AllLabels'}, icon: 'fas fa-inbox', text: 'Labels', - line: true }, { to: {name: 'AllCycle'}, @@ -117,16 +100,34 @@ export default { text: 'Cycles', line: true }, - /* { - to: {name: 'Statistics'}, - icon: 'fas fa-chart-bar', - text: 'Statistics', + { + to: {name: 'ManageMedicalCenter'}, + icon: 'far fa-building', + text: 'Medical Center', + role: 'Admin', }, { - to: {name: 'Tickets'}, - icon: 'style', - text: 'Tickets', - },*/ + to: {name: 'ManageUsers'}, + icon: 'far fa-address-book', + text: 'Users', + role: 'Admin|Supervisor', + }, + { + to: {name: 'ListTestType'}, + icon: 'fas fa-vial', + text: 'Manage Test Type', + role: 'Admin', + }, + /* { + to: {name: 'Statistics'}, + icon: 'fas fa-chart-bar', + text: 'Statistics', + }, + { + to: {name: 'Tickets'}, + icon: 'style', + text: 'Tickets', + },*/ ], responsive: false }), diff --git a/src/components/core/Dropzone.vue b/src/components/core/Dropzone.vue index 91dc8cc..ad3ad59 100644 --- a/src/components/core/Dropzone.vue +++ b/src/components/core/Dropzone.vue @@ -24,7 +24,6 @@ import { ApiService } from "@/services"; import { urls } from "@/config/urls"; import toast from "@/services/global/toast.service"; - import { mapGetters } from 'vuex' export default { props: ['ModelID', 'Images', 'BatchID', 'ModelType'], @@ -33,7 +32,7 @@ }, data: () => ({ dropzoneOptions: { - url: '/api/UploadFile', + url: '/api/store_media', thumbnailWidth: 150, maxFilesize: 2, headers: { "Authorization": `Bearer ${TokenService.getToken()}` }, @@ -69,7 +68,7 @@ } }, sending(file, xhr, form_data) { - form_data.append('file', file); + // form_data.append('file', file); form_data.append('model_id', this.ModelID); form_data.append('model_type', this.ModelType); form_data.append('batch_id', this.BatchID); diff --git a/src/components/core/Toolbar.vue b/src/components/core/Toolbar.vue index 0868077..c2096ec 100644 --- a/src/components/core/Toolbar.vue +++ b/src/components/core/Toolbar.vue @@ -5,7 +5,7 @@ mdi-view-list - {{ title }} +

{{ title }}

@@ -76,10 +76,7 @@ diff --git a/src/components/material/Cards.vue b/src/components/material/Cards.vue index 2d451e5..fa59e8b 100644 --- a/src/components/material/Cards.vue +++ b/src/components/material/Cards.vue @@ -1,83 +1,86 @@ \ No newline at end of file diff --git a/src/components/material/ChartCard.vue b/src/components/material/ChartCard.vue index 2876dd0..7909fcd 100644 --- a/src/components/material/ChartCard.vue +++ b/src/components/material/ChartCard.vue @@ -1,9 +1,5 @@ diff --git a/src/components/material/Notification.vue b/src/components/material/Notification.vue index d608c72..c5328d1 100644 --- a/src/components/material/Notification.vue +++ b/src/components/material/Notification.vue @@ -4,8 +4,7 @@ :class="[`elevation-${elevation}`]" :value="value" class="v-alert--notification" - v-on="$listeners" - > + v-on="$listeners"> diff --git a/src/components/material/StatsCard.vue b/src/components/material/StatsCard.vue index a4b174d..341fa8b 100644 --- a/src/components/material/StatsCard.vue +++ b/src/components/material/StatsCard.vue @@ -1,46 +1,20 @@