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
46512ec8
Commit
46512ec8
authored
Jul 19, 2021
by
Tình Trương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
89dbfc3b
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
148 additions
and
65 deletions
+148
-65
enums.ts
src/assets/enums.ts
+2
-2
type.ts
src/assets/type.ts
+1
-0
AddHotProductDialog.ts
...s/artist-information/AddHotProduct/AddHotProductDialog.ts
+13
-0
index.vue
src/components/artist-information/AddHotProduct/index.vue
+15
-2
index.vue
src/components/artist-information/UpdateHotProduct/index.vue
+16
-3
updateHotProduc.ts
...ts/artist-information/UpdateHotProduct/updateHotProduc.ts
+13
-0
index.vue
src/components/artist-information/VAB-account/index.vue
+1
-1
PersonalInformation.ts
...t-information/personal-information/PersonalInformation.ts
+1
-0
index.vue
...ponents/artist-information/personal-information/index.vue
+5
-1
index.ts
src/i18n/vi/index.ts
+50
-49
index.vue
src/pages/cap-nhat-thong-tin-nghe-sy/index.vue
+2
-0
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+14
-2
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+13
-5
index.vue
src/pages/them-nghe-sy/index.vue
+2
-0
No files found.
src/assets/enums.ts
View file @
46512ec8
...
...
@@ -10,8 +10,8 @@ export enum UnitStatus {
}
export
enum
HotProductStatus
{
active
=
1
,
inactive
=
2
,
active
=
2
,
inactive
=
1
,
}
export
enum
CustomerRankStatus
{
...
...
src/assets/type.ts
View file @
46512ec8
...
...
@@ -72,6 +72,7 @@ export type ArtistInfoType = {
mnFbmess
:
string
|
null
;
mnIns
:
string
|
null
;
mnWhatsapp
:
string
|
null
;
favoriteScore
:
number
;
};
export
type
FieldType
=
{
...
...
src/components/artist-information/AddHotProduct/AddHotProductDialog.ts
View file @
46512ec8
...
...
@@ -21,6 +21,10 @@ export default defineComponent({
const
embeddedUrl
:
Ref
<
string
>
=
ref
(
''
);
const
urlFileLocal
:
Ref
<
string
>
=
ref
(
''
);
const
status
:
Ref
<
number
>
=
ref
(
2
);
const
statusOptions
=
ref
([
{
id
:
1
,
name
:
'Sản phẩm khác'
},
{
id
:
2
,
name
:
'Sản phẩm nổi bật'
},
]);
const
uploadAvatar
=
(
value
:
FileList
)
=>
{
urlFileLocal
.
value
=
URL
.
createObjectURL
(
value
[
0
]);
file
.
value
=
value
[
0
];
...
...
@@ -75,6 +79,13 @@ export default defineComponent({
'artist.artistInformation.validateMessages.requireUrlembed'
),
];
const
statusRules
=
[
(
val
?:
number
)
=>
val
!==
undefined
||
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requireStatus'
),
];
return
{
uploadAvatar
,
...
...
@@ -89,6 +100,8 @@ export default defineComponent({
product_name
,
product_code
,
url_embed
,
statusRules
,
statusOptions
,
};
},
...
...
src/components/artist-information/AddHotProduct/index.vue
View file @
46512ec8
...
...
@@ -65,13 +65,26 @@
outlined
clearable
></q-input>
<q-select
v-model=
"status"
emit-value
label=
"Loại sản phẩm"
class=
"q-my-sm"
:options=
"statusOptions"
option-value=
"id"
option-label=
"name"
outlined
map-options
:rules=
"statusRules"
hide-bottom-space
></q-select>
</div>
<div
style=
"padding-top: 13px; padding-left: 12px"
>
<
!--
<
div
style=
"padding-top: 13px; padding-left: 12px"
>
<span
class=
"text-body1"
>
{{
$t
(
'userPage.dialogLabel.fieldLabels.status'
)
}}
</span>
<q-toggle
v-model=
"status"
:false-value=
"2"
:true-value=
"1"
/>
</div>
</div>
-->
</div>
</q-card-section>
<q-card-actions
align=
"right"
>
...
...
src/components/artist-information/UpdateHotProduct/index.vue
View file @
46512ec8
...
...
@@ -10,7 +10,7 @@
<q-item>
<q-item-section>
<q-item-label
class=
"text-h6 text-weight-regular"
>
{{
$t
(
'artist.dialogLabel.title.
add
HotProduct'
)
$t
(
'artist.dialogLabel.title.
update
HotProduct'
)
}}
</q-item-label>
</q-item-section>
</q-item>
...
...
@@ -68,13 +68,26 @@
outlined
clearable
></q-input>
<q-select
v-model=
"status"
emit-value
label=
"Loại sản phẩm"
class=
"q-my-sm"
:options=
"statusOptions"
option-value=
"id"
option-label=
"name"
outlined
map-options
:rules=
"statusRules"
hide-bottom-space
></q-select>
</div>
<div
style=
"padding-top: 13px; padding-left: 12px"
>
<
!--
<
div
style=
"padding-top: 13px; padding-left: 12px"
>
<span
class=
"text-body1"
>
{{
$t
(
'userPage.dialogLabel.fieldLabels.status'
)
}}
</span>
<q-toggle
v-model=
"status"
:false-value=
"2"
:true-value=
"1"
/>
</div>
</div>
-->
</div>
</q-card-section>
<q-card-actions
align=
"right"
>
...
...
src/components/artist-information/UpdateHotProduct/updateHotProduc.ts
View file @
46512ec8
...
...
@@ -30,6 +30,10 @@ export default defineComponent({
const
urlFileLocal
:
Ref
<
string
>
=
ref
(
''
);
const
imageAPI
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
status
:
Ref
<
number
>
=
ref
(
2
);
const
statusOptions
=
ref
([
{
id
:
1
,
name
:
'Sản phẩm khác'
},
{
id
:
2
,
name
:
'Sản phẩm nổi bật'
},
]);
const
id
:
Ref
<
number
|
null
>
=
ref
(
null
);
const
uploadAvatar
=
(
value
:
FileList
)
=>
{
urlFileLocal
.
value
=
URL
.
createObjectURL
(
value
[
0
]);
...
...
@@ -95,6 +99,13 @@ export default defineComponent({
'artist.artistInformation.validateMessages.requireUrlembed'
),
];
const
statusRules
=
[
(
val
?:
number
)
=>
val
!==
undefined
||
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requireStatus'
),
];
return
{
uploadAvatar
,
...
...
@@ -109,6 +120,8 @@ export default defineComponent({
product_name
,
product_code
,
url_embed
,
statusRules
,
statusOptions
,
id
,
configImg
,
imageAPI
,
...
...
src/components/artist-information/VAB-account/index.vue
View file @
46512ec8
...
...
@@ -221,7 +221,7 @@
color=
"primary"
icon=
"mdi-pencil-circle-outline"
>
<q-tooltip>
C
hỉnh sửa
Embed
</q-tooltip></q-btn
<q-tooltip>
C
ập nhập
Embed
</q-tooltip></q-btn
>
<q-btn
class=
"q-py-md"
...
...
src/components/artist-information/personal-information/PersonalInformation.ts
View file @
46512ec8
...
...
@@ -185,6 +185,7 @@ export default defineComponent({
'update:fields'
,
'update:works'
,
'update:favoriteScore'
,
'update:check_infoBooking'
,
'update:qualification'
,
'update:artistLevel'
,
'update:hidden_img'
,
...
...
src/components/artist-information/personal-information/index.vue
View file @
46512ec8
...
...
@@ -496,7 +496,11 @@
{{ $t('artist.artistInformation.titleDataField.infoBooking') }}
</div>
<div
class=
"col-8"
>
<q-checkbox
v-model=
"check_infoBooking"
class=
"q-my-sm"
></q-checkbox>
<q-checkbox
v-model=
"check_infoBooking"
@
update:model-value=
"$emit('update:check_infoBooking', $event)"
class=
"q-my-sm"
></q-checkbox>
</div>
</div>
<div
class=
"row flex-center"
v-if=
"check_infoBooking"
>
...
...
src/i18n/vi/index.ts
View file @
46512ec8
...
...
@@ -28,7 +28,7 @@ export default {
emptyData
:
'Không có dữ liệu'
,
crudActions
:
{
add
:
'Thêm'
,
update
:
'Cập nhậ
t
'
,
update
:
'Cập nhậ
p
'
,
delete
:
'Xoá'
,
search
:
'Tìm kiếm'
,
details
:
'Chi tiết'
,
...
...
@@ -49,7 +49,7 @@ export default {
actionMessages
:
{
addNewSuccess
:
'Thêm nhóm người dùng thành công'
,
deleteSuccess
:
'Xoá nhóm người dùng thành công'
,
updateSuccess
:
'Cập nhậ
t
nhóm người dùng thành công'
,
updateSuccess
:
'Cập nhậ
p
nhóm người dùng thành công'
,
},
fieldLabels
:
{
...
...
@@ -86,7 +86,7 @@ export default {
dialogLabel
:
{
title
:
{
addUser
:
'Thêm người dùng'
,
updateUser
:
'Cập nhậ
t
người dùng'
,
updateUser
:
'Cập nhậ
p
người dùng'
,
},
fieldLabels
:
{
userName
:
'Tên đăng nhập *'
,
...
...
@@ -132,11 +132,11 @@ export default {
actionMessages
:
{
addNewUserAccess
:
'Thêm tài khoản thành công'
,
deleteUserAccess
:
'Xoá tài khoản thành công'
,
updateUserAccess
:
'Cập nhậ
t
thông tin tài khoản thành công'
,
updateUserAccess
:
'Cập nhậ
p
thông tin tài khoản thành công'
,
resetPasswordAccess
:
'Reset mật khẩu thành công'
,
},
toolTipMessage
:
{
updateUserInfo
:
'Cập nhậ
t
'
,
updateUserInfo
:
'Cập nhậ
p
'
,
resetPassword
:
'Reset mật khẩu'
,
deleteUser
:
'Xoá'
,
informationUser
:
'Thông tin'
,
...
...
@@ -163,7 +163,7 @@ export default {
dialogLabel
:
{
title
:
{
add
:
'Thêm đơn vị chủ quản'
,
update
:
'Cập nhậ
t
đơn vị chủ quản'
,
update
:
'Cập nhậ
p
đơn vị chủ quản'
,
},
fieldLabels
:
{
code
:
'Mã đơn vị *'
,
...
...
@@ -177,7 +177,7 @@ export default {
},
},
toolTipMessage
:
{
updateInfo
:
'Cập nhậ
t
'
,
updateInfo
:
'Cập nhậ
p
'
,
information
:
'Thông tin'
,
delete
:
'Xóa'
,
},
...
...
@@ -209,7 +209,7 @@ export default {
addNewManagingUnitsAccess
:
'Thêm Đơn vị chủ quản thành công'
,
deleteManagingUnitsAccess
:
'Xoá Đơn vị chủ quản thành công'
,
updateManagingUnitsAccess
:
'Cập nhậ
t
thông tin Đơn vị chủ quản thành công'
,
'Cập nhậ
p
thông tin Đơn vị chủ quản thành công'
,
},
},
...
...
@@ -249,9 +249,9 @@ export default {
dialogLabel
:
{
title
:
{
add
:
'Thêm nghệ sỹ'
,
update
:
'Cập nhậ
t
nghệ sỹ'
,
update
:
'Cập nhậ
p
nghệ sỹ'
,
addBankAccount
:
'Thêm ngân hàng thụ hưởng'
,
updateBankAccount
:
'Cập nhậ
t
ngân hàng thụ hưởng'
,
updateBankAccount
:
'Cập nhậ
p
ngân hàng thụ hưởng'
,
},
fieldLabels
:
{
//ds nghệ sỹ
...
...
@@ -269,9 +269,9 @@ export default {
},
},
toolTipMessage
:
{
updateInfo
:
'Cập nhậ
t
'
,
updateInfo
:
'Cập nhậ
p
'
,
delete
:
'Xóa nghệ sỹ'
,
updateBankAccount
:
'Cập nhậ
t
'
,
updateBankAccount
:
'Cập nhậ
p
'
,
deleteBankAccount
:
'Xóa ngân hàng'
,
},
crudActions
:
{
...
...
@@ -298,7 +298,7 @@ export default {
},
actionMessages
:
{
unitAddArtistSuccess
:
'Thêm hợp đồng nghệ sỹ thành công'
,
unitUpdateArtistSuccess
:
'Cập nhậ
t
hợp đồng nghệ sỹ thành công'
,
unitUpdateArtistSuccess
:
'Cập nhậ
p
hợp đồng nghệ sỹ thành công'
,
unitDeleteArtistSuccess
:
'Xóa hợp đồng nghệ sỹ thành công'
,
},
},
...
...
@@ -325,8 +325,8 @@ export default {
dialogLabel
:
{
title
:
{
addCustomer
:
'Thêm khách hàng'
,
updateCustomer
:
'Cập nhậ
t
khách hàng'
,
editCustomer
:
'Cập nhậ
t
thông tin khách hàng'
,
updateCustomer
:
'Cập nhậ
p
khách hàng'
,
editCustomer
:
'Cập nhậ
p
thông tin khách hàng'
,
},
fieldLabels
:
{
userName
:
'Tên đăng nhập *'
,
...
...
@@ -346,7 +346,7 @@ export default {
},
},
toolTipMessage
:
{
updateCustomerInfo
:
'Cập nhậ
t
'
,
updateCustomerInfo
:
'Cập nhậ
p
'
,
informationCustomer
:
'Thông tin'
,
deleteCustomer
:
'Xoá'
,
},
...
...
@@ -392,7 +392,7 @@ export default {
actionMessages
:
{
addNewUserAccess
:
'Thêm khách hàng thành công'
,
deleteUserAccess
:
'Xoá khách hàng thành công'
,
updateUserAccess
:
'Cập nhậ
t
thông tin khách hàng thành công'
,
updateUserAccess
:
'Cập nhậ
p
thông tin khách hàng thành công'
,
resetPasswordAccess
:
'Reset mật khẩu thành công'
,
},
},
...
...
@@ -416,10 +416,11 @@ export default {
addStory
:
'Thêm Story'
,
updateStory
:
'Chỉnh sửa Story'
,
addArtist
:
'Thêm nghệ sỹ'
,
updateArtist
:
'Cập nhậ
t
nghệ sỹ'
,
updateArtist
:
'Cập nhậ
p
nghệ sỹ'
,
addAccountBank
:
'Thêm tài khoản ngân hàng'
,
editAccountBank
:
'Cập nhậ
t
tài khoản ngân hàng'
,
editAccountBank
:
'Cập nhậ
p
tài khoản ngân hàng'
,
addHotProduct
:
'Thêm sản phẩm nổi bật'
,
updateHotProduct
:
'Cập nhập sản phẩm nổi bật'
,
},
fieldLabels
:
{
accountOwner
:
'Chủ tài khoản'
,
...
...
@@ -440,7 +441,7 @@ export default {
requireCardType
:
'Vui lòng chọn Loại thẻ'
,
errorIsDefault
:
'Nghệ sỹ đã có tài khoản ngân hàng mặc định'
,
addAccess
:
'Thêm tài khoản ngân hàng thành công'
,
editAccess
:
'Cập nhậ
t
thông tin tài khoản ngân hàng thành công'
,
editAccess
:
'Cập nhậ
p
thông tin tài khoản ngân hàng thành công'
,
deleteAccess
:
'Xoá tài khoản ngân hàng thành công'
,
deleteStoryAccess
:
'Xoá Story thành công'
,
},
...
...
@@ -454,10 +455,10 @@ export default {
},
actionMessages
:
{
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ậ
p
thông tin 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'
,
EmbedUpdateSuccess
:
'
Thay đổi
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'
,
...
...
@@ -504,12 +505,12 @@ export default {
whatsappBooking
:
'Truy cập whatsapp booking'
,
},
validateMessages
:
{
requireEmailAdminister
:
'Vui lòng nhập Email người quản lý'
,
requirePhoneNumberAdminister
:
'Vui lòng nhập Số điện thoại người quản lý'
,
requireEmailAdminister
:
'Vui lòng nhập Email booking'
,
requirePhoneNumberAdminister
:
'Vui lòng nhập Số điện thoại booking'
,
requireProducName
:
'Vui lòng nhập Tên sản phẩm'
,
requireProducCode
:
'Vui lòng nhập Mã sản phẩm'
,
requireUrlembed
:
'Vui lòng nhập Url Embed'
,
requireStatus
:
'Vui lòng nhập Loại sản phẩm'
,
requireArtistCode
:
'Vui lòng nhập Mã nghệ sỹ'
,
requireFullName
:
'Vui lòng nhập Họ tên nghệ sỹ'
,
requireAccount
:
'Vui lòng nhập Tên đăng nhập'
,
...
...
@@ -551,7 +552,7 @@ export default {
productCode
:
'Mã sản phẩm'
,
urlEmbed
:
'Url embed'
,
productImage
:
'Ảnh sản phẩm'
,
status
:
'
Trạng thái
'
,
status
:
'
Loại sản phẩm
'
,
action
:
'Chức năng'
,
},
statusLabel
:
{
...
...
@@ -591,7 +592,7 @@ export default {
dialogLabel
:
{
title
:
{
addCustomerRank
:
'Thêm danh mục xếp hạng khách hàng'
,
updateCustomerRank
:
'Cập nhậ
t
danh mục xếp hạng khách hàng'
,
updateCustomerRank
:
'Cập nhậ
p
danh mục xếp hạng khách hàng'
,
},
fieldLabels
:
{
code
:
'Mã xếp hạng *'
,
...
...
@@ -601,7 +602,7 @@ export default {
},
},
toolTipMessage
:
{
updateCustomerRankInfo
:
'Cập nhậ
t
'
,
updateCustomerRankInfo
:
'Cập nhậ
p
'
,
deleteCustomerRank
:
'Xoá'
,
},
crudActions
:
{
...
...
@@ -623,7 +624,7 @@ export default {
addNewCustomerRankAccess
:
'Thêm danh mục xếp hạng khách hàng thành công'
,
deleteCustomerRankAccess
:
'Xoá danh mục xếp hạng khách hàng thành công'
,
updateCustomerRankAccess
:
'Cập nhậ
t
danh mục xếp hạng khách hàng thành công'
,
'Cập nhậ
p
danh mục xếp hạng khách hàng thành công'
,
},
},
...
...
@@ -644,7 +645,7 @@ export default {
dialogLabel
:
{
title
:
{
addField
:
'Thêm lĩnh vực hoạt động'
,
updateField
:
'Cập nhậ
t
lĩnh vực hoạt động'
,
updateField
:
'Cập nhậ
p
lĩnh vực hoạt động'
,
},
fieldLabels
:
{
name
:
'Tên lĩnh vực *'
,
...
...
@@ -653,7 +654,7 @@ export default {
},
},
toolTipMessage
:
{
updateField
:
'Cập nhậ
t
'
,
updateField
:
'Cập nhậ
p
'
,
deleteField
:
'Xoá'
,
},
crudActions
:
{
...
...
@@ -673,7 +674,7 @@ export default {
actionMessages
:
{
addNewFieldAccess
:
'Thêm lĩnh vực hoạt động thành công'
,
deleteFieldAccess
:
'Xoá lĩnh vực hoạt động thành công'
,
updateFieldAccess
:
'Cập nhậ
t
lĩnh vực hoạt động thành công'
,
updateFieldAccess
:
'Cập nhậ
p
lĩnh vực hoạt động thành công'
,
},
},
...
...
@@ -689,7 +690,7 @@ export default {
createBy
:
'Người thêm'
,
createTime
:
'Thời gian thêm'
,
updateBy
:
'Người cập nhập'
,
updateTime
:
'Thời gian cập nhậ
t
'
,
updateTime
:
'Thời gian cập nhậ
p
'
,
status
:
'Trạng thái'
,
action
:
'Chức năng'
,
},
...
...
@@ -700,7 +701,7 @@ export default {
dialogLabel
:
{
title
:
{
addPost
:
'Thêm bài viết'
,
updatePost
:
'Cập nhậ
t
bài viết'
,
updatePost
:
'Cập nhậ
p
bài viết'
,
},
postLabels
:
{
name
:
'Tên bài viết *'
,
...
...
@@ -711,7 +712,7 @@ export default {
},
},
toolTipMessage
:
{
updatePost
:
'Cập nhậ
t
'
,
updatePost
:
'Cập nhậ
p
'
,
deletePost
:
'Xoá'
,
},
crudActions
:
{
...
...
@@ -732,7 +733,7 @@ export default {
actionMessages
:
{
addNewPostAccess
:
'Thêm bài viết thành công'
,
deletePostAccess
:
'Xoá bài viết thành công'
,
updatePostAccess
:
'Cập nhậ
t
bài viết thành công'
,
updatePostAccess
:
'Cập nhậ
p
bài viết thành công'
,
},
},
...
...
@@ -741,7 +742,7 @@ export default {
title
:
{
postCategory
:
'Danh sách danh mục bài viết'
,
addPost
:
'Thêm mới danh mục bài viết'
,
updatePost
:
'Cập nhậ
t
danh mục bài viết'
,
updatePost
:
'Cập nhậ
p
danh mục bài viết'
,
listPosts
:
'Danh sách bài viết'
,
listPostsSelected
:
'Danh sách bài viết đã chọn'
,
addPostDialog
:
'Thêm bài viết'
,
...
...
@@ -758,7 +759,7 @@ export default {
stt
:
'STT'
,
name
:
'Tên bài viết'
,
createBy
:
'Người sửa gần nhất'
,
updateTime
:
'Thời gian cập nhậ
t
gần nhất'
,
updateTime
:
'Thời gian cập nhậ
p
gần nhất'
,
status
:
'Trạng thái'
,
action
:
'Chức năng'
,
imageMini
:
'Ảnh thu nhỏ'
,
...
...
@@ -773,7 +774,7 @@ export default {
actionMessages
:
{
addPostCategoryAccess
:
'Thêm danh mục bài viết thành công'
,
deletePostCategoryAccess
:
'Xoá danh mục bài viết thành công'
,
updatePostCategoryAccess
:
'Cập nhậ
t
danh mục bài viết thành công'
,
updatePostCategoryAccess
:
'Cập nhậ
p
danh mục bài viết thành công'
,
},
confirmActionsTitle
:
{
confirmDeletePostCategory
:
...
...
@@ -802,7 +803,7 @@ export default {
dialogLabel
:
{
title
:
{
addBanner
:
'Thêm banner'
,
updateBanner
:
'Cập nhậ
t
banner'
,
updateBanner
:
'Cập nhậ
p
banner'
,
},
bannerLabels
:
{
name
:
'Tên banner *'
,
...
...
@@ -814,7 +815,7 @@ export default {
},
},
toolTipMessage
:
{
updateBanner
:
'Cập nhậ
t
'
,
updateBanner
:
'Cập nhậ
p
'
,
deleteBanner
:
'Xoá'
,
},
crudActions
:
{
...
...
@@ -835,7 +836,7 @@ export default {
actionMessages
:
{
addNewBannerAccess
:
'Thêm banner thành công'
,
deleteBannerAccess
:
'Xoá banner thành công'
,
updateBannerAccess
:
'Cập nhậ
t
banner thành công'
,
updateBannerAccess
:
'Cập nhậ
p
banner thành công'
,
},
},
...
...
@@ -863,10 +864,10 @@ export default {
},
dialogLabel
:
{
title
:
{
updateInfoVAB
:
'Cập nhậ
t
thông tin'
,
updateInfoVAB
:
'Cập nhậ
p
thông tin'
,
//ngân hàng
addBankAccount
:
'Thêm ngân hàng thụ hưởng'
,
updateBankAccount
:
'Cập nhậ
t
ngân hàng thụ hưởng'
,
updateBankAccount
:
'Cập nhậ
p
ngân hàng thụ hưởng'
,
},
infoVABLabels
:
{
comName
:
'Tên công ty *'
,
...
...
@@ -888,10 +889,10 @@ export default {
},
},
toolTipMessage
:
{
updateInfoVAB
:
'Cập nhậ
t
'
,
updateInfoVAB
:
'Cập nhậ
p
'
,
deleteInfoVAB
:
'Xoá'
,
//ngân hàng
updateBankAccount
:
'Cập nhậ
t
'
,
updateBankAccount
:
'Cập nhậ
p
'
,
deleteBankAccount
:
'Xóa ngân hàng'
,
},
crudActions
:
{
...
...
@@ -919,7 +920,7 @@ export default {
},
actionMessages
:
{
deleteInfoVABAccess
:
'Xoá thông tin thành công'
,
updateInfoVABAccess
:
'Cập nhậ
t
thông tin thành công'
,
updateInfoVABAccess
:
'Cập nhậ
p
thông tin thành công'
,
},
},
...
...
@@ -967,8 +968,8 @@ export default {
status
:
'Trạng thái'
,
createTime
:
'Thời gian tạo'
,
createBy
:
'Người tạo'
,
updateBy
:
'Người cập nhậ
t
'
,
updateTime
:
'Thời gian cập nhậ
t
'
,
updateBy
:
'Người cập nhậ
p
'
,
updateTime
:
'Thời gian cập nhậ
p
'
,
action
:
'Chức năng'
,
},
statusLabel
:
{
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/index.vue
View file @
46512ec8
...
...
@@ -61,6 +61,8 @@
v-model:mn-fbmess=
"mnFbmess"
v-model:mn-ins=
"mnIns"
v-model:mn-whatsapp=
"mnWhatsapp"
v-model:favorite-score=
"favoriteScore"
v-model:check_infoBooking=
"check_infoBooking"
:errorMessmnBookingPhone=
"errorMessmnBookingPhone"
:errorMessmnBookingEmail=
"errorMessmnBookingEmail"
:mnBookingEmailRules=
"mnBookingEmailRules"
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
46512ec8
...
...
@@ -103,6 +103,7 @@ export default defineComponent({
numIndex
:
1
,
status
:
1
,
});
const
favoriteScore
:
Ref
<
number
|
undefined
>
=
ref
(
undefined
);
const
mnName
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
mnPhone
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
mnEmail
:
Ref
<
string
|
null
>
=
ref
(
null
);
...
...
@@ -146,6 +147,7 @@ export default defineComponent({
const
DataUpdateHotProduct
:
Ref
<
ProductType
|
null
>
=
ref
(
null
);
//sate error input thong-tin-ca-nhan
const
check_infoBooking
=
ref
(
false
);
const
artistCodeRules
=
ref
(
false
);
const
fullNameRules
=
ref
(
false
);
const
artistNameRules
=
ref
(
false
);
...
...
@@ -355,6 +357,7 @@ export default defineComponent({
mnFbmess
.
value
=
ArtistInformation
.
mnFbmess
;
mnIns
.
value
=
ArtistInformation
.
mnIns
;
mnWhatsapp
.
value
=
ArtistInformation
.
mnWhatsapp
;
favoriteScore
.
value
=
ArtistInformation
.
favoriteScore
;
nationality
.
value
=
ArtistInformation
.
nationality
;
qualification
.
value
=
ArtistInformation
.
qualification
;
works
.
value
=
ArtistInformation
.
works
;
...
...
@@ -727,14 +730,20 @@ export default defineComponent({
);
}
if
(
!
mnBookingPhone
.
value
||
!
mnBookingPhone
.
value
?.
trim
().
length
)
{
if
(
(
!
mnBookingPhone
.
value
||
!
mnBookingPhone
.
value
?.
trim
().
length
)
&&
check_infoBooking
.
value
)
{
hasError
=
true
;
mnBookingPhoneRules
.
value
=
true
;
errorMessmnBookingPhone
.
value
=
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requirePhoneNumberAdminister'
);
}
if
(
!
mnBookingEmail
.
value
||
!
mnBookingEmail
.
value
?.
trim
().
length
)
{
if
(
(
!
mnBookingEmail
.
value
||
!
mnBookingEmail
.
value
?.
trim
().
length
)
&&
check_infoBooking
.
value
)
{
hasError
=
true
;
mnBookingEmailRules
.
value
=
true
;
errorMessmnBookingEmail
.
value
=
i18n
.
global
.
t
(
...
...
@@ -860,6 +869,7 @@ export default defineComponent({
mnFbmess
:
mnFbmess
.
value
,
mnIns
:
mnIns
.
value
,
mnWhatsapp
:
mnWhatsapp
.
value
,
favoriteScore
:
favoriteScore
.
value
,
},
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
...
...
@@ -1011,6 +1021,8 @@ export default defineComponent({
errorMessmnBookingPhone
,
mnBookingEmailRules
,
errorMessmnBookingEmail
,
favoriteScore
,
check_infoBooking
,
};
},
});
src/pages/them-nghe-sy/AddArtist.ts
View file @
46512ec8
...
...
@@ -36,8 +36,6 @@ import {
TypeCardType
,
FileUploadType
,
}
from
'src/assets/type'
;
// import { isEmail } from '../../boot/functions';
// import { isMobilePhone } from '../../boot/functions';
export
type
AvatarType
=
{
file
?:
File
;
...
...
@@ -106,7 +104,7 @@ export default defineComponent({
numIndex
:
1
,
status
:
1
,
});
const
favoriteScore
:
Ref
<
number
|
undefined
>
=
ref
(
undefined
);
const
mnName
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
mnPhone
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
mnEmail
:
Ref
<
string
|
null
>
=
ref
(
null
);
...
...
@@ -149,6 +147,7 @@ export default defineComponent({
const
DataUpdateHotProduct
:
Ref
<
ProductType
|
null
>
=
ref
(
null
);
//sate error input thong-tin-ca-nhan
const
check_infoBooking
=
ref
(
false
);
const
artistCodeRules
=
ref
(
false
);
const
fullNameRules
=
ref
(
false
);
const
artistNameRules
=
ref
(
false
);
...
...
@@ -654,14 +653,20 @@ export default defineComponent({
);
}
if
(
!
mnBookingPhone
.
value
||
!
mnBookingPhone
.
value
?.
trim
().
length
)
{
if
(
(
!
mnBookingPhone
.
value
||
!
mnBookingPhone
.
value
?.
trim
().
length
)
&&
check_infoBooking
.
value
)
{
hasError
=
true
;
mnBookingPhoneRules
.
value
=
true
;
errorMessmnBookingPhone
.
value
=
i18n
.
global
.
t
(
'artist.artistInformation.validateMessages.requirePhoneNumberAdminister'
);
}
if
(
!
mnBookingEmail
.
value
||
!
mnBookingEmail
.
value
?.
trim
().
length
)
{
if
(
(
!
mnBookingEmail
.
value
||
!
mnBookingEmail
.
value
?.
trim
().
length
)
&&
check_infoBooking
.
value
)
{
hasError
=
true
;
mnBookingEmailRules
.
value
=
true
;
errorMessmnBookingEmail
.
value
=
i18n
.
global
.
t
(
...
...
@@ -772,6 +777,7 @@ export default defineComponent({
mnFbmess
:
mnFbmess
.
value
,
mnIns
:
mnIns
.
value
,
mnWhatsapp
:
mnWhatsapp
.
value
,
favoriteScore
:
favoriteScore
.
value
,
},
}))
as
AxiosResponse
<
BaseResponseBody
<
unknown
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
...
...
@@ -919,6 +925,8 @@ export default defineComponent({
errorMessEmail
,
errorMessPhoneNumber
,
confirmChangeIsDefault
,
favoriteScore
,
check_infoBooking
,
};
},
});
src/pages/them-nghe-sy/index.vue
View file @
46512ec8
...
...
@@ -61,6 +61,8 @@
v-model:mn-fbmess=
"mnFbmess"
v-model:mn-ins=
"mnIns"
v-model:mn-whatsapp=
"mnWhatsapp"
v-model:favorite-score=
"favoriteScore"
v-model:check_infoBooking=
"check_infoBooking"
:errorMessmnBookingPhone=
"errorMessmnBookingPhone"
:errorMessmnBookingEmail=
"errorMessmnBookingEmail"
:mnBookingEmailRules=
"mnBookingEmailRules"
...
...
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