Commit 824ffa97 authored by chenfenglei's avatar chenfenglei

商品列表跳转期数列表

parent 72e03b3e
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
<el-table-column <el-table-column
prop="title" prop="title"
label="课程名"> label="课程名">
<template slot-scope="scope">
<router-link :to="{name:'periods', query: { id: scope.row.id}}" >
{{scope.row.title}}
</router-link>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="课程类型"> label="课程类型">
...@@ -169,8 +174,7 @@ ...@@ -169,8 +174,7 @@
}, },
changeShow(data){ changeShow(data){
this.dialogObj.show=data this.dialogObj.show=data
} },
} }
} }
</script> </script>
......
...@@ -386,12 +386,14 @@ ...@@ -386,12 +386,14 @@
getLessonApi(json).then(res=>{ getLessonApi(json).then(res=>{
this.lessonList = res.list; this.lessonList = res.list;
}) })
} },
}, },
mounted(){ mounted(){
let _query = this.$route.query; let _query = this.$route.query;
if (_query && _query.goods_id) { if (_query && _query.goods_id) {
this.goodsId = parseInt(_query.goods_id); this.goodsId = parseInt(_query.goods_id);
}else if(_query && _query.id){
this.lessonId=parseInt(_query.id);
} }
this.onSearch(); this.onSearch();
this.getGoodsOption(); this.getGoodsOption();
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</el-form> </el-form>
<div class="head clear-both"> <div class="head clear-both">
<el-button @click="add" plain type="success" style="float: right" v-if="!$store.state.readonly">新增来源码</el-button> <el-button @click="add" plain type="success" style="float: right" v-if="!$store.state.readonly">新增来源码</el-button>
<el-button @click="manageObj.show=true" plain type="primary" style="float: right;margin-right:30px">来源码类别管理</el-button> <el-button @click="manageObj.show=true" plain type="primary" style="float: right;margin-right:30px" v-if="$store.state.orderRefund" >来源码类别管理</el-button>
</div> </div>
<el-table <el-table
:data="sourceList" :data="sourceList"
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
<span>{{ node.label }}</span> <span>{{ node.label }}</span>
<span v-if="data.pid !== 0"> <span v-if="data.pid !== 0">
<el-checkbox v-model="data.refund" v-if="data.cover ==='5-1'|| data.cover=== '5-10'">退款</el-checkbox> <el-checkbox v-model="data.refund" v-if="data.cover ==='5-1'|| data.cover=== '5-10'">退款</el-checkbox>
<el-checkbox v-model="data.refund" v-if="data.cover ==='10-1' ">类别管理</el-checkbox>
<el-checkbox v-model="data.readonly">只读</el-checkbox> <el-checkbox v-model="data.readonly">只读</el-checkbox>
<el-checkbox v-model="data.delete">删除</el-checkbox> <el-checkbox v-model="data.delete">删除</el-checkbox>
</span> </span>
...@@ -121,7 +122,7 @@ ...@@ -121,7 +122,7 @@
i.children.forEach(j=>{ i.children.forEach(j=>{
j.readonly= false; j.readonly= false;
j.delete = false; j.delete = false;
if(j.name==='月课订单列表' || j.name==='日课订单列表' )j.refund = false; if(j.name==='月课订单列表' || j.name==='日课订单列表' || j.name==="来源码管理" )j.refund = false;
}) })
} }
}); });
...@@ -160,7 +161,7 @@ ...@@ -160,7 +161,7 @@
i.children.forEach(j=>{ i.children.forEach(j=>{
j.readonly= false; j.readonly= false;
j.delete = false; j.delete = false;
if(j.name==='月课订单列表' || j.name==='日课订单列表' )j.refund = false; if(j.name==='月课订单列表' || j.name==='日课订单列表' || j.name==="来源码管理")j.refund = false;
}) })
} }
}); });
...@@ -177,7 +178,7 @@ ...@@ -177,7 +178,7 @@
if(x.id===i.id){ if(x.id===i.id){
x.readonly = !!i.readonly; x.readonly = !!i.readonly;
x.delete = !!i.delete; x.delete = !!i.delete;
if(i.cover==='5-1' || i.cover==='5-10'){ if(i.cover==='5-1' || i.cover==='5-10' || i.cover === "10-1"){
x.refund = !!i.refund; x.refund = !!i.refund;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment