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
3a8c0e47
Commit
3a8c0e47
authored
Sep 17, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品列表标题链接到期数
parent
809de9f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
index.vue
src/components/periods/index.vue
+4
-1
index.vue
src/components/shop/index.vue
+9
-4
No files found.
src/components/periods/index.vue
View file @
3a8c0e47
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
:data=
"periodList"
:data=
"periodList"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"title"
label=
"期数标题"
>
label=
"期数标题"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<router-link
:to=
"
{name:'class', query: { goods_id: scope.row.goods_id, periods_id: scope.row.id}}" >
<router-link
:to=
"
{name:'class', query: { goods_id: scope.row.goods_id, periods_id: scope.row.id}}" >
...
@@ -252,6 +251,10 @@
...
@@ -252,6 +251,10 @@
}
}
},
},
mounted
(){
mounted
(){
let
_query
=
this
.
$route
.
query
;
if
(
_query
&&
_query
.
goods_id
)
{
this
.
goodsId
=
parseInt
(
_query
.
goods_id
);
}
this
.
onSearch
();
this
.
onSearch
();
this
.
getGoodsOption
();
this
.
getGoodsOption
();
this
.
getLessonOption
();
this
.
getLessonOption
();
...
...
src/components/shop/index.vue
View file @
3a8c0e47
...
@@ -22,13 +22,18 @@
...
@@ -22,13 +22,18 @@
<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=
"名称"
>
<template
slot-scope=
"scope"
>
<router-link
:to=
"
{name:'periods', query: { goods_id: scope.row.id}}" >
{{
scope
.
row
.
name
}}
</router-link>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"商品类型"
>
label=
"商品类型"
>
...
...
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