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
5b7e2bf2
Commit
5b7e2bf2
authored
Jan 17, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRUD products
parent
30845731
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
311 additions
and
80 deletions
+311
-80
categories.vue
pages/home/categories.vue
+1
-1
products.vue
pages/home/products.vue
+304
-75
users.vue
pages/home/users.vue
+6
-4
No files found.
pages/home/categories.vue
View file @
5b7e2bf2
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
/>
/>
<label>
Parent :
</label>
<label>
Parent :
</label>
<b-form-select
v-model=
"parent_id"
>
<b-form-select
v-model=
"parent_id"
>
<option
v-for=
"item in categories"
:value=
"item.id"
>
<option
v-for=
"item in categories"
:value=
"item.id"
v-if=
"item.parent_id == null"
>
{{
item
.
name
}}
{{
item
.
name
}}
</option>
</option>
</b-form-select>
</b-form-select>
...
...
pages/home/products.vue
View file @
5b7e2bf2
This diff is collapsed.
Click to expand it.
pages/home/users.vue
View file @
5b7e2bf2
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
</v-toolbar>
</v-toolbar>
</template>
</template>
<
template
v-slot:item.actions=
"{ item }"
>
<
template
v-slot:item.actions=
"{ item }"
>
<v-icon
small
class=
"mr-2"
@
click=
" editUser(item
.id
);"
:id =
"item.id"
>
mdi-pencil
</v-icon>
<v-icon
small
class=
"mr-2"
@
click=
" editUser(item);"
:id =
"item.id"
>
mdi-pencil
</v-icon>
<v-icon
small
@
click=
"deleteUser(item.id, item)"
:id =
"item.id"
>
mdi-delete
</v-icon>
<v-icon
small
@
click=
"deleteUser(item.id, item)"
:id =
"item.id"
>
mdi-delete
</v-icon>
</
template
>
</
template
>
<
template
v-slot:no-data
>
<
template
v-slot:no-data
>
...
@@ -223,7 +223,7 @@ export default {
...
@@ -223,7 +223,7 @@ export default {
},
},
{
text
:
"
id
"
,
value
:
"
id
"
},
{
text
:
"
id
"
,
value
:
"
id
"
},
{
text
:
"
email
"
,
value
:
"
email
"
},
{
text
:
"
email
"
,
value
:
"
email
"
},
{
text
:
"
status
"
,
value
:
"
status
"
,
sortable
:
false
},
{
text
:
"
status
"
,
value
:
"
id
"
,
sortable
:
false
},
{
text
:
"
created_at
"
,
value
:
"
created_at
"
},
{
text
:
"
created_at
"
,
value
:
"
created_at
"
},
{
text
:
"
updated_at
"
,
value
:
"
updated_at
"
},
{
text
:
"
updated_at
"
,
value
:
"
updated_at
"
},
{
text
:
'
Actions
'
,
value
:
'
actions
'
,
sortable
:
false
},
{
text
:
'
Actions
'
,
value
:
'
actions
'
,
sortable
:
false
},
...
@@ -360,9 +360,11 @@ export default {
...
@@ -360,9 +360,11 @@ export default {
}
}
}
}
},
},
editUser
(
user
ID
)
{
editUser
(
user
)
{
this
.
$bvModal
.
show
(
'
modal-edit
'
);
this
.
$bvModal
.
show
(
'
modal-edit
'
);
this
.
eID
=
userID
;
this
.
eID
=
user
.
id
;
this
.
eEmail
=
user
.
email
;
this
.
eName
=
user
.
name
;
console
.
log
(
this
?.
eID
);
console
.
log
(
this
?.
eID
);
},
},
updateUser
(
userID
)
{
updateUser
(
userID
)
{
...
...
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