Update index.vue

parent 8492f54b
......@@ -147,7 +147,6 @@
<q-btn
flat
round
color="primary"
icon="mdi-check-circle-outline"
@click="confirmDeleteCustomer(rowData.row.id)"
......@@ -155,7 +154,6 @@
<q-tooltip :offset="[20, 10]">Xác nhận</q-tooltip>
</q-btn>
<q-btn
flat
round
size="0.9em"
......@@ -165,7 +163,6 @@
>
<q-tooltip>Từ chối</q-tooltip>
</q-btn>
</q-td>
</template>
<template v-slot:body-cell-stt="item">
......@@ -192,30 +189,16 @@
<template v-slot:body-cell-isArtistCancel="rowData">
<q-td>
<div align="center">
<q-chip
v-if="rowData.value === 1"
size="sm"
>
Nghệ sĩ
</q-chip>
<q-chip
v-else
<q-chip v-if="rowData.value === 1" size="sm"> Nghệ sĩ </q-chip>
size="sm"
>
Khách hàng
</q-chip>
<q-chip v-else size="sm"> Khách hàng </q-chip>
</div>
</q-td>
</template>
<template v-slot:body-cell-reasonRefuse="item">
<td>
<div>{{item.row.reasonRefuse}}</div>
</td>
<td>
<div>{{ item.row.reasonRefuse }}</div>
</td>
</template>
<template v-slot:body-cell-content="item">
......@@ -383,7 +366,6 @@ export default defineComponent({
sortable: false,
},
// {
// name: 'favoriteScore',
// field: 'favoriteScore',
......@@ -403,7 +385,6 @@ export default defineComponent({
sortable: false,
},
{
name: 'action',
field: 'action',
......@@ -417,7 +398,6 @@ export default defineComponent({
const ListStatusBooking = ref([
{ id: 4, name: 'Chờ hủy', color: 'warning' },
]);
const ListPerformStatus = ref([
......@@ -458,7 +438,9 @@ export default defineComponent({
title: i18n.global.t(
'customer.confirmActionsTitle.confirmDeleteUserTitle'
),
message: i18n.global.t('Bạn có chắc muốn xác nhận hủy booking này không?'),
message: i18n.global.t(
'Bạn có chắc muốn xác nhận hủy booking này không?'
),
cancel: i18n.global.t(
'customer.confirmActionsTitle.confirmDeleteUserCancelBtnLabel'
),
......@@ -544,8 +526,8 @@ export default defineComponent({
custId: sreachUserName.value?.id,
status: sreachStatus.value?.id,
performStatus: sreachPerformStatus.value?.id,
fromTime: moment(date.value[0], 'DD/MM/YYYY').format('DD/MM/YYYY'),
toTime: moment(date.value[1], 'DD/MM/YYYY').format('DD/MM/YYYY'),
fromTime: '',
toTime: '',
},
})) as AxiosResponse<BaseResponseBody<PaginationResponse<ListBooking>>>;
if (response.data.error.code === config.API_RES_CODE.OK.code) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment