update

parent ec552e9d
......@@ -92,7 +92,21 @@ export default defineComponent({
}
};
const options = ref(null)
// const filterFn = (val:string, update) => {
// if (val === '') {
// update(() => {
// })
// return
// }
// update(() => {
// const needle = val.toLowerCase()
// // options.value = stringOptions.filter(v => v.toLowerCase().indexOf(needle) > -1)
// })
// }
const upload = ref(null);
const uploadBanner = () => {
......@@ -162,6 +176,7 @@ export default defineComponent({
check_infoBooking: ref(false),
upload,
uploadBanner,
// filterFn,
selectedFile,
deleteAvatar,
BirthdayDatePicker,
......@@ -224,5 +239,6 @@ export default defineComponent({
'SetAvatar',
'deleteAvatar',
'UpdateBirtday',
],
});
......@@ -269,11 +269,16 @@
hide-bottom-space
clearable
dense
behavior="menu"
use-input
fill-input
input-debounce="0"
@filter="filterFn"
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
No results
Không có dữ liệu
</q-item-section>
</q-item>
</template>
......
......@@ -28,14 +28,25 @@ export const Login = defineComponent({
(val: string) =>
(val && val.trim().length > 0) ||
i18n.global.t('loginPage.requireUsername'),
(val: string) =>
(val && /^[a-zA-Z0-9\+]*$/.test(val)) || 'Tên đăng nhập không hợp lệ'
];
// console.log(isOK)
const passwordInputRules = [
(val: string) =>
(val && val.trim().length > 0) ||
i18n.global.t('loginPage.requirePassword'),
];
const resetForm = () => {
user_name.value = '';
password.value = '';
......
......@@ -222,6 +222,15 @@ export default defineComponent({
headerStyle: 'text-align: center !important;',
align: 'left',
sortable: false,
},
{
name: 'accountName',
field: 'accountName',
required: true,
label: 'Tên đăng nhập',
headerStyle: 'text-align: center !important;',
align: 'left',
sortable: false,
},
{
name: 'fullName',
......
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