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
559338d5
Commit
559338d5
authored
Feb 28, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7cf9391f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
43 deletions
+31
-43
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+2
-4
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+29
-39
No files found.
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
559338d5
...
@@ -364,7 +364,7 @@ export default defineComponent({
...
@@ -364,7 +364,7 @@ export default defineComponent({
fullName
.
value
=
ArtistInformation
.
fullName
;
fullName
.
value
=
ArtistInformation
.
fullName
;
artistName
.
value
=
ArtistInformation
.
artistName
;
artistName
.
value
=
ArtistInformation
.
artistName
;
birthday
.
value
=
birthday
.
value
=
ArtistInformation
.
birthday
===
null
ArtistInformation
.
birthday
===
null
?
null
?
null
:
moment
(
ArtistInformation
.
birthday
,
'DD/MM/YYYY HH:mm:ss'
).
format
(
:
moment
(
ArtistInformation
.
birthday
,
'DD/MM/YYYY HH:mm:ss'
).
format
(
'DD/MM/YYYY'
'DD/MM/YYYY'
...
@@ -584,9 +584,7 @@ export default defineComponent({
...
@@ -584,9 +584,7 @@ export default defineComponent({
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
Notify
.
create
({
Notify
.
create
({
type
:
'positive'
,
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
message
:
'Xóa sản phẩm nổi bật thành công'
,
'artist.dialogLabel.validateMessages.deleteAccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
});
products
.
value
.
splice
(
value
,
1
);
products
.
value
.
splice
(
value
,
1
);
...
...
src/pages/them-nghe-sy/AddArtist.ts
View file @
559338d5
...
@@ -82,8 +82,8 @@ export default defineComponent({
...
@@ -82,8 +82,8 @@ export default defineComponent({
const
cardBankOptions
:
Ref
<
CardBankType
[]
>
=
ref
([]);
const
cardBankOptions
:
Ref
<
CardBankType
[]
>
=
ref
([]);
const
typeBankOptions
:
Ref
<
TypeCardType
[]
>
=
ref
([]);
const
typeBankOptions
:
Ref
<
TypeCardType
[]
>
=
ref
([]);
const
workOptions
:
Ref
<
WorkType
[]
>
=
ref
([]);
const
workOptions
:
Ref
<
WorkType
[]
>
=
ref
([]);
const
musicOptions
:
Ref
<
MusicType
[]
>=
ref
([]);
const
musicOptions
:
Ref
<
MusicType
[]
>
=
ref
([]);
const
provinceOptions
:
Ref
<
ProvinceType
[]
>
=
ref
([]);
const
provinceOptions
:
Ref
<
ProvinceType
[]
>
=
ref
([]);
const
sexOptions
=
ref
([
const
sexOptions
=
ref
([
{
id
:
1
,
name
:
'Nam'
},
{
id
:
1
,
name
:
'Nam'
},
{
id
:
2
,
name
:
'Nữ'
},
{
id
:
2
,
name
:
'Nữ'
},
...
@@ -101,7 +101,7 @@ export default defineComponent({
...
@@ -101,7 +101,7 @@ export default defineComponent({
const
artistName
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
artistName
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
birthday
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
birthday
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
sex
:
Ref
<
number
|
null
>
=
ref
(
null
);
const
sex
:
Ref
<
number
|
null
>
=
ref
(
null
);
const
nationality
:
Ref
<
NationalityType
>
=
ref
({
const
nationality
:
Ref
<
NationalityType
>
=
ref
({
id
:
1
,
id
:
1
,
name
:
'Việt Nam'
,
name
:
'Việt Nam'
,
...
@@ -169,9 +169,9 @@ export default defineComponent({
...
@@ -169,9 +169,9 @@ export default defineComponent({
// const musicRules = ref(false);
// const musicRules = ref(false);
// const qualificationRules = ref(false);
// const qualificationRules = ref(false);
// const artistLevelRules = ref(false);
// const artistLevelRules = ref(false);
const
accountRules
=
ref
(
false
)
const
accountRules
=
ref
(
false
);
// const errorMessEmail = ref(
// const errorMessEmail = ref(
// i18n.global.t('artist.artistInformation.validateMessages.requireEmail')
// i18n.global.t('artist.artistInformation.validateMessages.requireEmail')
// );
// );
// const errorMessPhoneNumber = ref(
// const errorMessPhoneNumber = ref(
...
@@ -179,7 +179,7 @@ export default defineComponent({
...
@@ -179,7 +179,7 @@ export default defineComponent({
// 'artist.artistInformation.validateMessages.requirePhoneNumber'
// 'artist.artistInformation.validateMessages.requirePhoneNumber'
// )
// )
// );
// );
// const errorMessmnBookingEmail = ref(
// const errorMessmnBookingEmail = ref(
// i18n.global.t(
// i18n.global.t(
// 'artist.artistInformation.validateMessages.requireEmailAdminister'
// 'artist.artistInformation.validateMessages.requireEmailAdminister'
...
@@ -187,8 +187,7 @@ export default defineComponent({
...
@@ -187,8 +187,7 @@ export default defineComponent({
// );
// );
// const errorMessAddress = ref(i18n.global.t('artist.artistInformation.validateMessages.requireAddress'))
// const errorMessAddress = ref(i18n.global.t('artist.artistInformation.validateMessages.requireAddress'))
const
errorMessAccount
=
ref
(
const
errorMessAccount
=
ref
(
i18n
.
global
.
t
(
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requireAccount'
)
'artist.artistInformation.validateMessages.requireAccount'
)
);
);
// const errorMessmnBookingPhone = ref(
// const errorMessmnBookingPhone = ref(
// i18n.global.t(
// i18n.global.t(
...
@@ -218,8 +217,8 @@ export default defineComponent({
...
@@ -218,8 +217,8 @@ export default defineComponent({
watch
(
watch
(
()
=>
account
.
value
,
()
=>
account
.
value
,
(
value
)
=>
{
(
value
)
=>
{
if
(
value
)
{
if
(
value
)
{
accountRules
.
value
=
false
accountRules
.
value
=
false
;
}
}
}
}
);
);
...
@@ -367,15 +366,15 @@ export default defineComponent({
...
@@ -367,15 +366,15 @@ export default defineComponent({
};
};
const
getProvinceOptions
=
async
()
=>
{
const
getProvinceOptions
=
async
()
=>
{
const
response
=
(
await
api
({
const
response
=
(
await
api
({
url
:
API_PATHS
.
getProvinceOptions
,
url
:
API_PATHS
.
getProvinceOptions
,
method
:
'GET'
,
method
:
'GET'
,
params
:
{},
params
:
{},
}))
as
AxiosResponse
<
BaseResponseBody
<
ProvinceType
[]
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
ProvinceType
[]
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
provinceOptions
.
value
=
response
.
data
.
data
provinceOptions
.
value
=
response
.
data
.
data
;
}
}
}
};
const
getArtistLevelOptions
=
async
()
=>
{
const
getArtistLevelOptions
=
async
()
=>
{
const
response
=
(
await
api
({
const
response
=
(
await
api
({
...
@@ -410,18 +409,17 @@ export default defineComponent({
...
@@ -410,18 +409,17 @@ export default defineComponent({
}
}
};
};
// thể loại
// thể loại
const
getMusicTypeOptions
=
async
()
=>
{
const
getMusicTypeOptions
=
async
()
=>
{
const
response
=
(
await
api
({
const
response
=
(
await
api
({
url
:
API_PATHS
.
getMusicTypeOptions
,
url
:
API_PATHS
.
getMusicTypeOptions
,
method
:
'GET'
,
method
:
'GET'
,
params
:
{},
params
:
{},
}))
as
AxiosResponse
<
BaseResponseBody
<
MusicType
[]
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
MusicType
[]
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
musicOptions
.
value
=
response
.
data
.
data
musicOptions
.
value
=
response
.
data
.
data
;
}
}
};
};
const
getBankOptions
=
async
()
=>
{
const
getBankOptions
=
async
()
=>
{
const
response
=
(
await
api
({
const
response
=
(
await
api
({
...
@@ -526,9 +524,7 @@ export default defineComponent({
...
@@ -526,9 +524,7 @@ export default defineComponent({
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
Notify
.
create
({
Notify
.
create
({
type
:
'positive'
,
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
message
:
'Xóa sản phẩm nổi bật thành công'
,
'artist.dialogLabel.validateMessages.deleteAccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
});
products
.
value
.
splice
(
value
,
1
);
products
.
value
.
splice
(
value
,
1
);
...
@@ -713,7 +709,7 @@ export default defineComponent({
...
@@ -713,7 +709,7 @@ export default defineComponent({
// 'artist.artistInformation.validateMessages.requireEmail'
// 'artist.artistInformation.validateMessages.requireEmail'
// );
// );
// }
// }
// if (
// if (
// (!mnBookingPhone.value || !mnBookingPhone.value?.trim().length) &&
// (!mnBookingPhone.value || !mnBookingPhone.value?.trim().length) &&
// check_infoBooking.value
// check_infoBooking.value
...
@@ -735,12 +731,11 @@ export default defineComponent({
...
@@ -735,12 +731,11 @@ export default defineComponent({
// );
// );
// }
// }
// if (!fields.value) {
// if (!fields.value) {
// hasError = true;
// hasError = true;
// fieldRules.value = true;
// fieldRules.value = true;
// }
// }
if
(
!
account
.
value
)
{
if
(
!
account
.
value
)
{
hasError
=
true
;
hasError
=
true
;
accountRules
.
value
=
true
;
accountRules
.
value
=
true
;
}
}
...
@@ -761,7 +756,6 @@ export default defineComponent({
...
@@ -761,7 +756,6 @@ export default defineComponent({
// workRules.value = true;
// workRules.value = true;
// }
// }
if
(
hasError
===
false
)
{
if
(
hasError
===
false
)
{
void
addArtist
();
void
addArtist
();
}
}
...
@@ -803,8 +797,6 @@ export default defineComponent({
...
@@ -803,8 +797,6 @@ export default defineComponent({
},
},
[]
[]
);
);
const
response
=
(
await
api
({
const
response
=
(
await
api
({
url
:
API_PATHS
.
addArtist
,
url
:
API_PATHS
.
addArtist
,
...
@@ -816,7 +808,8 @@ export default defineComponent({
...
@@ -816,7 +808,8 @@ export default defineComponent({
// artistCode: artistCode.value,
// artistCode: artistCode.value,
artistName
:
artistName
.
value
,
artistName
:
artistName
.
value
,
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
birthday
:
birthday
.
value
===
null
?
null
:
birthday
.
value
+
' 00:00:00'
,
birthday
:
birthday
.
value
===
null
?
null
:
birthday
.
value
+
' 00:00:00'
,
sex
:
sex
.
value
,
sex
:
sex
.
value
,
provinceDto
:
address
.
value
,
provinceDto
:
address
.
value
,
address
:
null
,
address
:
null
,
...
@@ -862,9 +855,7 @@ export default defineComponent({
...
@@ -862,9 +855,7 @@ export default defineComponent({
}
else
{
}
else
{
console
.
log
(
response
.
data
.
error
.
code
);
console
.
log
(
response
.
data
.
error
.
code
);
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{}
}
};
};
const
DeleteItemStories
=
(
value
:
StoriesType
)
=>
{
const
DeleteItemStories
=
(
value
:
StoriesType
)
=>
{
for
(
let
i
=
0
;
i
<
stories
.
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
stories
.
value
.
length
;
i
++
)
{
...
@@ -892,10 +883,9 @@ export default defineComponent({
...
@@ -892,10 +883,9 @@ export default defineComponent({
void
getBankOptions
();
void
getBankOptions
();
void
getTypeCardOptions
();
void
getTypeCardOptions
();
void
getProvinceOptions
();
void
getProvinceOptions
();
void
getMusicTypeOptions
()
void
getMusicTypeOptions
()
;
});
});
return
{
return
{
// hidden_img,
// hidden_img,
tab
,
tab
,
id
,
id
,
...
@@ -910,7 +900,7 @@ export default defineComponent({
...
@@ -910,7 +900,7 @@ export default defineComponent({
status
,
status
,
fields
,
fields
,
works
,
works
,
musics
,
musics
,
qualification
,
qualification
,
artistLevel
,
artistLevel
,
...
@@ -940,7 +930,7 @@ export default defineComponent({
...
@@ -940,7 +930,7 @@ export default defineComponent({
artistLevelOptions
,
artistLevelOptions
,
workOptions
,
workOptions
,
musicOptions
,
musicOptions
,
getFieldOptions
,
getFieldOptions
,
getNationalityOptions
,
getNationalityOptions
,
getArtistLevelOptions
,
getArtistLevelOptions
,
...
...
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