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
40cd2886
Commit
40cd2886
authored
May 07, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bfbb8e26
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
4 deletions
+26
-4
EditBankAcc.ts
...information/bank-account/edit-bank-account/EditBankAcc.ts
+14
-2
index.vue
...tist-information/bank-account/edit-bank-account/index.vue
+1
-1
index.ts
src/i18n/vi/index.ts
+3
-0
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
+7
-1
No files found.
src/components/artist-information/bank-account/edit-bank-account/EditBankAcc.ts
View file @
40cd2886
...
...
@@ -14,6 +14,10 @@ export default defineComponent({
type
:
Array
as
PropType
<
BankAccountType
[]
>
,
required
:
true
,
},
rowBankAccIdx
:
{
type
:
Number
,
required
:
true
,
},
accountNumber
:
{
type
:
String
,
required
:
true
},
cardNumber
:
{
type
:
String
,
required
:
true
},
bankName
:
{
type
:
String
,
required
:
true
},
...
...
@@ -44,9 +48,17 @@ export default defineComponent({
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.requireCardType'
),
];
const
confirmEditAccBank
=
()
=>
{
let
idx
=
0
;
for
(
let
index
=
0
;
index
<
props
.
bankAccounts
.
length
;
index
++
)
{
const
element
=
props
.
bankAccounts
[
index
];
if
((
element
.
isDefault
=
1
))
{
idx
=
index
;
}
}
if
(
props
.
isDefault
===
1
&&
props
.
bankAccounts
.
filter
((
item
)
=>
item
.
isDefault
===
1
).
length
props
.
bankAccounts
.
filter
((
item
)
=>
item
.
isDefault
===
1
).
length
&&
idx
!==
props
.
rowBankAccIdx
)
{
Notify
.
create
({
type
:
'negative'
,
...
...
@@ -58,7 +70,7 @@ export default defineComponent({
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.
add
Access'
'artist.dialogLabel.validateMessages.
edit
Access'
),
});
context
.
emit
(
'editBankAccount'
);
...
...
src/components/artist-information/bank-account/edit-bank-account/index.vue
View file @
40cd2886
...
...
@@ -11,7 +11,7 @@
<q-item-section>
<q-item-label
><div
class=
"text-h6 text-weight-regular"
align=
"center"
>
{{
$t
(
'artist.dialogLabel.title.
add
AccountBank'
)
}}
{{
$t
(
'artist.dialogLabel.title.
edit
AccountBank'
)
}}
</div></q-item-label
>
</q-item-section>
...
...
src/i18n/vi/index.ts
View file @
40cd2886
...
...
@@ -359,6 +359,7 @@ export default {
addArtist
:
'Thêm nghệ sỹ'
,
updateArtist
:
'Cập nhật 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'
,
addHotProduct
:
'Thêm sản phẩm nổi bật'
,
},
fieldLabels
:
{
...
...
@@ -375,6 +376,8 @@ 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'
,
deleteAccess
:
'Xoá tài khoản ngân hàng thành công'
,
},
},
confirmActionsTitle
:
{
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/index.vue
View file @
40cd2886
...
...
@@ -111,6 +111,7 @@
v-model:bank-name=
"bankName"
v-model:card-type=
"cardType"
v-model:is-default=
"isDefault"
:row-bank-acc-idx=
"rowBankAccIdx"
:bank-accounts=
"bankAccounts"
@
editBankAccount=
"editAccBank"
@
click:CloseBtn=
"isOpenEditAccountBankDialog = false"
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
40cd2886
...
...
@@ -13,7 +13,7 @@ import { useRoute } from 'vue-router';
import
{
AxiosResponse
}
from
'axios'
;
import
moment
from
'moment'
;
import
{
i18n
}
from
'src/boot/i18n'
;
import
{
Dialog
}
from
'quasar'
;
import
{
Dialog
,
Notify
}
from
'quasar'
;
import
{
ArtistInfoType
,
...
...
@@ -294,6 +294,12 @@ export default defineComponent({
isOpenAddAccountBankDialog
.
value
=
true
;
};
const
deleteAccBank
=
(
index
:
number
)
=>
{
Notify
.
create
({
type
:
'positive'
,
message
:
i18n
.
global
.
t
(
'artist.dialogLabel.validateMessages.deleteAccess'
),
});
bankAccounts
.
value
.
splice
(
index
,
1
);
};
const
selectedFile
=
(
value
:
BannerType
)
=>
{
...
...
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