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
6294e9e1
Commit
6294e9e1
authored
May 08, 2021
by
hong-IT-99
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
238791c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
4 deletions
+21
-4
PersonalInformation.ts
...t-information/personal-information/PersonalInformation.ts
+7
-1
index.vue
...ponents/artist-information/personal-information/index.vue
+7
-1
index.vue
src/pages/cap-nhat-thong-tin-nghe-sy/index.vue
+1
-0
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+6
-2
No files found.
src/components/artist-information/personal-information/PersonalInformation.ts
View file @
6294e9e1
...
@@ -137,6 +137,10 @@ export default defineComponent({
...
@@ -137,6 +137,10 @@ export default defineComponent({
'artist.artistInformation.validateMessages.requireArtistLevel'
'artist.artistInformation.validateMessages.requireArtistLevel'
),
),
];
];
const
deleteAvatar
=
()
=>
{
console
.
log
(
'object'
);
context
.
emit
(
'deleteAvatar'
)
}
return
{
return
{
artistCodeRules
,
artistCodeRules
,
fullNameRules
,
fullNameRules
,
...
@@ -154,6 +158,7 @@ export default defineComponent({
...
@@ -154,6 +158,7 @@ export default defineComponent({
upload
,
upload
,
uploadBanner
,
uploadBanner
,
selectedFile
,
selectedFile
,
deleteAvatar
};
};
},
},
emits
:
[
emits
:
[
...
@@ -177,6 +182,7 @@ export default defineComponent({
...
@@ -177,6 +182,7 @@ export default defineComponent({
'update:artistLevel'
,
'update:artistLevel'
,
'update:status'
,
'update:status'
,
'addNewArtist'
,
'addNewArtist'
,
'SetAvatar'
'SetAvatar'
,
'deleteAvatar'
],
],
});
});
src/components/artist-information/personal-information/index.vue
View file @
6294e9e1
...
@@ -7,7 +7,13 @@
...
@@ -7,7 +7,13 @@
<div
class=
"col-8 flex flex-center"
>
<div
class=
"col-8 flex flex-center"
>
<div>
<div>
<q-card
style=
"margin-bottom: 8px"
v-if=
"avatar !== null"
>
<q-card
style=
"margin-bottom: 8px"
v-if=
"avatar !== null"
>
<q-img
:src=
"avatar"
style=
"height: 180px; width: 135px"
></q-img>
<q-img
:src=
"avatar"
style=
"height: 180px; width: 135px"
>
</q-img>
<q-icon
name=
"mdi-close-circle"
color=
"red"
style=
"position: absolute; right: 0; font-size: 18px"
@
click=
"deleteAvatar"
></q-icon>
</q-card>
</q-card>
<q-card
v-else
style=
"margin-bottom: 8px"
>
<q-card
v-else
style=
"margin-bottom: 8px"
>
<q-img
<q-img
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/index.vue
View file @
6294e9e1
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
:artist-level-options=
"artistLevelOptions"
:artist-level-options=
"artistLevelOptions"
:work-options=
"workOptions"
:work-options=
"workOptions"
@
SetAvatar=
"setAvatar($event)"
@
SetAvatar=
"setAvatar($event)"
@
deleteAvatar=
"deleteAvatar"
></PersonalInformation>
></PersonalInformation>
</q-tab-panel>
</q-tab-panel>
<q-tab-panel
name=
"vabAccount"
>
<q-tab-panel
name=
"vabAccount"
>
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
6294e9e1
...
@@ -52,7 +52,7 @@ export default defineComponent({
...
@@ -52,7 +52,7 @@ export default defineComponent({
UploadEmbedDialog
,
UploadEmbedDialog
,
},
},
setup
()
{
setup
(
_
,
context
)
{
const
route
=
useRoute
();
const
route
=
useRoute
();
const
tab
=
ref
(
'information'
);
const
tab
=
ref
(
'information'
);
...
@@ -370,6 +370,9 @@ export default defineComponent({
...
@@ -370,6 +370,9 @@ export default defineComponent({
}
}
}
catch
(
error
)
{}
}
catch
(
error
)
{}
};
};
const
deleteAvatar
=
()
=>
{
avatar
.
value
=
null
}
onMounted
(()
=>
{
onMounted
(()
=>
{
void
getInformationArtist
();
void
getInformationArtist
();
void
getFieldOptions
();
void
getFieldOptions
();
...
@@ -450,7 +453,8 @@ export default defineComponent({
...
@@ -450,7 +453,8 @@ export default defineComponent({
getTypeCardOptions
,
getTypeCardOptions
,
rowDataAccBank
,
rowDataAccBank
,
avatar
,
avatar
,
setAvatar
setAvatar
,
deleteAvatar
};
};
},
},
});
});
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