mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-13 18:13:18 +03:30
fix : style & resposive
This commit is contained in:
@@ -2,15 +2,11 @@ import Vue from 'vue'
|
|||||||
import upperFirst from 'lodash/upperFirst'
|
import upperFirst from 'lodash/upperFirst'
|
||||||
import camelCase from 'lodash/camelCase'
|
import camelCase from 'lodash/camelCase'
|
||||||
|
|
||||||
const requireComponent = require.context(
|
const requireComponent = require.context('@/components', true, /\.vue$/)
|
||||||
'@/components', true, /\.vue$/
|
|
||||||
)
|
|
||||||
|
|
||||||
requireComponent.keys().forEach(fileName => {
|
requireComponent.keys().forEach(fileName => {
|
||||||
const componentConfig = requireComponent(fileName)
|
const componentConfig = requireComponent(fileName)
|
||||||
|
|
||||||
const componentName = upperFirst(
|
const componentName = upperFirst(camelCase(fileName.replace(/^\.\//, '').replace(/\.\w+$/, '')))
|
||||||
camelCase(fileName.replace(/^\.\//, '').replace(/\.\w+$/, ''))
|
|
||||||
)
|
|
||||||
Vue.component(componentName, componentConfig.default || componentConfig)
|
Vue.component(componentName, componentConfig.default || componentConfig)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-card :class="color" class="tile-section">
|
<v-card :class="color" class="tile-section">
|
||||||
<v-container class="py-1">
|
<v-container class="py-0">
|
||||||
<v-layout row wrap>
|
<v-layout row wrap>
|
||||||
<v-flex xs12>
|
<v-flex xs12>
|
||||||
<v-card-text primary-text :class="aligntext" class="d-flex align-center">
|
<v-card-text primary-text :class="aligntext" class="d-flex align-center">
|
||||||
|
<div v-if="svg" v-html="svg" class="svg-container"></div>
|
||||||
<v-icon v-if="icon" size="20" class="mr-2" style="max-width: 30px;">{{ icon }}</v-icon>
|
<v-icon v-if="icon" size="20" class="mr-2" style="max-width: 30px;">{{ icon }}</v-icon>
|
||||||
<v-img v-if="image" src="image"/>
|
<v-img v-if="image" src="image"/>
|
||||||
<div>
|
<div>
|
||||||
@@ -34,6 +35,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: () => ''
|
default: () => ''
|
||||||
},
|
},
|
||||||
|
svg: {
|
||||||
|
type: String,
|
||||||
|
default: () => ''
|
||||||
|
},
|
||||||
icon: {
|
icon: {
|
||||||
type: String,
|
type: String,
|
||||||
default: () => ''
|
default: () => ''
|
||||||
@@ -66,7 +71,10 @@ export default {
|
|||||||
computed: {}
|
computed: {}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped lang="scss">
|
||||||
|
.tile-section {
|
||||||
|
border-radius: 10px;
|
||||||
|
|
||||||
.headline {
|
.headline {
|
||||||
font-size: 22px !important;
|
font-size: 22px !important;
|
||||||
text-transform: uppercase !important;
|
text-transform: uppercase !important;
|
||||||
@@ -81,7 +89,37 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.svg-container {
|
||||||
|
max-width: fit-content;
|
||||||
|
margin: 0 15px 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1598px) {
|
||||||
.tile-section {
|
.tile-section {
|
||||||
border-radius: 10px;
|
> .container {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1440px) {
|
||||||
|
.tile-section {
|
||||||
|
> .container {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.headline {
|
||||||
|
font-family: 'Montserrat-Light' !important;
|
||||||
|
font-size: 20px !important;
|
||||||
|
letter-spacing: 1px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subheading {
|
||||||
|
font-size: 12px !important;
|
||||||
|
font-family: 'Montserrat-Light' !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
v-text="header.text"/>
|
v-text="header.text"/>
|
||||||
</template>
|
</template>
|
||||||
<template slot="items" slot-scope="{ item }">
|
<template slot="items" slot-scope="{ item }">
|
||||||
<td class="headline font-weight-light">{{ item.id }}</td>
|
<td class="title font-weight-light">{{ item.id }}</td>
|
||||||
<td class="title font-weight-light">
|
<td class="title font-weight-light">
|
||||||
{{ (item.user && item.user.medical_center) ? item.user.medical_center.name : '' }}
|
{{ (item.user && item.user.medical_center) ? item.user.medical_center.name : '' }}
|
||||||
</td>
|
</td>
|
||||||
@@ -141,40 +141,16 @@
|
|||||||
import {ApiService} from "@/services";
|
import {ApiService} from "@/services";
|
||||||
import {urls} from "@/config/urls";
|
import {urls} from "@/config/urls";
|
||||||
import {mapMutations, mapGetters} from "vuex";
|
import {mapMutations, mapGetters} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{sortable: false, text: "Cycle ID", value: "Cycle ID"},
|
||||||
sortable: true,
|
{sortable: false, text: "Hospital", value: "Hospital"},
|
||||||
text: "Cycle ID",
|
{sortable: false, text: "Sterilizer ID", value: "Sterilizer ID"},
|
||||||
value: "Cycle ID"
|
{sortable: false, text: "Cycle Number", value: "Cycle Number"},
|
||||||
},
|
{sortable: false, text: "Date", value: "date"},
|
||||||
{
|
{sortable: false, text: "Action", value: "action", align: "left"}
|
||||||
sortable: true,
|
|
||||||
text: "Hospital",
|
|
||||||
value: "Hospital"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Sterilizer ID",
|
|
||||||
value: "Sterilizer ID"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Cycle Number",
|
|
||||||
value: "Cycle Number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Date",
|
|
||||||
value: "date"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Action",
|
|
||||||
value: "action",
|
|
||||||
align: "left"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
filter: {},
|
filter: {},
|
||||||
Menu: false,
|
Menu: false,
|
||||||
|
|||||||
+63
-18
@@ -7,9 +7,9 @@
|
|||||||
<v-flex v-if="!AdminCard.role || $hasRole(AdminCard.role)" :class="[AdminCard.column, 'pa-2']"
|
<v-flex v-if="!AdminCard.role || $hasRole(AdminCard.role)" :class="[AdminCard.column, 'pa-2']"
|
||||||
:key="Key">
|
:key="Key">
|
||||||
<router-link :to="AdminCard.route" style="height: 100%;display: grid;">
|
<router-link :to="AdminCard.route" style="height: 100%;display: grid;">
|
||||||
<material-cards :title="AdminCard.title" :icon="AdminCard.icon" :color="AdminCard.color"
|
<material-cards :title="AdminCard.title" :icon="AdminCard.icon" :svg="AdminCard.svg"
|
||||||
:text="AdminCard.text" :aligntext="AdminCard.aligntext"
|
:image="AdminCard.image" :color="AdminCard.color" :text="AdminCard.text"
|
||||||
:alignimg="AdminCard.alignimg"/>
|
:aligntext="AdminCard.aligntext" :alignimg="AdminCard.alignimg"/>
|
||||||
</router-link>
|
</router-link>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
</template>
|
</template>
|
||||||
@@ -24,9 +24,9 @@
|
|||||||
:key="Key">
|
:key="Key">
|
||||||
<router-link :to="SupervisorCard.route" style="height: 100%;display:grid;">
|
<router-link :to="SupervisorCard.route" style="height: 100%;display:grid;">
|
||||||
<material-cards :title="SupervisorCard.title" :icon="SupervisorCard.icon"
|
<material-cards :title="SupervisorCard.title" :icon="SupervisorCard.icon"
|
||||||
:color="SupervisorCard.color"
|
:color="SupervisorCard.color" :svg="SupervisorCard.svg"
|
||||||
:text="SupervisorCard.text" :aligntext="SupervisorCard.aligntext"
|
:image="SupervisorCard.image" :text="SupervisorCard.text"
|
||||||
:alignimg="SupervisorCard.alignimg"/>
|
:aligntext="SupervisorCard.aligntext" :alignimg="SupervisorCard.alignimg"/>
|
||||||
</router-link>
|
</router-link>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
</template>
|
</template>
|
||||||
@@ -40,8 +40,8 @@
|
|||||||
:key="Key">
|
:key="Key">
|
||||||
<router-link :to="UsersCard.route" style="height: 100%;display:grid;">
|
<router-link :to="UsersCard.route" style="height: 100%;display:grid;">
|
||||||
<material-cards :title="UsersCard.title" :icon="UsersCard.icon" :color="UsersCard.color"
|
<material-cards :title="UsersCard.title" :icon="UsersCard.icon" :color="UsersCard.color"
|
||||||
:text="UsersCard.text" :aligntext="UsersCard.aligntext"
|
:text="UsersCard.text" :aligntext="UsersCard.aligntext" :svg="UsersCard.svg"
|
||||||
:alignimg="UsersCard.alignimg"/>
|
:image="UsersCard.image" :alignimg="UsersCard.alignimg"/>
|
||||||
</router-link>
|
</router-link>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
</template>
|
</template>
|
||||||
@@ -140,8 +140,17 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: `<span>Add A </span><br/><span>Test Result</span>`,
|
title: `<span>Add A </span><br/><span>Test Result</span>`,
|
||||||
icon: 'fas fa-plus',
|
svg: ` <svg width="40" height="40" viewBox="0 0 777 777" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
// image:'https://cdn.willaspace.com/cssd/static/image/svg/Plus-white.svg',
|
<g clip-path="url(#clip0_93_57)">
|
||||||
|
<path d="M17.5938 388.5H759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M388.5 17.5938V759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_93_57">
|
||||||
|
<rect width="777" height="777" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>`,
|
||||||
color: 'black text-white',
|
color: 'black text-white',
|
||||||
route: {name: 'SubmitTestResult'},
|
route: {name: 'SubmitTestResult'},
|
||||||
aligntext: 'text-md-left',
|
aligntext: 'text-md-left',
|
||||||
@@ -173,8 +182,17 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: `<span>Add new </span><br/><span>item</span>`,
|
title: `<span>Add new </span><br/><span>item</span>`,
|
||||||
icon: 'fas fa-plus',
|
svg: ` <svg width="40" height="40" viewBox="0 0 777 777" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
// image:'https://cdn.willaspace.com/cssd/static/image/svg/Plus-white.svg',
|
<g clip-path="url(#clip0_93_57)">
|
||||||
|
<path d="M17.5938 388.5H759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M388.5 17.5938V759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_93_57">
|
||||||
|
<rect width="777" height="777" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>`,
|
||||||
color: 'WM-CyanGradient-BG text-white',
|
color: 'WM-CyanGradient-BG text-white',
|
||||||
route: {name: 'AddItem'},
|
route: {name: 'AddItem'},
|
||||||
aligntext: 'text-md-left',
|
aligntext: 'text-md-left',
|
||||||
@@ -206,8 +224,17 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: `<span>Add new </span><br/><span>Package</span>`,
|
title: `<span>Add new </span><br/><span>Package</span>`,
|
||||||
icon: 'fas fa-plus',
|
svg: ` <svg width="40" height="40" viewBox="0 0 777 777" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
// image:'https://cdn.willaspace.com/cssd/static/image/svg/Plus-white.svg',
|
<g clip-path="url(#clip0_93_57)">
|
||||||
|
<path d="M17.5938 388.5H759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M388.5 17.5938V759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_93_57">
|
||||||
|
<rect width="777" height="777" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>`,
|
||||||
color: 'WM-DeepBlueGradient-BG text-white',
|
color: 'WM-DeepBlueGradient-BG text-white',
|
||||||
route: {name: 'AddPackage'},
|
route: {name: 'AddPackage'},
|
||||||
aligntext: 'text-md-left',
|
aligntext: 'text-md-left',
|
||||||
@@ -229,8 +256,17 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: `<span>Add new </span><br/><span> label</span>`,
|
title: `<span>Add new </span><br/><span> label</span>`,
|
||||||
icon: 'fas fa-plus',
|
svg: ` <svg width="40" height="40" viewBox="0 0 777 777" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
// image:'https://cdn.willaspace.com/cssd/static/image/svg/Plus-white.svg',
|
<g clip-path="url(#clip0_93_57)">
|
||||||
|
<path d="M17.5938 388.5H759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M388.5 17.5938V759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_93_57">
|
||||||
|
<rect width="777" height="777" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>`,
|
||||||
color: 'WM-PurpleGradient-BG text-white',
|
color: 'WM-PurpleGradient-BG text-white',
|
||||||
route: {name: 'AddLabel'},
|
route: {name: 'AddLabel'},
|
||||||
aligntext: 'text-md-left',
|
aligntext: 'text-md-left',
|
||||||
@@ -252,8 +288,17 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: `<span>Add new </span><br/><span>cycle</span>`,
|
title: `<span>Add new </span><br/><span>cycle</span>`,
|
||||||
icon: 'fas fa-plus',
|
svg: ` <svg width="40" height="40" viewBox="0 0 777 777" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
// image:'https://cdn.willaspace.com/cssd/static/image/svg/Plus-white.svg',
|
<g clip-path="url(#clip0_93_57)">
|
||||||
|
<path d="M17.5938 388.5H759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M388.5 17.5938V759.406" stroke="white" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_93_57">
|
||||||
|
<rect width="777" height="777" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>`,
|
||||||
color: 'WM-RedGradient-BG text-white',
|
color: 'WM-RedGradient-BG text-white',
|
||||||
route: {name: 'AddCycle'},
|
route: {name: 'AddCycle'},
|
||||||
aligntext: 'text-md-left',
|
aligntext: 'text-md-left',
|
||||||
|
|||||||
+14
-39
@@ -4,13 +4,13 @@
|
|||||||
<material-card class color="black" title="All Labels" text>
|
<material-card class color="black" title="All Labels" text>
|
||||||
<v-layout align-center wrap class="px-5 my-3">
|
<v-layout align-center wrap class="px-5 my-3">
|
||||||
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter">
|
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter">
|
||||||
<v-icon class="fas fa-sort-numeric-up mr-2 WM-Margin-B-8"></v-icon>
|
<v-icon class="fas fa-sort-numeric-up mr-2 WM-Margin-B-8"/>
|
||||||
<v-text-field class="py-3" v-model="filter.label_id" label="Label ID"
|
<v-text-field class="py-3" v-model="filter.label_id" label="Label ID"
|
||||||
color="black"></v-text-field>
|
color="black"/>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
|
|
||||||
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter pl-3" v-if="$hasRole('Admin')">
|
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter pl-3" v-if="$hasRole('Admin')">
|
||||||
<v-icon class="fa fa-hospital-o mr-2 WM-Margin-B-8"></v-icon>
|
<v-icon class="fa fa-hospital-o mr-2 WM-Margin-B-8"/>
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
class="py-3 pr-3"
|
class="py-3 pr-3"
|
||||||
v-model="filter.medical_center_id"
|
v-model="filter.medical_center_id"
|
||||||
@@ -21,17 +21,17 @@
|
|||||||
color="black"
|
color="black"
|
||||||
:items="medicalCenters"
|
:items="medicalCenters"
|
||||||
:clearable="true"
|
:clearable="true"
|
||||||
></v-autocomplete>
|
/>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter pl-3">
|
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter pl-3">
|
||||||
<v-icon class="fas fa-sort-numeric-up mr-2 WM-Margin-B-8"></v-icon>
|
<v-icon class="fas fa-sort-numeric-up mr-2 WM-Margin-B-8"/>
|
||||||
<v-text-field class="py-3" v-model="filter.sterilizer_id" label="Sterilizer ID"
|
<v-text-field class="py-3" v-model="filter.sterilizer_id" label="Sterilizer ID"
|
||||||
color="black"></v-text-field>
|
color="black"/>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter pl-3">
|
<v-flex xs12 sm6 md6 lg3 xl2 class="WM-FlexCenter pl-3">
|
||||||
<v-icon class="fas fa-sort-numeric-up mr-2 WM-Margin-B-8"></v-icon>
|
<v-icon class="fas fa-sort-numeric-up mr-2 WM-Margin-B-8"/>
|
||||||
<v-text-field class="py-3" v-model="filter.cycle_number" label="Cycle Number"
|
<v-text-field class="py-3" v-model="filter.cycle_number" label="Cycle Number"
|
||||||
color="black"></v-text-field>
|
color="black"/>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
<v-spacer/>
|
<v-spacer/>
|
||||||
<v-flex xs12 sm6 md6 lg2 xl1 class="">
|
<v-flex xs12 sm6 md6 lg2 xl1 class="">
|
||||||
@@ -147,37 +147,12 @@ import {mapMutations, mapGetters} from "vuex";
|
|||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{sortable: false, text: "Label ID", value: "Label ID"},
|
||||||
sortable: true,
|
{sortable: false, text: "Hospital", value: "Hospital"},
|
||||||
text: "Label ID",
|
{sortable: false, text: "Owner", value: "User"},
|
||||||
value: "Label ID"
|
{sortable: false, text: "Cycle Number", value: "Cycle Number"},
|
||||||
},
|
{sortable: false, text: "SterilizerID", value: "SterilizerID"},
|
||||||
{
|
{sortable: false, text: "Action", value: "action", align: "left"}
|
||||||
sortable: true,
|
|
||||||
text: "Hospital",
|
|
||||||
value: "Hospital"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Owner",
|
|
||||||
value: "User"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Cycle Number",
|
|
||||||
value: "Cycle Number"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "SterilizerID",
|
|
||||||
value: "SterilizerID"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Action",
|
|
||||||
value: "action",
|
|
||||||
align: "left"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
filter: {},
|
filter: {},
|
||||||
items: [],
|
items: [],
|
||||||
|
|||||||
@@ -125,37 +125,12 @@ import toast from "@/services/global/toast.service";
|
|||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
headers: [
|
headers: [
|
||||||
// {
|
// {sortable: true,text: "ID",value: "id"},
|
||||||
// sortable: true,
|
{sortable: false, text: "Item ID", value: "id"},
|
||||||
// text: "ID",
|
{sortable: false, text: "Name", value: "name"},
|
||||||
// value: "id"
|
{sortable: false, text: "UDI", value: "udi"},
|
||||||
// },
|
{sortable: false, text: "Size", value: "size"},
|
||||||
{
|
{sortable: false, text: "Action", value: "action", align: "left"}
|
||||||
sortable: true,
|
|
||||||
text: "Item ID",
|
|
||||||
value: "id"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Name",
|
|
||||||
value: "name"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "UDI",
|
|
||||||
value: "udi"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Size",
|
|
||||||
value: "size"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Action",
|
|
||||||
value: "action",
|
|
||||||
align: "left"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
filter: {
|
filter: {
|
||||||
name: '',
|
name: '',
|
||||||
|
|||||||
@@ -52,9 +52,6 @@
|
|||||||
<td class="title font-weight-light">
|
<td class="title font-weight-light">
|
||||||
{{ (item.user && item.user.medical_center) ? item.user.medical_center.name : '' }}
|
{{ (item.user && item.user.medical_center) ? item.user.medical_center.name : '' }}
|
||||||
</td>
|
</td>
|
||||||
<td class="title font-weight-light">
|
|
||||||
{{ item.user ? item.user.name : '' | text_20_letter }}
|
|
||||||
</td>
|
|
||||||
<td class="title font-weight-light">{{ item.description }}</td>
|
<td class="title font-weight-light">{{ item.description }}</td>
|
||||||
<td class="title font-weight-light">{{ item.status }}</td>
|
<td class="title font-weight-light">{{ item.status }}</td>
|
||||||
<td class="text-xs-right FlexBtn Height-MD-60 justify-self-end">
|
<td class="text-xs-right FlexBtn Height-MD-60 justify-self-end">
|
||||||
@@ -134,7 +131,7 @@
|
|||||||
<v-divider/>
|
<v-divider/>
|
||||||
<div class="text-xs-center" v-if="lastPage > 1">
|
<div class="text-xs-center" v-if="lastPage > 1">
|
||||||
<v-pagination color="black" v-model="currentPage" :length="lastPage"
|
<v-pagination color="black" v-model="currentPage" :length="lastPage"
|
||||||
:total-visible="6"></v-pagination>
|
:total-visible="6"/>
|
||||||
</div>
|
</div>
|
||||||
<v-layout row wrap align-center justify-center class="mt-3">
|
<v-layout row wrap align-center justify-center class="mt-3">
|
||||||
<router-link to="/dashboard">
|
<router-link to="/dashboard">
|
||||||
@@ -158,37 +155,12 @@ import toast from "@/services/global/toast.service";
|
|||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{sortable: false, text: "Package ID", value: "Package ID"},
|
||||||
sortable: true,
|
{sortable: false, text: "Name", value: "name"},
|
||||||
text: "Package ID",
|
{sortable: false, text: "Hospital", value: "Hospital"},
|
||||||
value: "Package ID"
|
{sortable: false, text: "Description", value: "description"},
|
||||||
},
|
{sortable: false, text: "Status", value: "status"},
|
||||||
{
|
{sortable: false, text: "Action", value: "action", align: "center"}
|
||||||
sortable: true,
|
|
||||||
text: "Name",
|
|
||||||
value: "name"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Hospital",
|
|
||||||
value: "Hospital"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Description",
|
|
||||||
value: "description"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Status",
|
|
||||||
value: "status"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Action",
|
|
||||||
value: "action",
|
|
||||||
align: "left"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
filter: {
|
filter: {
|
||||||
name: '',
|
name: '',
|
||||||
@@ -218,8 +190,8 @@ export default {
|
|||||||
if (result && result.status == 200) {
|
if (result && result.status == 200) {
|
||||||
const {data, meta} = result.data;
|
const {data, meta} = result.data;
|
||||||
this.items = data;
|
this.items = data;
|
||||||
this.currentPage = meta.current_page;
|
this.currentPage = meta? meta.current_page : 1;
|
||||||
this.lastPage = meta.last_page;
|
this.lastPage =meta? meta.last_page : 1;
|
||||||
}
|
}
|
||||||
this.loadMedicalCenters();
|
this.loadMedicalCenters();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -16,15 +16,8 @@
|
|||||||
title="Simple Table"
|
title="Simple Table"
|
||||||
text="Here is a subtitle for this table"
|
text="Here is a subtitle for this table"
|
||||||
>
|
>
|
||||||
<v-data-table
|
<v-data-table :headers="headers" :items="items" hide-actions>
|
||||||
:headers="headers"
|
<template slot="headerCell" slot-scope="{ header }">
|
||||||
:items="items"
|
|
||||||
hide-actions
|
|
||||||
>
|
|
||||||
<template
|
|
||||||
slot="headerCell"
|
|
||||||
slot-scope="{ header }"
|
|
||||||
>
|
|
||||||
<span
|
<span
|
||||||
class="subheading font-weight-light text-success text--darken-3"
|
class="subheading font-weight-light text-success text--darken-3"
|
||||||
v-text="header.text"
|
v-text="header.text"
|
||||||
@@ -52,15 +45,8 @@
|
|||||||
title="Table on Plain Background"
|
title="Table on Plain Background"
|
||||||
text="Here is a subtitle for this table"
|
text="Here is a subtitle for this table"
|
||||||
>
|
>
|
||||||
<v-data-table
|
<v-data-table :headers="headers" :items="items.slice(0, 7)" hide-actions>
|
||||||
:headers="headers"
|
<template slot="headerCell" slot-scope="{ header }">
|
||||||
:items="items.slice(0, 7)"
|
|
||||||
hide-actions
|
|
||||||
>
|
|
||||||
<template
|
|
||||||
slot="headerCell"
|
|
||||||
slot-scope="{ header }"
|
|
||||||
>
|
|
||||||
<span
|
<span
|
||||||
class="subheading font-weight-light text--darken-3"
|
class="subheading font-weight-light text--darken-3"
|
||||||
v-text="header.text"
|
v-text="header.text"
|
||||||
|
|||||||
@@ -156,42 +156,13 @@ import toast from "@/services/global/toast.service";
|
|||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{sortable: false, text: "Package ID", value: "Package ID"},
|
||||||
sortable: true,
|
{sortable: false, text: "Name", value: "name"},
|
||||||
text: "Package ID",
|
{sortable: false, text: "Hospital", value: "Hospital"},
|
||||||
value: "Package ID"
|
{sortable: false, text: "Owner", value: "User"},
|
||||||
},
|
{sortable: false, text: "Description", value: "description"},
|
||||||
{
|
{sortable: false, text: "Status", value: "status"},
|
||||||
sortable: true,
|
{sortable: false, text: "Action", value: "action", align: "left"}
|
||||||
text: "Name",
|
|
||||||
value: "name"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Hospital",
|
|
||||||
value: "Hospital"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Owner",
|
|
||||||
value: "User"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Description",
|
|
||||||
value: "description"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: true,
|
|
||||||
text: "Status",
|
|
||||||
value: "status"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sortable: false,
|
|
||||||
text: "Action",
|
|
||||||
value: "action",
|
|
||||||
align: "left"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
filter: {
|
filter: {
|
||||||
name: '',
|
name: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user