Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
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
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
b8f3a8df
Commit
b8f3a8df
authored
Feb 11, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix status
parent
4fb6a513
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
index.vue
pages/posts/index.vue
+8
-8
No files found.
pages/posts/index.vue
View file @
b8f3a8df
...
...
@@ -59,7 +59,7 @@
>
<v-select
v-model=
"sStatus"
:items=
"statusDefaul"
:items=
"statusDefaul
t
"
item-text=
"name"
item-value=
"id"
label=
"Status"
...
...
@@ -141,7 +141,7 @@
>
<v-select
v-model=
"eStatus"
:items=
"statusDefaul"
:items=
"statusDefaul
t
"
item-text=
"name"
item-value=
"id"
label=
"Status"
...
...
@@ -271,7 +271,7 @@
>
<v-select
v-model=
"status"
:items=
"statusDefaul"
:items=
"statusDefaul
t
"
item-text=
"name"
item-value=
"id"
label=
"Status"
...
...
@@ -333,7 +333,7 @@
{{
categories
.
find
(
x
=>
x
.
id
===
item
.
category_id
)?.
name
}}
</
template
>
<
template
#
[`
item
.
status
`
]=
"{ item }"
>
{{
statusDefaul
.
find
(
x
=>
x
.
id
==
item
.
status
)?.
name
}}
{{
statusDefaul
t
.
find
(
x
=>
x
.
id
==
item
.
status
)?.
name
}}
</
template
>
<
template
#
[`
item
.
user_id
`
]=
"{ item }"
>
{{
users
.
find
(
x
=>
x
.
id
===
item
.
user_id
)?.
name
}}
...
...
@@ -403,18 +403,18 @@ export default {
href
:
'
/products
'
}
],
statusDefaul
:
[
statusDefaul
t
:
[
{
name
:
'
Draft
'
,
id
:
'
1
'
id
:
1
},
{
name
:
'
Publish
'
,
id
:
'
2
'
id
:
2
},
{
name
:
'
Unpublish
'
,
id
:
'
3
'
id
:
3
}
],
posts
:
[],
...
...
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