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
1a359cee
Commit
1a359cee
authored
Mar 25, 2023
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.vue
parent
68388f04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
index.vue
src/pages/bai-viet/index.vue
+13
-4
No files found.
src/pages/bai-viet/index.vue
View file @
1a359cee
...
@@ -139,6 +139,7 @@
...
@@ -139,6 +139,7 @@
@
SetFilePDF=
"SetFilePDF($event)"
@
SetFilePDF=
"SetFilePDF($event)"
@
deleteAvatar=
"deleteAvatar"
@
deleteAvatar=
"deleteAvatar"
@
savePostInfo=
"addNewPost"
@
savePostInfo=
"addNewPost"
@
shape=
"handlecheckShape"
/>
/>
<AddUpdatePostDialog
<AddUpdatePostDialog
...
@@ -282,7 +283,8 @@ export default defineComponent({
...
@@ -282,7 +283,8 @@ export default defineComponent({
sortable
:
false
,
sortable
:
false
,
},
},
];
];
const
shape
=
ref
(
'0'
);
const
shape
=
ref
(
0
);
const
pageIndex
=
ref
(
1
);
const
pageIndex
=
ref
(
1
);
const
pageSize
=
ref
(
20
);
const
pageSize
=
ref
(
20
);
const
totalPage
=
ref
(
1
);
const
totalPage
=
ref
(
1
);
...
@@ -377,7 +379,12 @@ export default defineComponent({
...
@@ -377,7 +379,12 @@ export default defineComponent({
avatarUploaded
.
value
=
await
callApiUploadAvatar
(
avatarUploaded
.
value
=
await
callApiUploadAvatar
(
avatarFile
.
value
as
File
avatarFile
.
value
as
File
);
);
if
(
shape
.
value
===
1
){
filePDFUploaded
.
value
=
await
callApiUploadAvatar
(
filePDF
.
value
as
File
);
filePDFUploaded
.
value
=
await
callApiUploadAvatar
(
filePDF
.
value
as
File
);
}
else
{
filePDFUploaded
.
value
=
''
}
const
data
=
{
const
data
=
{
image
:
avatarUploaded
.
value
,
image
:
avatarUploaded
.
value
,
...
@@ -463,6 +470,7 @@ export default defineComponent({
...
@@ -463,6 +470,7 @@ export default defineComponent({
};
};
const
updatePost
=
async
(
image
:
string
,
filePost
:
string
)
=>
{
const
updatePost
=
async
(
image
:
string
,
filePost
:
string
)
=>
{
const
data
=
{
const
data
=
{
id
:
postId
.
value
,
id
:
postId
.
value
,
image
,
image
,
...
@@ -575,7 +583,8 @@ export default defineComponent({
...
@@ -575,7 +583,8 @@ export default defineComponent({
}
}
};
};
const
handlecheckShape
=
(
value
:
any
)
=>
{
const
handlecheckShape
=
(
value
:
number
)
=>
{
shape
.
value
=
value
if
(
value
===
1
)
{
if
(
value
===
1
)
{
const
data
=
[];
const
data
=
[];
...
...
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