This commit is contained in:
User 2023-06-08 16:35:03 +05:30
parent 7ee985c09d
commit c818a442ca
5 changed files with 18 additions and 139 deletions

View File

@ -1,119 +0,0 @@
export default {
VAlert: {
density: 'comfortable',
},
VAvatar: {
// Remove after next release
variant: 'flat',
},
VBadge: {
// set v-badge default color to primary
color: 'primary',
},
VBtn: {
// set v-btn default color to primary
color: 'primary',
},
VChip: {
elevation: 0,
},
VMenu: {
VList: {
density: 'compact',
},
},
VPagination: {
activeColor: 'primary',
density: 'comfortable',
},
VTabs: {
// set v-tabs default color to primary
color: 'primary',
},
VTooltip: {
// set v-tooltip default location to top
location: 'top',
},
// VList: {
// VListItem: {
// activeColor: 'primary',
// },
// },
VCheckbox: {
// set v-checkbox default color to primary
color: 'primary',
density: 'comfortable',
hideDetails: 'auto',
},
VRadioGroup: {
color: 'primary',
density: 'comfortable',
hideDetails: 'auto',
},
VRadio: {
density: 'comfortable',
hideDetails: 'auto',
},
VSelect: {
variant: 'outlined',
density: 'comfortable',
color: 'primary',
hideDetails: 'auto',
},
VRangeSlider: {
// set v-range-slider default color to primary
color: 'primary',
density: 'comfortable',
thumbLabel: true,
hideDetails: 'auto',
},
VRating: {
// set v-rating default color to primary
color: 'warning',
},
VProgressCircular: {
// set v-progress-circular default color to primary
color: 'primary',
},
VSlider: {
// set v-slider default color to primary
color: 'primary',
hideDetails: 'auto',
},
VTextField: {
variant: 'outlined',
density: 'comfortable',
color: 'primary',
hideDetails: 'auto',
},
VAutocomplete: {
variant: 'outlined',
density: 'comfortable',
color: 'primary',
hideDetails: 'auto',
},
VCombobox: {
variant: 'outlined',
density: 'comfortable',
color: 'primary',
hideDetails: 'auto',
},
VFileInput: {
variant: 'outlined',
density: 'comfortable',
color: 'primary',
hideDetails: 'auto',
},
VTextarea: {
variant: 'outlined',
density: 'comfortable',
color: 'primary',
hideDetails: 'auto',
},
VSwitch: {
// set v-switch default color to primary
color: 'primary',
hideDetails: 'auto',
},
}

View File

@ -3,11 +3,12 @@ import { createVuetify } from "vuetify";
import "@mdi/font/css/materialdesignicons.css"; import "@mdi/font/css/materialdesignicons.css";
import "vuetify/styles"; import "vuetify/styles";
import { VDataTable } from 'vuetify/labs/VDataTable' import { VDataTable } from 'vuetify/labs/VDataTable'
import * as labs from 'vuetify/labs/components'
import * as directives from 'vuetify/directives' import * as directives from 'vuetify/directives'
import theme from './theme' import theme from './theme'
import { VuetifyDateAdapter } from 'vuetify/labs/date/adapters/vuetify' import { VuetifyDateAdapter } from 'vuetify/labs/date/adapters/vuetify'
import * as components from 'vuetify/components'
import * as labsComponents from 'vuetify/labs/components'
// Vuetify // Vuetify
export default createVuetify({ export default createVuetify({
@ -16,7 +17,8 @@ export default createVuetify({
directives, directives,
components: { components: {
VDataTable, VDataTable,
...labs, ...components,
...labsComponents
}, },
date: { date: {
adapter: VuetifyDateAdapter, adapter: VuetifyDateAdapter,

View File

@ -7,24 +7,24 @@
} }
// *********** data-table styling // *********** data-table styling
.v-data-table-footer{ .set-table-content .v-data-table-footer{
display: flex; display: flex;
justify-content: end; justify-content: end;
margin-top: 30px margin-top: 30px
} }
.v-input__control { .set-table-content .v-input__control {
padding-top: 2px; padding-top: 2px;
padding-bottom: 10px; padding-bottom: 10px;
} }
.v-data-table-footer__items-per-page{ .set-table-content .v-data-table-footer__items-per-page{
display: flex; display: flex;
margin-right: 10px; margin-right: 10px;
} }
.v-data-table-footer__items-per-page > span{ .set-table-content .v-data-table-footer__items-per-page > span{
margin-right: 10px; margin-right: 10px;
padding-top: 6px padding-top: 6px
} }
.v-data-table-footer__info{ .set-table-content .v-data-table-footer__info{
padding-top: 7px; padding-top: 7px;
} }
.v-data-table-footer__pagination{ .v-data-table-footer__pagination{

View File

@ -55,7 +55,6 @@
variant="outlined" variant="outlined"
label="Created From" label="Created From"
color="primary pt-0" color="primary pt-0"
> >
</v-text-field> </v-text-field>
</v-col> </v-col>
@ -174,23 +173,23 @@
:headers="headers" :headers="headers"
:items="OrderHistory" :items="OrderHistory"
:items-per-page="10" :items-per-page="10"
class="elevation-1" class="elevation-1 set-table-content"
> >
<template v-slot:item.date="{ item }"> <template v-slot:item.date="{ item }">
<span>{{ isoStringToNormalDate(item.value.updatedAt) }}</span> <span>{{ isoStringToNormalDate(item.selectable.updatedAt) }}</span>
</template> </template>
<template v-slot:item.order="{ item }"> <template v-slot:item.order="{ item }">
<span>{{ item.value.incrementId }}</span> <span>{{ item.selectable.incrementId }}</span>
</template> </template>
<template v-slot:item.salesrepname="{ item }"> <template v-slot:item.salesrepname="{ item }">
<span>{{ userInfo.firstname + "" + userInfo.lastname }}</span> <span>{{ userInfo.firstname + "" + userInfo.lastname }}</span>
</template> </template>
<template v-slot:item.status="{ item }"> <template v-slot:item.status="{ item }">
<span>{{ item.value.status }}</span> <span>{{ item.selectable.status }}</span>
</template> </template>
<template v-slot:item.POnumber="{ item }"> <template v-slot:item.POnumber="{ item }">
<span>{{ item.value.payment.poNumber }}</span> <span>{{ item.selectable.payment.poNumber }}</span>
</template> </template>
<template v-slot:item.actions={item}> <template v-slot:item.actions={item}>
@ -207,8 +206,6 @@
</v-hover> </v-hover>
</template> </template>
</v-data-table> </v-data-table>
</v-col> </v-col>
</v-row> </v-row>

View File

@ -63,11 +63,10 @@ export const auth = {
"newsletter": "", "newsletter": "",
"logged": false "logged": false
}); });
}, },
login: async({ commit, state, dispatch }) => { login: async({ commit, state, dispatch }) => {
try { try {
/* eslint-disable */
commit('inProgress', true); commit('inProgress', true);
const token = await doLogin(state.one); const token = await doLogin(state.one);