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
1ae90ea2
Commit
1ae90ea2
authored
Feb 02, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
category fix
parent
86679059
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
index.vue
pages/categories/index.vue
+5
-5
index.vue
pages/posts/index.vue
+2
-0
index.vue
pages/products/index.vue
+7
-5
No files found.
pages/categories/index.vue
View file @
1ae90ea2
...
...
@@ -332,11 +332,11 @@ export default {
sortable
:
false
,
value
:
'
name
'
},
{
text
:
'
id
'
,
value
:
'
id
'
},
{
text
:
'
or
dering
'
,
value
:
'
ordering
'
},
{
text
:
'
parent
'
,
value
:
'
parent_id
'
,
sortable
:
false
},
{
text
:
'
created_at
'
,
value
:
'
created_at
'
},
{
text
:
'
updated_at
'
,
value
:
'
updated_at
'
},
{
text
:
'
ID
'
,
value
:
'
id
'
},
{
text
:
'
O
dering
'
,
value
:
'
ordering
'
},
//
{ text: 'parent', value: 'parent_id', sortable: false },
{
text
:
'
Created
'
,
value
:
'
created_at
'
},
{
text
:
'
Updated
'
,
value
:
'
updated_at
'
},
{
text
:
'
Actions
'
,
value
:
'
actions
'
,
sortable
:
false
}
],
categories
:
[],
...
...
pages/posts/index.vue
View file @
1ae90ea2
...
...
@@ -84,6 +84,7 @@
dense
accept=
"image/*"
@
change=
"fileSelected"
prepend-icon=
"mdi-camera"
/>
</v-col>
</v-row>
...
...
@@ -255,6 +256,7 @@
accept=
"image/*"
small-chips
dense
prepend-icon=
"mdi-camera"
/>
</v-col>
</v-row>
...
...
pages/products/index.vue
View file @
1ae90ea2
...
...
@@ -1055,12 +1055,14 @@ export default {
fd
.
append
(
'
price
'
,
this
.
ePrice
)
fd
.
append
(
'
category_id
'
,
this
.
eCategoryId
)
fd
.
append
(
'
description
'
,
this
.
eDescription
)
if
(
this
.
eVariants
)
{
for
(
let
i
=
0
;
i
<
this
.
eVariants
.
length
;
i
++
)
{
fd
.
append
(
`variants[
${
i
}
][id]`
,
this
.
eVariants
[
i
].
id
)
fd
.
append
(
`variants[
${
i
}
][color]`
,
this
.
eVariants
[
i
].
color
)
fd
.
append
(
`variants[
${
i
}
][quantity]`
,
this
.
eVariants
[
i
].
quantity
)
fd
.
append
(
`variants[
${
i
}
][size]`
,
this
.
eVariants
[
i
].
size
)
}
}
for
(
let
j
=
0
;
j
<
this
.
eImages
.
length
;
j
++
)
{
fd
.
append
(
`images[
${
j
}
]`
,
this
.
eImages
[
j
])
}
...
...
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