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
e9783f94
Commit
e9783f94
authored
May 08, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
33b9a73e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
158 additions
and
116 deletions
+158
-116
configurations.example.ts
src/assets/configurations.example.ts
+1
-0
index.vue
src/components/artist-information/VAB-account/index.vue
+20
-2
PersonalInformation.ts
...t-information/personal-information/PersonalInformation.ts
+9
-6
index.vue
...ponents/artist-information/personal-information/index.vue
+1
-1
index.ts
src/i18n/vi/index.ts
+1
-0
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+119
-100
index.vue
src/pages/them-nghe-sy/index.vue
+7
-7
No files found.
src/assets/configurations.example.ts
View file @
e9783f94
...
...
@@ -50,4 +50,5 @@ export enum API_PATHS {
uploadImage
=
'file/upload'
,
getDetailUnit
=
'artistOwner/detail'
,
updateUnit
=
'artistOwner/update'
,
addArtist
=
'artist/add'
,
}
src/components/artist-information/VAB-account/index.vue
View file @
e9783f94
...
...
@@ -139,10 +139,28 @@
<div
class=
"col-4"
>
<div
class=
"text-h6 text-weight-regular"
>
Story
</div>
<q-carousel
v-model=
"slideStory"
animated
arrows
navigation
infinite
>
<q-card
class=
"my-card flex q-mt-xs flex-center"
style=
"height: 300px"
bordered
v-if=
"!stories.length"
>
<div
align=
"center"
class=
"flex flex-center q-py-xs"
>
<q-icon
name=
"mdi-plus-circle-outline"
size=
"xl"
></q-icon>
<div
class=
"q-mt-xs"
>
{{ $t('uploadImage.uploadStory') }}
</div>
</div>
</q-card>
<q-carousel
v-else
v-model=
"slideStory"
animated
arrows
navigation
infinite
>
<q-carousel-slide
v-for=
"(story, storyIdx) in stories"
:key=
"stor
ies.length
"
:key=
"stor
yIdx
"
:name=
"storyIdx"
class=
"q-pt-sm"
>
...
...
src/components/artist-information/personal-information/PersonalInformation.ts
View file @
e9783f94
...
...
@@ -39,7 +39,10 @@ export default defineComponent({
const
selectedFile
=
(
value
:
FileList
)
=>
{
// console.log(value);
// console.log(URL.createObjectURL(value[0]));
context
.
emit
(
'SetAvatar'
,{
file
:
value
[
0
],
url
:
URL
.
createObjectURL
(
value
[
0
])})
context
.
emit
(
'SetAvatar'
,
{
file
:
value
[
0
],
url
:
URL
.
createObjectURL
(
value
[
0
]),
});
};
const
upload
=
ref
(
null
);
const
uploadBanner
=
()
=>
{
...
...
@@ -137,10 +140,10 @@ export default defineComponent({
'artist.artistInformation.validateMessages.requireArtistLevel'
),
];
const
deleteAvatar
=
()
=>
{
const
deleteAvatar
=
()
=>
{
console
.
log
(
'object'
);
context
.
emit
(
'deleteAvatar'
)
}
context
.
emit
(
'deleteAvatar'
)
;
}
;
return
{
artistCodeRules
,
fullNameRules
,
...
...
@@ -158,7 +161,7 @@ export default defineComponent({
upload
,
uploadBanner
,
selectedFile
,
deleteAvatar
deleteAvatar
,
};
},
emits
:
[
...
...
@@ -183,6 +186,6 @@ export default defineComponent({
'update:status'
,
'addNewArtist'
,
'SetAvatar'
,
'deleteAvatar'
'deleteAvatar'
,
],
});
src/components/artist-information/personal-information/index.vue
View file @
e9783f94
...
...
@@ -246,8 +246,8 @@
<div
class=
"col-8"
>
<q-select
:model-value=
"artistLevel"
@
update:model-value=
"$emit('update:artistLevel', $event)"
:rules=
"artistLevelRules"
@
update:model-value=
"$emit('update:artistLevel')"
:options=
"artistLevelOptions"
emit-value
map-options
...
...
src/i18n/vi/index.ts
View file @
e9783f94
...
...
@@ -468,6 +468,7 @@ export default {
uploadImage
:
{
uploadBanner
:
'Tải lên'
,
uploadEmbed
:
'Tải lên Embed'
,
uploadStory
:
'Tải lên Story'
,
titleEmbedDialog
:
'Thay đổi Embed'
,
},
};
src/pages/them-nghe-sy/AddArtist.ts
View file @
e9783f94
This diff is collapsed.
Click to expand it.
src/pages/them-nghe-sy/index.vue
View file @
e9783f94
...
...
@@ -15,10 +15,10 @@
name=
"information"
:label=
"$t('artist.artistInformation.tabLabel.personalInformation')"
/>
<
!--
<
q-tab
<q-tab
name=
"vabAccount"
:label=
"$t('artist.artistInformation.tabLabel.vabAccout')"
/>
-->
/>
<q-tab
name=
"bankAccount"
:label=
"$t('artist.artistInformation.tabLabel.bankAcount')"
...
...
@@ -60,11 +60,10 @@
:work-options=
"workOptions"
></PersonalInformation>
</q-tab-panel>
<
!--
<
q-tab-panel
name=
"vabAccount"
>
<q-tab-panel
name=
"vabAccount"
>
<VabAccount
v-model:account=
"account"
v-model:short-description=
"shortDescription"
v-model:content=
"stories[0].content"
v-model:format-schedules=
"formatSchedules"
@
selectedFile=
"selectedFile"
@
deleteBanner=
"banners.splice($event, 1)"
...
...
@@ -73,7 +72,7 @@
:banners=
"banners"
:stories=
"stories"
></VabAccount>
</q-tab-panel>
-->
</q-tab-panel>
<q-tab-panel
name=
"bankAccount"
>
<BankAccount
...
...
@@ -118,12 +117,12 @@
@
click:CloseBtn=
"isOpenEditAccountBankDialog = false"
></EditBankAccountDialog>
<
!--
<
UploadEmbedDialog
<UploadEmbedDialog
v-model:is-open-dialog-embed=
"isOpenDialogEmbed"
v-model:social-embedded=
"socialEmbedded"
@
uploadEmbed=
"isOpenDialogEmbed = false"
@
click:CloseBtn=
"isOpenDialogEmbed = false"
></UploadEmbedDialog>
-->
></UploadEmbedDialog>
<AddHotProductDialog
@
insertData=
"pushData"
...
...
@@ -154,6 +153,7 @@
color=
"primary"
no-caps
:label=
"$t('crudActions.update')"
@
click=
"addArtist"
></q-btn>
</div>
</div>
...
...
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