Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Hải Sơn
quasar-web-base
Commits
0d330504
Commit
0d330504
authored
May 04, 2022
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a7d22a86
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
27 deletions
+27
-27
PersonalInformation.ts
...t-information/personal-information/PersonalInformation.ts
+5
-5
index.vue
...ponents/artist-information/personal-information/index.vue
+1
-2
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+19
-19
index.vue
src/pages/them-nghe-sy/index.vue
+2
-1
No files found.
src/components/artist-information/personal-information/PersonalInformation.ts
View file @
0d330504
...
...
@@ -53,7 +53,7 @@ export default defineComponent({
emailRules
:
{
type
:
Boolean
,
required
:
true
},
emailAdministerRules
:
{
type
:
Boolean
,
required
:
true
},
phoneNumberAdministerRules
:
{
type
:
Boolean
,
required
:
true
},
addressRules
:
{
type
:
Boolean
,
required
:
true
},
//
addressRules: { type: Boolean, required: true },
phoneNumberRules
:
{
type
:
Boolean
,
required
:
true
},
sexRules
:
{
type
:
Boolean
,
required
:
true
},
nationalityRules
:
{
type
:
Boolean
,
required
:
true
},
...
...
@@ -136,9 +136,9 @@ export default defineComponent({
const
errorMessNationality
=
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requireNationality'
);
const
errorMessAddress
=
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requireAddress'
);
//
const errorMessAddress = i18n.global.t(
//
'artist.artistInformation.validateMessages.requireAddress'
//
);
const
errorMessFields
=
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requireField'
);
...
...
@@ -170,7 +170,7 @@ export default defineComponent({
errorMessBirthday
,
errorMessSex
,
errorMessNationality
,
errorMessAddress
,
//
errorMessAddress,
errorMessFields
,
errorMessWorks
,
errorMessQualification
,
...
...
src/components/artist-information/personal-information/index.vue
View file @
0d330504
...
...
@@ -225,8 +225,7 @@
<q-select
:model-value=
"address"
@
update:model-value=
"$emit('update:address', $event)"
:error=
"addressRules"
:error-message=
"errorMessAddress"
:options=
"provinceOptions"
option-value=
"name"
option-label=
"fullName"
...
...
src/pages/them-nghe-sy/AddArtist.ts
View file @
0d330504
...
...
@@ -157,7 +157,7 @@ export default defineComponent({
const
artistNameRules
=
ref
(
false
);
const
birthdayRules
=
ref
(
false
);
const
emailRules
=
ref
(
false
);
const
addressRules
=
ref
(
false
);
//
const addressRules = ref(false);
const
phoneNumberRules
=
ref
(
false
);
const
mnBookingEmailRules
=
ref
(
false
);
const
mnBookingPhoneRules
=
ref
(
false
);
...
...
@@ -238,14 +238,14 @@ export default defineComponent({
}
}
);
watch
(
()
=>
address
,
(
value
)
=>
{
if
(
value
)
{
addressRules
.
value
=
false
;
}
}
);
//
watch(
// () => address.value
,
//
(value) => {
//
if (value) {
//
addressRules.value = false;
//
}
//
}
//
);
watch
(
()
=>
phoneNumber
.
value
,
(
value
)
=>
{
...
...
@@ -673,10 +673,6 @@ export default defineComponent({
hasError
=
true
;
artistNameRules
.
value
=
true
;
}
if
(
address
.
value
)
{
hasError
=
true
;
addressRules
.
value
=
true
;
}
if
(
!
birthday
.
value
||
!
birthday
.
value
?.
trim
().
length
)
{
hasError
=
true
;
birthdayRules
.
value
=
true
;
...
...
@@ -722,10 +718,10 @@ export default defineComponent({
);
}
if
(
artistLevel
.
value
===
null
)
{
hasError
=
true
;
artistLevelRules
.
value
=
true
;
}
//
if (artistLevel.value === null) {
//
hasError = true;
//
artistLevelRules.value = true;
//
}
if
(
!
fields
.
value
)
{
hasError
=
true
;
fieldRules
.
value
=
true
;
...
...
@@ -742,6 +738,10 @@ export default defineComponent({
hasError
=
true
;
workRules
.
value
=
true
;
}
// if(!address.value === null){
// hasError = true;
// addressRules.value = true;
// }
if
(
hasError
===
false
)
{
void
addArtist
();
}
...
...
@@ -796,7 +796,7 @@ export default defineComponent({
artistCode
:
artistCode
.
value
,
artistName
:
artistName
.
value
,
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
birthday
:
birthday
.
value
+
'00:00:00'
,
birthday
:
birthday
.
value
+
'
00:00:00'
,
sex
:
sex
.
value
,
address
:
address
.
value
?.
name
,
phoneNumber
:
phoneNumber
.
value
,
...
...
@@ -972,7 +972,7 @@ export default defineComponent({
artistNameRules
,
birthdayRules
,
emailRules
,
addressRules
,
//
addressRules,
phoneNumberRules
,
sexRules
,
nationalityRules
,
...
...
src/pages/them-nghe-sy/index.vue
View file @
0d330504
...
...
@@ -75,7 +75,6 @@
:artistNameRules=
"artistNameRules"
:birthdayRules=
"birthdayRules"
:emailRules=
"emailRules"
:addressRules=
"addressRules"
:phoneNumberRules=
"phoneNumberRules"
:sexRules=
"sexRules"
:nationalityRules=
"nationalityRules"
...
...
@@ -94,7 +93,9 @@
@
SetAvatar=
"setAvatar($event)"
@
deleteAvatar=
"deleteAvatar"
@
UpdateBirtday=
"UpdateBirtday($event)"
></PersonalInformation>
<!-- :addressRules="addressRules" -->
</q-tab-panel>
<q-tab-panel
name=
"vabAccount"
>
<VabAccount
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment