Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-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
new-sing
admin-base
Commits
ee08f55c
Commit
ee08f55c
authored
Dec 10, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品列表显示商品编号,解决分页失效
parent
287fa8e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
index.vue
src/components/shop/index.vue
+5
-4
chooseGoodDialog.vue
src/components/teacherDetail/chooseGoodDialog.vue
+1
-0
index.vue
src/components/teacherDetail/index.vue
+8
-6
No files found.
src/components/shop/index.vue
View file @
ee08f55c
...
@@ -60,10 +60,10 @@
...
@@ -60,10 +60,10 @@
<el-table
<el-table
:data=
"userList"
:data=
"userList"
style=
"width: 100%"
>
style=
"width: 100%"
>
<
!--
<el-table-column-->
<
el-table-column
<!--prop="id"-->
prop=
"id"
<!--label="商品ID">--
>
label=
"商品ID"
>
<
!--
</el-table-column>
--
>
<
/el-table-column
>
<el-table-column
<el-table-column
prop=
"name"
prop=
"name"
label=
"名称"
>
label=
"名称"
>
...
@@ -364,6 +364,7 @@
...
@@ -364,6 +364,7 @@
}
}
});
});
this
.
userList
=
res
.
list
;
this
.
userList
=
res
.
list
;
console
.
log
(
this
.
userList
)
this
.
total
=
res
.
total
this
.
total
=
res
.
total
})
})
},
},
...
...
src/components/teacherDetail/chooseGoodDialog.vue
View file @
ee08f55c
...
@@ -209,6 +209,7 @@
...
@@ -209,6 +209,7 @@
page
:
1
page
:
1
}
}
getLessonApi
(
json
).
then
(
res
=>
{
getLessonApi
(
json
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
classList
=
res
.
list
;
this
.
classList
=
res
.
list
;
})
})
},
},
...
...
src/components/teacherDetail/index.vue
View file @
ee08f55c
...
@@ -282,7 +282,7 @@ import chooseGoodDialog from './chooseGoodDialog'
...
@@ -282,7 +282,7 @@ import chooseGoodDialog from './chooseGoodDialog'
getUser
(){
getUser
(){
let
json
=
{
let
json
=
{
page
:
this
.
nowPage
,
page
:
this
.
nowPage
,
limit
:
5
limit
:
this
.
limit
,
};
};
if
(
this
.
searchFrom
.
userId
)
{
if
(
this
.
searchFrom
.
userId
)
{
json
.
user_id
=
this
.
searchFrom
.
userId
json
.
user_id
=
this
.
searchFrom
.
userId
...
@@ -322,13 +322,15 @@ import chooseGoodDialog from './chooseGoodDialog'
...
@@ -322,13 +322,15 @@ import chooseGoodDialog from './chooseGoodDialog'
}
}
},
},
onPageChange
(
val
){
onPageChange
(
val
){
this
.
nowPage
=
val
this
.
nowPage
=
val
;
this
.
getTeacherDetail
()
this
.
getTeacherDetail
();
this
.
getUser
()
},
},
onSizeChange
(
val
){
onSizeChange
(
val
){
this
.
nowPage
=
1
this
.
limit
=
val
;
this
.
limit
=
val
;
this
.
getTeacherDetail
()
this
.
nowPage
=
1
;
this
.
getTeacherDetail
();
this
.
getUser
();
},
},
getTeacherDetail
(){
getTeacherDetail
(){
this
.
searchFrom
=
{
this
.
searchFrom
=
{
...
@@ -358,7 +360,7 @@ import chooseGoodDialog from './chooseGoodDialog'
...
@@ -358,7 +360,7 @@ import chooseGoodDialog from './chooseGoodDialog'
this
.
list
=
res
.
class_list
.
list
||
[];
this
.
list
=
res
.
class_list
.
list
||
[];
this
.
total
=
res
.
class_list
.
total
;
this
.
total
=
res
.
class_list
.
total
;
}
}
this
.
detail
=
res
;
this
.
detail
=
res
;
})
})
},
},
createInviteLink
(
id
){
createInviteLink
(
id
){
...
...
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