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
df9411ae
Commit
df9411ae
authored
Jun 24, 2021
by
Tình Trương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ac33e7b7
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
23 additions
and
79 deletions
+23
-79
BankAccount.ts
...components/artist-information/bank-account/BankAccount.ts
+0
-1
EditBankAcc.ts
...information/bank-account/edit-bank-account/EditBankAcc.ts
+0
-1
PersonalInformation.ts
...t-information/personal-information/PersonalInformation.ts
+0
-4
GroupInfo.ts
src/components/group-info/GroupInfo.ts
+0
-2
index.vue
src/components/group-info/index.vue
+0
-1
AddPostCategory.ts
...onents/post-category/add-post-category/AddPostCategory.ts
+0
-2
UpdatePostCategory.ts
.../post-category/update-post-category/UpdatePostCategory.ts
+0
-2
index.vue
...components/units-manager/add-update-unit-dialog/index.vue
+2
-2
index.vue
...mponents/update-info-vab/update-info-vab-dialog/index.vue
+2
-2
AddNewUserDialog.ts
...s/user-management/add-new-user-dialog/AddNewUserDialog.ts
+1
-0
index.vue
src/components/user-management/add-new-user-dialog/index.vue
+13
-18
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+0
-13
work.ts
src/pages/cong-viec/work.ts
+1
-1
CategoryPost.ts
src/pages/danh-muc-bai-viet/CategoryPost.ts
+0
-2
ListBooking.ts
src/pages/danh-sach-booking/ListBooking.ts
+1
-1
Menu.ts
src/pages/menu/Menu.ts
+1
-1
User.ts
src/pages/nguoi-dung/User.ts
+0
-3
UserGroup.ts
src/pages/nhom-nguoi-dung/UserGroup.ts
+2
-6
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+0
-17
No files found.
src/components/artist-information/bank-account/BankAccount.ts
View file @
df9411ae
...
@@ -91,7 +91,6 @@ export default defineComponent({
...
@@ -91,7 +91,6 @@ export default defineComponent({
});
});
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
console
.
log
(
props
.
bankAccounts
,
'bankAccount'
);
dataBankAccount
.
value
=
props
.
bankAccounts
;
dataBankAccount
.
value
=
props
.
bankAccounts
;
});
});
return
{
return
{
...
...
src/components/artist-information/bank-account/edit-bank-account/EditBankAcc.ts
View file @
df9411ae
...
@@ -43,7 +43,6 @@ export default defineComponent({
...
@@ -43,7 +43,6 @@ export default defineComponent({
bank
.
value
=
props
.
rowDataAccBank
.
bank
.
id
;
bank
.
value
=
props
.
rowDataAccBank
.
bank
.
id
;
cardType
.
value
=
props
.
rowDataAccBank
.
cardType
.
id
;
cardType
.
value
=
props
.
rowDataAccBank
.
cardType
.
id
;
isDefault
.
value
=
props
.
rowDataAccBank
.
isDefault
;
isDefault
.
value
=
props
.
rowDataAccBank
.
isDefault
;
// console.log(props.rowDataAccBank, 'rowrowDataAccBank');
}
}
}
}
);
);
...
...
src/components/artist-information/personal-information/PersonalInformation.ts
View file @
df9411ae
...
@@ -53,8 +53,6 @@ export default defineComponent({
...
@@ -53,8 +53,6 @@ export default defineComponent({
setup
(
_
,
context
)
{
setup
(
_
,
context
)
{
const
BirthdayDatePicker
=
ref
(
moment
().
format
(
'YYYY/MM/DD'
));
const
BirthdayDatePicker
=
ref
(
moment
().
format
(
'YYYY/MM/DD'
));
const
selectedFile
=
(
value
:
FileList
)
=>
{
const
selectedFile
=
(
value
:
FileList
)
=>
{
// console.log(value);
// console.log(URL.createObjectURL(value[0]));
context
.
emit
(
'SetAvatar'
,
{
context
.
emit
(
'SetAvatar'
,
{
file
:
value
[
0
],
file
:
value
[
0
],
url
:
URL
.
createObjectURL
(
value
[
0
]),
url
:
URL
.
createObjectURL
(
value
[
0
]),
...
@@ -69,7 +67,6 @@ export default defineComponent({
...
@@ -69,7 +67,6 @@ export default defineComponent({
upload
.
value
?.
click
();
upload
.
value
?.
click
();
};
};
const
deleteAvatar
=
()
=>
{
const
deleteAvatar
=
()
=>
{
console
.
log
(
'object'
);
context
.
emit
(
'deleteAvatar'
);
context
.
emit
(
'deleteAvatar'
);
};
};
const
selectDatePicker
=
(
value
:
string
)
=>
{
const
selectDatePicker
=
(
value
:
string
)
=>
{
...
@@ -80,7 +77,6 @@ export default defineComponent({
...
@@ -80,7 +77,6 @@ export default defineComponent({
};
};
const
openDialog
:
Ref
<
boolean
>
=
ref
(
false
);
const
openDialog
:
Ref
<
boolean
>
=
ref
(
false
);
const
onOKClick
=
()
=>
{
const
onOKClick
=
()
=>
{
// console.log(BirthdayDatePicker.value);
selectDatePicker
(
BirthdayDatePicker
.
value
);
selectDatePicker
(
BirthdayDatePicker
.
value
);
openDialog
.
value
=
false
;
openDialog
.
value
=
false
;
};
};
...
...
src/components/group-info/GroupInfo.ts
View file @
df9411ae
...
@@ -66,8 +66,6 @@ export const GroupInfoScript = defineComponent({
...
@@ -66,8 +66,6 @@ export const GroupInfoScript = defineComponent({
},
},
[]
[]
);
);
console
.
log
(
pagesRoles
);
return
{
EditMode
,
groupNameRules
,
groupDescriptionRules
,
pagesRoles
};
return
{
EditMode
,
groupNameRules
,
groupDescriptionRules
,
pagesRoles
};
},
},
});
});
src/components/group-info/index.vue
View file @
df9411ae
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
<q-btn
<q-btn
v-if=
"isDisable"
v-if=
"isDisable"
color=
"primary"
color=
"primary"
icon=
"update"
no-caps
no-caps
:label=
"
:label=
"
isDisable === EditMode.edit
isDisable === EditMode.edit
...
...
src/components/post-category/add-post-category/AddPostCategory.ts
View file @
df9411ae
...
@@ -40,7 +40,6 @@ export default defineComponent({
...
@@ -40,7 +40,6 @@ export default defineComponent({
return
acc
;
return
acc
;
},
[]);
},
[]);
}
}
console
.
log
(
langs
.
value
,
'langs'
);
}
}
);
);
const
name
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
name
:
Ref
<
string
|
null
>
=
ref
(
null
);
...
@@ -117,7 +116,6 @@ export default defineComponent({
...
@@ -117,7 +116,6 @@ export default defineComponent({
urlFileLocal
.
value
=
URL
.
createObjectURL
(
value
[
0
]);
urlFileLocal
.
value
=
URL
.
createObjectURL
(
value
[
0
]);
file
.
value
=
value
[
0
];
file
.
value
=
value
[
0
];
image
.
value
=
urlFileLocal
.
value
;
image
.
value
=
urlFileLocal
.
value
;
console
.
log
(
value
,
'FileList'
);
};
};
const
imageUploaded
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
imageUploaded
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
deletePostSelected
=
(
postIdx
:
number
)
=>
{
const
deletePostSelected
=
(
postIdx
:
number
)
=>
{
...
...
src/components/post-category/update-post-category/UpdatePostCategory.ts
View file @
df9411ae
...
@@ -41,7 +41,6 @@ export default defineComponent({
...
@@ -41,7 +41,6 @@ export default defineComponent({
langs
.
value
=
props
.
detailData
.
langs
;
langs
.
value
=
props
.
detailData
.
langs
;
userTableRowsPost
.
value
=
props
.
detailData
.
posts
;
userTableRowsPost
.
value
=
props
.
detailData
.
posts
;
}
}
console
.
log
(
langs
.
value
,
'langs'
);
}
}
);
);
const
id
:
Ref
<
number
|
null
>
=
ref
(
null
);
const
id
:
Ref
<
number
|
null
>
=
ref
(
null
);
...
@@ -121,7 +120,6 @@ export default defineComponent({
...
@@ -121,7 +120,6 @@ export default defineComponent({
urlFileLocal
.
value
=
URL
.
createObjectURL
(
value
[
0
]);
urlFileLocal
.
value
=
URL
.
createObjectURL
(
value
[
0
]);
file
.
value
=
value
[
0
];
file
.
value
=
value
[
0
];
image
.
value
=
urlFileLocal
.
value
;
image
.
value
=
urlFileLocal
.
value
;
console
.
log
(
value
,
'FileList'
);
};
};
const
imageUploaded
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
imageUploaded
:
Ref
<
string
|
null
>
=
ref
(
null
);
const
deletePostSelected
=
(
postIdx
:
number
)
=>
{
const
deletePostSelected
=
(
postIdx
:
number
)
=>
{
...
...
src/components/units-manager/add-update-unit-dialog/index.vue
View file @
df9411ae
...
@@ -685,11 +685,11 @@ export default defineComponent({
...
@@ -685,11 +685,11 @@ export default defineComponent({
};
};
const
addNewBankAccount
=
()
=>
{
const
addNewBankAccount
=
()
=>
{
console
.
log
(
Object
);
//
console.log(Object);
};
};
const
updateNewBankAccount
=
()
=>
{
const
updateNewBankAccount
=
()
=>
{
console
.
log
(
Object
);
//
console.log(Object);
};
};
//nghệ sỹ
//nghệ sỹ
...
...
src/components/update-info-vab/update-info-vab-dialog/index.vue
View file @
df9411ae
...
@@ -366,11 +366,11 @@ export default defineComponent({
...
@@ -366,11 +366,11 @@ export default defineComponent({
};
};
const
addNewBankAccount
=
()
=>
{
const
addNewBankAccount
=
()
=>
{
console
.
log
(
Object
);
//
console.log(Object);
};
};
const
updateNewBankAccount
=
()
=>
{
const
updateNewBankAccount
=
()
=>
{
console
.
log
(
Object
);
//
console.log(Object);
};
};
const
websiteRules
=
[
const
websiteRules
=
[
...
...
src/components/user-management/add-new-user-dialog/AddNewUserDialog.ts
View file @
df9411ae
...
@@ -85,6 +85,7 @@ export default defineComponent({
...
@@ -85,6 +85,7 @@ export default defineComponent({
val
?.
length
||
i18n
.
global
.
t
(
'userPage.validateMessages.requiredGroup'
),
val
?.
length
||
i18n
.
global
.
t
(
'userPage.validateMessages.requiredGroup'
),
];
];
return
{
return
{
isPwd
:
ref
(
true
),
today
,
today
,
userNameRules
,
userNameRules
,
passwordRules
,
passwordRules
,
...
...
src/components/user-management/add-new-user-dialog/index.vue
View file @
df9411ae
...
@@ -32,14 +32,23 @@
...
@@ -32,14 +32,23 @@
></q-input>
></q-input>
<q-input
<q-input
:model-value=
"password"
:model-value=
"password"
:rules=
"passwordRules"
@
update:model-value=
"$emit('update:password', $event)"
@
update:model-value=
"$emit('update:password', $event)"
:label=
"$t('userPage.dialogLabel.fieldLabels.password')"
:label=
"$t('userPage.dialogLabel.fieldLabels.password')"
type=
"password"
class=
"q-my-sm"
outlined
outlined
:rules=
"passwordRules"
:type=
"isPwd ? 'password' : 'text'"
class=
"q-my-sm"
autocomplete=
"new-password"
hide-bottom-space
hide-bottom-space
></q-input>
>
<template
v-slot:append
>
<q-icon
:name=
"isPwd ? 'visibility_off' : 'visibility'"
class=
"cursor-pointer"
@
click=
"isPwd = !isPwd"
/>
</
template
>
</q-input>
<q-input
<q-input
:model-value=
"fullName"
:model-value=
"fullName"
@
update:model-value=
"$emit('update:fullName', $event)"
@
update:model-value=
"$emit('update:fullName', $event)"
...
@@ -113,20 +122,6 @@
...
@@ -113,20 +122,6 @@
:rules=
"sexRules"
:rules=
"sexRules"
hide-bottom-space
hide-bottom-space
></q-select>
></q-select>
<!--
<q-input
:model-value=
"birthday"
@
update:model-value=
"$emit('update:birthday', $event)"
:rules=
"birthdayRules"
type=
"date"
outlined
hide-bottom-space
>
<template
v-slot:prepend
>
<div
class=
"text-body2"
>
{{
$t
(
'userPage.dialogLabel.fieldLabels.birthday'
)
}}
*
</div>
</
template
>
</q-input>
-->
<q-input
<q-input
:model-value=
"birthday"
:model-value=
"birthday"
@
update:model-value=
"$emit('update:birthday', $event)"
@
update:model-value=
"$emit('update:birthday', $event)"
...
...
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
df9411ae
...
@@ -286,7 +286,6 @@ export default defineComponent({
...
@@ -286,7 +286,6 @@ export default defineComponent({
method
:
'GET'
,
method
:
'GET'
,
params
:
{
artistId
:
route
.
params
.
id
},
params
:
{
artistId
:
route
.
params
.
id
},
}))
as
AxiosResponse
<
BaseResponseBody
<
ArtistInfoType
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
ArtistInfoType
>>
;
console
.
log
(
response
,
'Artist Detail Info'
);
const
ArtistInformation
=
response
.
data
.
data
;
const
ArtistInformation
=
response
.
data
.
data
;
id
.
value
=
ArtistInformation
.
id
;
id
.
value
=
ArtistInformation
.
id
;
...
@@ -343,7 +342,6 @@ export default defineComponent({
...
@@ -343,7 +342,6 @@ export default defineComponent({
}))
as
AxiosResponse
<
BaseResponseBody
<
FieldType
[]
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
FieldType
[]
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
fieldOptions
.
value
=
response
.
data
.
data
;
fieldOptions
.
value
=
response
.
data
.
data
;
console
.
log
(
fieldOptions
.
value
,
'fieldOptions'
);
}
}
};
};
...
@@ -457,10 +455,8 @@ export default defineComponent({
...
@@ -457,10 +455,8 @@ export default defineComponent({
itemData
:
BankAccountType
,
itemData
:
BankAccountType
,
itemIdx
:
number
itemIdx
:
number
)
=>
{
)
=>
{
console
.
log
(
itemData
,
'rowData'
);
rowDataAccBank
.
value
=
itemData
;
rowDataAccBank
.
value
=
itemData
;
rowBankAccIdx
.
value
=
itemIdx
;
rowBankAccIdx
.
value
=
itemIdx
;
console
.
log
(
rowBankAccIdx
.
value
);
isOpenEditAccountBankDialog
.
value
=
true
;
isOpenEditAccountBankDialog
.
value
=
true
;
};
};
...
@@ -469,10 +465,7 @@ export default defineComponent({
...
@@ -469,10 +465,7 @@ export default defineComponent({
};
};
const
selectedFile
=
(
value
:
BannerType
)
=>
{
const
selectedFile
=
(
value
:
BannerType
)
=>
{
console
.
log
(
value
,
'banners'
);
banners
.
value
.
push
(
value
);
banners
.
value
.
push
(
value
);
console
.
log
(
banners
.
value
);
};
};
const
reset
=
ref
(
null
);
const
reset
=
ref
(
null
);
const
resetOldData
=
()
=>
{
const
resetOldData
=
()
=>
{
...
@@ -505,7 +498,6 @@ export default defineComponent({
...
@@ -505,7 +498,6 @@ export default defineComponent({
DataUpdateHotProduct
.
value
=
value
;
DataUpdateHotProduct
.
value
=
value
;
};
};
const
setAvatar
=
(
value
:
BannerType
)
=>
{
const
setAvatar
=
(
value
:
BannerType
)
=>
{
console
.
log
(
value
,
'avatarFile'
);
avatarFile
.
value
=
value
.
file
as
File
;
avatarFile
.
value
=
value
.
file
as
File
;
avatar
.
value
=
value
.
url
as
string
;
avatar
.
value
=
value
.
url
as
string
;
};
};
...
@@ -529,8 +521,6 @@ export default defineComponent({
...
@@ -529,8 +521,6 @@ export default defineComponent({
const
changeEmbed
=
(
newEmbed
:
string
|
null
)
=>
{
const
changeEmbed
=
(
newEmbed
:
string
|
null
)
=>
{
socialEmbedded
.
value
=
newEmbed
;
socialEmbedded
.
value
=
newEmbed
;
console
.
log
(
newEmbed
,
'newEmbed'
);
isOpenDialogEmbed
.
value
=
false
;
isOpenDialogEmbed
.
value
=
false
;
};
};
...
@@ -787,11 +777,9 @@ export default defineComponent({
...
@@ -787,11 +777,9 @@ export default defineComponent({
const
DeleteItemStories
=
(
value
:
StoriesType
)
=>
{
const
DeleteItemStories
=
(
value
:
StoriesType
)
=>
{
for
(
let
i
=
0
;
i
<
stories
.
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
stories
.
value
.
length
;
i
++
)
{
if
(
stories
.
value
[
i
].
id
==
value
.
id
)
{
if
(
stories
.
value
[
i
].
id
==
value
.
id
)
{
console
.
log
(
1
);
stories
.
value
.
splice
(
Number
(
stories
.
value
[
i
]),
1
);
stories
.
value
.
splice
(
Number
(
stories
.
value
[
i
]),
1
);
}
}
}
}
console
.
log
(
stories
.
value
);
};
};
const
deleteAvatar
=
()
=>
{
const
deleteAvatar
=
()
=>
{
...
@@ -800,7 +788,6 @@ export default defineComponent({
...
@@ -800,7 +788,6 @@ export default defineComponent({
};
};
const
confirmChangeIsDefault
=
(
item
:
changeIsDefault
)
=>
{
const
confirmChangeIsDefault
=
(
item
:
changeIsDefault
)
=>
{
// console.log(item);
if
(
item
.
isDefault
===
2
)
{
if
(
item
.
isDefault
===
2
)
{
bankAccounts
.
value
.
map
((
item
)
=>
(
item
.
isDefault
=
2
));
bankAccounts
.
value
.
map
((
item
)
=>
(
item
.
isDefault
=
2
));
bankAccounts
.
value
[
item
.
idxAcc
].
isDefault
=
1
;
bankAccounts
.
value
[
item
.
idxAcc
].
isDefault
=
1
;
...
...
src/pages/cong-viec/work.ts
View file @
df9411ae
...
@@ -112,7 +112,7 @@ export default defineComponent({
...
@@ -112,7 +112,7 @@ export default defineComponent({
};
};
const
getListWorks
=
()
=>
{
const
getListWorks
=
()
=>
{
console
.
log
(
'API List Menu'
);
//
console.log('API List Menu');
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
...
...
src/pages/danh-muc-bai-viet/CategoryPost.ts
View file @
df9411ae
...
@@ -89,7 +89,6 @@ export default defineComponent({
...
@@ -89,7 +89,6 @@ export default defineComponent({
},
},
}))
as
AxiosResponse
<
BaseResponseBody
<
CategoryPostType
[]
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
CategoryPostType
[]
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
console
.
log
(
response
,
'response'
);
userTableRowsCategoryPost
.
value
=
response
.
data
.
data
;
userTableRowsCategoryPost
.
value
=
response
.
data
.
data
;
keywordSearch
.
value
=
null
;
keywordSearch
.
value
=
null
;
}
}
...
@@ -198,7 +197,6 @@ export default defineComponent({
...
@@ -198,7 +197,6 @@ export default defineComponent({
},
},
}))
as
AxiosResponse
<
BaseResponseBody
<
PostCategoryDetailType
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
PostCategoryDetailType
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
console
.
log
(
response
.
data
.
data
,
'detail PostCategory'
);
detailPostCategory
.
value
=
response
.
data
.
data
;
detailPostCategory
.
value
=
response
.
data
.
data
;
}
}
}
catch
(
error
)
{}
}
catch
(
error
)
{}
...
...
src/pages/danh-sach-booking/ListBooking.ts
View file @
df9411ae
...
@@ -121,7 +121,7 @@ export default defineComponent({
...
@@ -121,7 +121,7 @@ export default defineComponent({
};
};
const
getListBooking
=
()
=>
{
const
getListBooking
=
()
=>
{
console
.
log
(
'API List Menu'
);
//
console.log('API List Menu');
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
...
...
src/pages/menu/Menu.ts
View file @
df9411ae
...
@@ -98,7 +98,7 @@ export default defineComponent({
...
@@ -98,7 +98,7 @@ export default defineComponent({
};
};
const
getListMenu
=
()
=>
{
const
getListMenu
=
()
=>
{
console
.
log
(
'API List Menu'
);
//
console.log('API List Menu');
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
...
...
src/pages/nguoi-dung/User.ts
View file @
df9411ae
...
@@ -130,7 +130,6 @@ export default defineComponent({
...
@@ -130,7 +130,6 @@ export default defineComponent({
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
userTableRows
.
value
=
response
.
data
.
data
.
data
;
userTableRows
.
value
=
response
.
data
.
data
.
data
;
totalPage
.
value
=
response
.
data
.
data
.
totalPages
;
totalPage
.
value
=
response
.
data
.
data
.
totalPages
;
console
.
log
(
response
.
data
.
data
);
}
}
}
catch
(
error
)
{}
}
catch
(
error
)
{}
};
};
...
@@ -305,7 +304,6 @@ export default defineComponent({
...
@@ -305,7 +304,6 @@ export default defineComponent({
BaseResponseBody
<
{
user
:
UserObject
;
groups
:
GroupInfoType
[]
}
>
BaseResponseBody
<
{
user
:
UserObject
;
groups
:
GroupInfoType
[]
}
>
>
;
>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
console
.
log
(
response
.
data
.
data
);
const
userInfo
=
response
.
data
.
data
.
user
;
const
userInfo
=
response
.
data
.
data
.
user
;
// const groupInfo = response.data.data.groups;
// const groupInfo = response.data.data.groups;
group
.
value
=
response
.
data
.
data
.
groups
;
group
.
value
=
response
.
data
.
data
.
groups
;
...
@@ -329,7 +327,6 @@ export default defineComponent({
...
@@ -329,7 +327,6 @@ export default defineComponent({
};
};
const
updateUser
=
async
()
=>
{
const
updateUser
=
async
()
=>
{
console
.
log
(
'updateUser'
);
try
{
try
{
const
response
=
(
await
api
({
const
response
=
(
await
api
({
url
:
API_PATHS
.
updateUser
,
url
:
API_PATHS
.
updateUser
,
...
...
src/pages/nhom-nguoi-dung/UserGroup.ts
View file @
df9411ae
...
@@ -70,8 +70,6 @@ const updateGroupInfo = async ($store: Store<StateInterface>) => {
...
@@ -70,8 +70,6 @@ const updateGroupInfo = async ($store: Store<StateInterface>) => {
return
acc
;
return
acc
;
},
[]);
},
[]);
console
.
log
(
pages
);
const
pageRoles
=
pages
.
reduce
(
const
pageRoles
=
pages
.
reduce
(
(
acc
:
{
id
:
number
;
roles
:
string
}[],
page
)
=>
{
(
acc
:
{
id
:
number
;
roles
:
string
}[],
page
)
=>
{
const
parsedPage
=
{
const
parsedPage
=
{
...
@@ -100,8 +98,6 @@ const updateGroupInfo = async ($store: Store<StateInterface>) => {
...
@@ -100,8 +98,6 @@ const updateGroupInfo = async ($store: Store<StateInterface>) => {
[]
[]
);
);
console
.
log
(
pageRoles
);
const
response
=
(
await
api
({
const
response
=
(
await
api
({
url
:
API_PATHS
.
updateUserGroupInfo
,
url
:
API_PATHS
.
updateUserGroupInfo
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -232,8 +228,8 @@ const getGroupDetail = async () => {
...
@@ -232,8 +228,8 @@ const getGroupDetail = async () => {
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
UserGroupComponent
,
GroupInfoComponent
},
components
:
{
UserGroupComponent
,
GroupInfoComponent
},
watch
:
{
watch
:
{
selectedPageRoles
(
value
)
{
selectedPageRoles
()
{
console
.
log
(
value
);
//
console.log(value);
},
},
},
},
setup
()
{
setup
()
{
...
...
src/pages/them-nghe-sy/AddArtist.ts
View file @
df9411ae
...
@@ -282,7 +282,6 @@ export default defineComponent({
...
@@ -282,7 +282,6 @@ export default defineComponent({
}))
as
AxiosResponse
<
BaseResponseBody
<
FieldType
[]
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
FieldType
[]
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
fieldOptions
.
value
=
response
.
data
.
data
;
fieldOptions
.
value
=
response
.
data
.
data
;
console
.
log
(
fieldOptions
.
value
,
'fieldOptions'
);
}
}
};
};
...
@@ -395,11 +394,8 @@ export default defineComponent({
...
@@ -395,11 +394,8 @@ export default defineComponent({
itemData
:
BankAccountType
,
itemData
:
BankAccountType
,
itemIdx
:
number
itemIdx
:
number
)
=>
{
)
=>
{
console
.
log
(
itemData
,
'rowData'
);
rowDataAccBank
.
value
=
itemData
;
rowDataAccBank
.
value
=
itemData
;
rowBankAccIdx
.
value
=
itemIdx
;
rowBankAccIdx
.
value
=
itemIdx
;
console
.
log
(
rowBankAccIdx
.
value
);
isOpenEditAccountBankDialog
.
value
=
true
;
isOpenEditAccountBankDialog
.
value
=
true
;
};
};
...
@@ -408,10 +404,7 @@ export default defineComponent({
...
@@ -408,10 +404,7 @@ export default defineComponent({
};
};
const
selectedFile
=
(
value
:
BannerType
)
=>
{
const
selectedFile
=
(
value
:
BannerType
)
=>
{
console
.
log
(
value
,
'banners'
);
banners
.
value
.
push
(
value
);
banners
.
value
.
push
(
value
);
console
.
log
(
banners
.
value
);
};
};
const
reset
=
ref
(
null
);
const
reset
=
ref
(
null
);
const
resetOldData
=
()
=>
{
const
resetOldData
=
()
=>
{
...
@@ -444,7 +437,6 @@ export default defineComponent({
...
@@ -444,7 +437,6 @@ export default defineComponent({
DataUpdateHotProduct
.
value
=
value
;
DataUpdateHotProduct
.
value
=
value
;
};
};
const
setAvatar
=
(
value
:
BannerType
)
=>
{
const
setAvatar
=
(
value
:
BannerType
)
=>
{
console
.
log
(
value
,
'avatarFile'
);
avatarFile
.
value
=
value
.
file
as
File
;
avatarFile
.
value
=
value
.
file
as
File
;
avatar
.
value
=
value
.
url
as
string
;
avatar
.
value
=
value
.
url
as
string
;
};
};
...
@@ -468,14 +460,11 @@ export default defineComponent({
...
@@ -468,14 +460,11 @@ export default defineComponent({
const
changeEmbed
=
(
newEmbed
:
string
|
null
)
=>
{
const
changeEmbed
=
(
newEmbed
:
string
|
null
)
=>
{
socialEmbedded
.
value
=
newEmbed
;
socialEmbedded
.
value
=
newEmbed
;
console
.
log
(
newEmbed
,
'newEmbed'
);
isOpenDialogEmbed
.
value
=
false
;
isOpenDialogEmbed
.
value
=
false
;
};
};
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
)
=>
{
...
@@ -501,9 +490,6 @@ export default defineComponent({
...
@@ -501,9 +490,6 @@ export default defineComponent({
});
});
};
};
const
UpdateBirtday
=
(
value
:
string
)
=>
{
const
UpdateBirtday
=
(
value
:
string
)
=>
{
// console.log(value);
console
.
log
(
value
,
'birthdayyyy'
);
birthday
.
value
=
value
;
birthday
.
value
=
value
;
};
};
const
callApiUploadAvatar
=
async
(
file
:
File
)
=>
{
const
callApiUploadAvatar
=
async
(
file
:
File
)
=>
{
...
@@ -724,18 +710,15 @@ export default defineComponent({
...
@@ -724,18 +710,15 @@ export default defineComponent({
const
DeleteItemStories
=
(
value
:
StoriesType
)
=>
{
const
DeleteItemStories
=
(
value
:
StoriesType
)
=>
{
for
(
let
i
=
0
;
i
<
stories
.
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
stories
.
value
.
length
;
i
++
)
{
if
(
stories
.
value
[
i
].
id
==
value
.
id
)
{
if
(
stories
.
value
[
i
].
id
==
value
.
id
)
{
console
.
log
(
1
);
stories
.
value
.
splice
(
Number
(
stories
.
value
[
i
]),
1
);
stories
.
value
.
splice
(
Number
(
stories
.
value
[
i
]),
1
);
}
}
}
}
console
.
log
(
stories
.
value
);
};
};
const
deleteAvatar
=
()
=>
{
const
deleteAvatar
=
()
=>
{
avatar
.
value
=
null
;
avatar
.
value
=
null
;
};
};
const
confirmChangeIsDefault
=
(
item
:
changeIsDefault
)
=>
{
const
confirmChangeIsDefault
=
(
item
:
changeIsDefault
)
=>
{
// console.log(item);
if
(
item
.
isDefault
===
2
)
{
if
(
item
.
isDefault
===
2
)
{
bankAccounts
.
value
.
map
((
item
)
=>
(
item
.
isDefault
=
2
));
bankAccounts
.
value
.
map
((
item
)
=>
(
item
.
isDefault
=
2
));
bankAccounts
.
value
[
item
.
idxAcc
].
isDefault
=
1
;
bankAccounts
.
value
[
item
.
idxAcc
].
isDefault
=
1
;
...
...
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