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
38f4dc40
Commit
38f4dc40
authored
Jul 14, 2021
by
Tình Trương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fd8fdb8f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
11 deletions
+43
-11
type.ts
src/assets/type.ts
+6
-0
VabAccount.ts
src/components/artist-information/VAB-account/VabAccount.ts
+11
-1
index.ts
src/i18n/vi/index.ts
+6
-0
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+15
-10
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+5
-0
No files found.
src/assets/type.ts
View file @
38f4dc40
...
@@ -507,3 +507,9 @@ export type AddConfigSystem = {
...
@@ -507,3 +507,9 @@ export type AddConfigSystem = {
content
:
string
;
content
:
string
;
url
:
string
;
url
:
string
;
};
};
export
type
EmbelType
=
{
id
:
number
;
linkEmbed
:
string
;
status
:
number
;
};
src/components/artist-information/VAB-account/VabAccount.ts
View file @
38f4dc40
...
@@ -3,7 +3,7 @@ import { i18n } from 'src/boot/i18n';
...
@@ -3,7 +3,7 @@ import { i18n } from 'src/boot/i18n';
import
{
useRouter
}
from
'vue-router'
;
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
,
Notify
}
from
'quasar'
;
import
{
config
}
from
'src/assets/configurations'
;
import
{
config
}
from
'src/assets/configurations'
;
export
default
defineComponent
({
export
default
defineComponent
({
...
@@ -46,6 +46,11 @@ export default defineComponent({
...
@@ -46,6 +46,11 @@ export default defineComponent({
];
];
const
uploadBanner
=
(
value
:
FileList
)
=>
{
const
uploadBanner
=
(
value
:
FileList
)
=>
{
context
.
emit
(
'selectedFile'
,
encodeImageFileAsURL
(
value
[
0
]));
context
.
emit
(
'selectedFile'
,
encodeImageFileAsURL
(
value
[
0
]));
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.actionMessages.bannerAddAccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
};
};
const
encodeImageFileAsURL
=
(
file
:
File
)
=>
{
const
encodeImageFileAsURL
=
(
file
:
File
)
=>
{
return
{
url
:
URL
.
createObjectURL
(
file
),
file
:
file
};
return
{
url
:
URL
.
createObjectURL
(
file
),
file
:
file
};
...
@@ -64,6 +69,11 @@ export default defineComponent({
...
@@ -64,6 +69,11 @@ export default defineComponent({
color
:
'negative'
,
color
:
'negative'
,
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
context
.
emit
(
'deleteBanner'
,
index
);
context
.
emit
(
'deleteBanner'
,
index
);
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.actionMessages.bannerDeleteAccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
});
});
};
};
const
deleteStory
=
(
storyIdx
:
number
)
=>
{
const
deleteStory
=
(
storyIdx
:
number
)
=>
{
...
...
src/i18n/vi/index.ts
View file @
38f4dc40
...
@@ -455,6 +455,12 @@ export default {
...
@@ -455,6 +455,12 @@ export default {
deleteArtistAccess
:
'Xoá nghệ sỹ thành công'
,
deleteArtistAccess
:
'Xoá nghệ sỹ thành công'
,
editArtistAccess
:
'Cập nhật thông tin nghệ sỹ thành công'
,
editArtistAccess
:
'Cập nhật thông tin nghệ sỹ thành công'
,
addNewArtistAccess
:
'Thêm nghệ sỹ thành công'
,
addNewArtistAccess
:
'Thêm nghệ sỹ thành công'
,
EmbedAddSuccess
:
'Thêm link Embed thành công'
,
EmbedUpdateSuccess
:
'Cập nhập link Embed thành công'
,
EmbedDeleteSuccess
:
'Xóa link Embed thành công'
,
StoryAddSuccess
:
'Thêm Story thành công'
,
bannerDeleteAccess
:
'Xóa banner thành công'
,
bannerAddAccess
:
'Thêm banner thành công'
,
},
},
artistInformation
:
{
artistInformation
:
{
tabLabel
:
{
tabLabel
:
{
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
38f4dc40
...
@@ -8,7 +8,6 @@ import { i18n } from 'src/boot/i18n';
...
@@ -8,7 +8,6 @@ import { i18n } from 'src/boot/i18n';
import
{
Dialog
,
Notify
}
from
'quasar'
;
import
{
Dialog
,
Notify
}
from
'quasar'
;
import
{
Router
}
from
'src/router'
;
import
{
Router
}
from
'src/router'
;
import
{
Pages
}
from
'src/router/routes'
;
import
{
Pages
}
from
'src/router/routes'
;
import
PersonalInformation
from
'components/artist-information/personal-information/index.vue'
;
import
PersonalInformation
from
'components/artist-information/personal-information/index.vue'
;
import
VabAccount
from
'components/artist-information/VAB-account/index.vue'
;
import
VabAccount
from
'components/artist-information/VAB-account/index.vue'
;
import
BankAccount
from
'components/artist-information/bank-account/index.vue'
;
import
BankAccount
from
'components/artist-information/bank-account/index.vue'
;
...
@@ -311,15 +310,6 @@ export default defineComponent({
...
@@ -311,15 +310,6 @@ export default defineComponent({
}
}
);
);
watch
(
()
=>
formatSchedules
.
value
,
(
value
)
=>
{
if
(
value
)
{
console
.
log
(
value
,
'aaa'
);
}
}
);
const
getInformationArtist
=
async
()
=>
{
const
getInformationArtist
=
async
()
=>
{
const
response
=
(
await
api
({
const
response
=
(
await
api
({
url
:
API_PATHS
.
getDetailArtist
,
url
:
API_PATHS
.
getDetailArtist
,
...
@@ -558,16 +548,31 @@ export default defineComponent({
...
@@ -558,16 +548,31 @@ export default defineComponent({
color
:
'negative'
,
color
:
'negative'
,
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
socialEmbedded
.
value
=
null
;
socialEmbedded
.
value
=
null
;
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.actionMessages.EmbedDeleteSuccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
});
});
};
};
const
changeEmbed
=
(
newEmbed
:
string
|
null
)
=>
{
const
changeEmbed
=
(
newEmbed
:
string
|
null
)
=>
{
socialEmbedded
.
value
=
newEmbed
;
socialEmbedded
.
value
=
newEmbed
;
isOpenDialogEmbed
.
value
=
false
;
isOpenDialogEmbed
.
value
=
false
;
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.actionMessages.EmbedUpdateSuccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
};
};
const
addStory
=
(
value
:
StoriesType
)
=>
{
const
addStory
=
(
value
:
StoriesType
)
=>
{
stories
.
value
.
push
(
value
);
stories
.
value
.
push
(
value
);
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.actionMessages.StoryAddSuccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
};
};
const
deleteStory
=
(
idx
:
number
)
=>
{
const
deleteStory
=
(
idx
:
number
)
=>
{
...
...
src/pages/them-nghe-sy/AddArtist.ts
View file @
38f4dc40
...
@@ -489,6 +489,11 @@ export default defineComponent({
...
@@ -489,6 +489,11 @@ export default defineComponent({
color
:
'negative'
,
color
:
'negative'
,
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
socialEmbedded
.
value
=
null
;
socialEmbedded
.
value
=
null
;
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.actionMessages.EmbedDeleteSuccess'
),
actions
:
[{
icon
:
'close'
,
color
:
'white'
}],
});
});
});
};
};
...
...
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