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