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
9867a483
Commit
9867a483
authored
May 12, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
253a3abf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
VabAccount.ts
src/components/artist-information/VAB-account/VabAccount.ts
+3
-0
index.vue
src/components/artist-information/VAB-account/index.vue
+13
-3
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+14
-2
No files found.
src/components/artist-information/VAB-account/VabAccount.ts
View file @
9867a483
...
@@ -4,6 +4,7 @@ import { useRouter } from 'vue-router';
...
@@ -4,6 +4,7 @@ import { useRouter } from 'vue-router';
import
{
BannerType
,
StoriesType
}
from
'src/assets/type'
;
import
{
BannerType
,
StoriesType
}
from
'src/assets/type'
;
import
UploadImage
from
'components/upload-image/index.vue'
;
import
UploadImage
from
'components/upload-image/index.vue'
;
import
{
Dialog
}
from
'quasar'
;
import
{
Dialog
}
from
'quasar'
;
import
{
config
}
from
'src/assets/configurations'
;
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
UploadImage
},
components
:
{
UploadImage
},
...
@@ -20,6 +21,7 @@ export default defineComponent({
...
@@ -20,6 +21,7 @@ export default defineComponent({
setup
(
props
,
context
)
{
setup
(
props
,
context
)
{
const
router
=
useRouter
();
const
router
=
useRouter
();
const
configImg
=
config
;
watch
(
watch
(
()
=>
props
.
banners
.
length
,
()
=>
props
.
banners
.
length
,
(
value
)
=>
{
(
value
)
=>
{
...
@@ -77,6 +79,7 @@ export default defineComponent({
...
@@ -77,6 +79,7 @@ export default defineComponent({
uploadBanner
,
uploadBanner
,
deleteImage
,
deleteImage
,
deleteStory
,
deleteStory
,
configImg
,
};
};
},
},
emits
:
[
emits
:
[
...
...
src/components/artist-information/VAB-account/index.vue
View file @
9867a483
...
@@ -50,7 +50,11 @@
...
@@ -50,7 +50,11 @@
v-for=
"(bannerInfo, bannerIdx) in banners"
v-for=
"(bannerInfo, bannerIdx) in banners"
:key=
"bannerIdx"
:key=
"bannerIdx"
:name=
"bannerIdx"
:name=
"bannerIdx"
:img-src=
"bannerInfo.bannerUrl || bannerInfo.url"
:img-src=
"
bannerInfo.bannerUrl === undefined
? bannerInfo.url
: configImg.API_IMAGE_ENDPOINT + bannerInfo.bannerUrl
"
style=
"height: 500px; aspect-ratio: 1/5"
style=
"height: 500px; aspect-ratio: 1/5"
>
>
<template
v-slot:default
>
<template
v-slot:default
>
...
@@ -252,6 +256,8 @@
...
@@ -252,6 +256,8 @@
navigation
navigation
infinite
infinite
>
>
:img-src=" bannerInfo.bannerUrl === undefined ? bannerInfo.url :
configImg.API_IMAGE_ENDPOINT + bannerInfo.bannerUrl "
<q-carousel-slide
<q-carousel-slide
v-for=
"(story, storyIdx) in stories"
v-for=
"(story, storyIdx) in stories"
:key=
"storyIdx"
:key=
"storyIdx"
...
@@ -263,7 +269,11 @@
...
@@ -263,7 +269,11 @@
<q-img
<q-img
fit=
"contain"
fit=
"contain"
style=
"max-height: 230px"
style=
"max-height: 230px"
:src=
"story.imageUrl"
:src=
"
story.file === undefined
? configImg.API_IMAGE_ENDPOINT + story.imageUrl
: story.imageUrl
"
/>
/>
<q-icon
<q-icon
name=
"mdi-close-circle"
name=
"mdi-close-circle"
...
@@ -274,8 +284,8 @@
...
@@ -274,8 +284,8 @@
<q-input
<q-input
type=
"textarea"
type=
"textarea"
:model-value=
"story.content"
:model-value=
"story.content"
readonly
@
update:model-value=
"$emit('update:content', $event)"
@
update:model-value=
"$emit('update:content', $event)"
readonly
></q-input>
></q-input>
</q-card>
</q-card>
</q-carousel-slide>
</q-carousel-slide>
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
9867a483
...
@@ -265,7 +265,10 @@ export default defineComponent({
...
@@ -265,7 +265,10 @@ export default defineComponent({
id
.
value
=
ArtistInformation
.
id
;
id
.
value
=
ArtistInformation
.
id
;
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
avatar
.
value
=
config
.
API_IMAGE_ENDPOINT
+
ArtistInformation
.
avatar
;
avatar
.
value
=
ArtistInformation
.
avatar
!==
null
?
config
.
API_IMAGE_ENDPOINT
+
ArtistInformation
.
avatar
:
null
;
avatarNoChange
.
value
=
ArtistInformation
.
avatar
;
avatarNoChange
.
value
=
ArtistInformation
.
avatar
;
account
.
value
=
ArtistInformation
.
account
;
account
.
value
=
ArtistInformation
.
account
;
artistCode
.
value
=
ArtistInformation
.
artistCode
;
artistCode
.
value
=
ArtistInformation
.
artistCode
;
...
@@ -506,6 +509,8 @@ export default defineComponent({
...
@@ -506,6 +509,8 @@ export default defineComponent({
const
addStory
=
(
value
:
StoriesType
)
=>
{
const
addStory
=
(
value
:
StoriesType
)
=>
{
stories
.
value
.
push
(
value
);
stories
.
value
.
push
(
value
);
console
.
log
(
stories
,
"storiesstoriesstories"
);
};
};
const
deleteStory
=
(
idx
:
number
)
=>
{
const
deleteStory
=
(
idx
:
number
)
=>
{
...
@@ -666,7 +671,13 @@ export default defineComponent({
...
@@ -666,7 +671,13 @@ export default defineComponent({
try
{
try
{
if
(
avatarFile
.
value
!==
null
)
{
if
(
avatarFile
.
value
!==
null
)
{
await
callApiUploadAvatar
(
avatarFile
.
value
);
await
callApiUploadAvatar
(
avatarFile
.
value
);
}
else
avatarUploaded
.
value
=
avatarNoChange
.
value
;
}
if
(
avatarFile
.
value
===
null
)
{
avatarUploaded
.
value
=
avatarNoChange
.
value
;
}
if
(
avatar
.
value
===
null
)
{
avatarUploaded
.
value
=
null
;
}
for
(
let
index
=
0
;
index
<
banners
.
value
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
banners
.
value
.
length
;
index
++
)
{
const
element
=
banners
.
value
[
index
];
const
element
=
banners
.
value
[
index
];
if
(
element
.
file
!==
undefined
)
{
if
(
element
.
file
!==
undefined
)
{
...
@@ -736,6 +747,7 @@ export default defineComponent({
...
@@ -736,6 +747,7 @@ export default defineComponent({
const
deleteAvatar
=
()
=>
{
const
deleteAvatar
=
()
=>
{
avatar
.
value
=
null
;
avatar
.
value
=
null
;
avatarFile
.
value
=
null
;
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
void
getInformationArtist
();
void
getInformationArtist
();
...
...
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