Commit 18f31f91 authored by Tình Trương's avatar Tình Trương

update

parent 97c7bf13
...@@ -85,7 +85,6 @@ export default defineComponent({ ...@@ -85,7 +85,6 @@ export default defineComponent({
emits: [ emits: [
'update:account', 'update:account',
'update:shortDescription', 'update:shortDescription',
'update:content',
'update:formatSchedules', 'update:formatSchedules',
'selectedFile', 'selectedFile',
'deleteBanner', 'deleteBanner',
......
...@@ -15,6 +15,7 @@ export default defineComponent({ ...@@ -15,6 +15,7 @@ export default defineComponent({
setup(props, context) { setup(props, context) {
const file: Ref<File | string> = ref(''); const file: Ref<File | string> = ref('');
const title: Ref<string> = ref('');
const content: Ref<string> = ref(''); const content: Ref<string> = ref('');
const urlFileLocal: Ref<string> = ref(''); const urlFileLocal: Ref<string> = ref('');
const uploadStory = (value: FileList) => { const uploadStory = (value: FileList) => {
...@@ -31,6 +32,7 @@ export default defineComponent({ ...@@ -31,6 +32,7 @@ export default defineComponent({
); );
const ResetData = () => { const ResetData = () => {
file.value = ''; file.value = '';
title.value = '';
content.value = ''; content.value = '';
urlFileLocal.value = ''; urlFileLocal.value = '';
}; };
...@@ -38,6 +40,7 @@ export default defineComponent({ ...@@ -38,6 +40,7 @@ export default defineComponent({
context.emit('click:CloseBtnAddStory'); context.emit('click:CloseBtnAddStory');
context.emit('insertData', { context.emit('insertData', {
file: file.value, file: file.value,
title: title.value,
content: content.value, content: content.value,
imageUrl: urlFileLocal.value, imageUrl: urlFileLocal.value,
}); });
...@@ -48,6 +51,7 @@ export default defineComponent({ ...@@ -48,6 +51,7 @@ export default defineComponent({
SubmitData, SubmitData,
urlFileLocal, urlFileLocal,
file, file,
title,
content, content,
ResetData, ResetData,
}; };
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
></UploadImage> ></UploadImage>
<q-input <q-input
v-model="title"
label="Tiêu đề" label="Tiêu đề"
hide-bottom-space hide-bottom-space
type="text" type="text"
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
outlined outlined
></q-input> ></q-input>
</div> </div>
<div class="col-auto"> <div class="col-auto" style="margin-top: 2px">
<q-btn color="primary" no-caps label="Reset Pass"></q-btn> <q-btn color="primary" no-caps label="Reset Pass"></q-btn>
</div> </div>
<div class="col-12 flex q-mt-sm"> <div class="col-12 flex q-mt-sm">
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
font-size: 30px; font-size: 30px;
" "
> >
<!-- Ninh Dương Lan Ngọc --> {{ story.title }}
</div> </div>
<div style="text-align: justify; background: bottom"> <div style="text-align: justify; background: bottom">
{{ story.content }} {{ story.content }}
...@@ -359,7 +359,6 @@ ...@@ -359,7 +359,6 @@
:model-value="formatSchedules" :model-value="formatSchedules"
@update:model-value="$emit('update:formatSchedules', $event)" @update:model-value="$emit('update:formatSchedules', $event)"
multiple multiple
readonly
event-color="orange" event-color="orange"
/> />
</div> </div>
......
<template> <template>
<div class="row q-col-gutter-sm flex-center q-mt-sm"> <div class="row q-col-gutter-sm flex-center q-mt-sm">
<div class="col-auto text-h6 text-weight-regular flex flex-center q-mr-md"> <!-- <div class="col-auto text-h6 text-weight-regular flex flex-center q-mr-md">
{{ $t('listBooking.title') }} {{ $t('listBooking.title') }}
<q-separator vertical spaced /> <q-separator vertical spaced />
</div> </div> -->
<q-space></q-space> <q-space></q-space>
<div class="col-2"> <div class="col-2 sreach">
<q-select <q-select
v-model="sreachArtist" v-model="sreachArtist"
:options="artistOptions" :options="artistOptions"
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
clearable clearable
></q-select> ></q-select>
</div> </div>
<div class="col-2"> <div class="col-2 sreach">
<q-select <q-select
v-model="sreachUserName" v-model="sreachUserName"
:options="customerOptions" :options="customerOptions"
...@@ -29,8 +29,32 @@ ...@@ -29,8 +29,32 @@
clearable clearable
></q-select> ></q-select>
</div> </div>
<div class="col-2 sreach">
<q-select
v-model="sreachStatus"
:options="BookingStatus"
option-label="text"
option-value="value"
dense
outlined
:label="$t('listBooking.titleColumnsTable.status')"
clearable
></q-select>
</div>
<div class="col-2 sreach">
<q-select
v-model="sreachActiveStatus"
:options="Status"
option-label="text"
option-value="value"
dense
outlined
:label="$t('listBooking.titleColumnsTable.activeStatus')"
clearable
></q-select>
</div>
<div class="col-2"> <div class="col-2 sreach">
<!-- v-model="date[0]" --> <!-- v-model="date[0]" -->
<q-input <q-input
:label="$t('listBooking.titleColumnsTable.fromTime')" :label="$t('listBooking.titleColumnsTable.fromTime')"
...@@ -61,7 +85,7 @@ ...@@ -61,7 +85,7 @@
</template> </template>
</q-input> </q-input>
</div> </div>
<div class="col-2"> <div class="col-2 sreach">
<!-- v-model="date[1]" --> <!-- v-model="date[1]" -->
<q-input <q-input
:label="$t('listBooking.titleColumnsTable.toTime')" :label="$t('listBooking.titleColumnsTable.toTime')"
...@@ -366,6 +390,8 @@ export default defineComponent({ ...@@ -366,6 +390,8 @@ export default defineComponent({
const totalPage = ref(1); const totalPage = ref(1);
const sreachArtist: Ref<string | null> = ref(null); const sreachArtist: Ref<string | null> = ref(null);
const sreachUserName: Ref<string | null> = ref(null); const sreachUserName: Ref<string | null> = ref(null);
const sreachStatus = ref(null);
const sreachActiveStatus = ref(null);
const changePageSize = () => { const changePageSize = () => {
pageIndex.value = 1; pageIndex.value = 1;
void getListBooking(); void getListBooking();
...@@ -475,7 +501,14 @@ export default defineComponent({ ...@@ -475,7 +501,14 @@ export default defineComponent({
getListBooking, getListBooking,
BookingStatus, BookingStatus,
Status, Status,
sreachStatus,
sreachActiveStatus,
}; };
}, },
}); });
</script> </script>
<style lang="scss" scoped>
.sreach {
width: 12rem;
}
</style>
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