Commit bb913ffb authored by Mac's avatar Mac

修改跳转

parent 62c24363
......@@ -233,15 +233,25 @@
if(this.$route.query && this.$route.query.valueyear){
this.valueyear = this.$route.query.valueyear
}
if(this.$route.query && this.$route.query.StartMonth){
console.log(this.$route.query.StartMonth,'this.$route.query.StartMonth')
this.msg.StartMonth = this.$route.query.StartMonth
}
if(this.$route.query && this.$route.query.comefrom){//来自用户提成明细页面
if(this.$route.query.comefrom ==1 && this.$route.query.StartMonth==''){
this.msg.StartMonth = '2020-01'
}
}
if(this.$route.query && this.$route.query.EndMonth){
this.msg.EndMonth = this.$route.query.EndMonth
}
if(this.$route.query && this.$route.query.ClassId){
this.msg.ClassId = Number(this.$route.query.ClassId)
}
if(this.$route.query && this.$route.query.OrderId){
this.msg.OrderId = Number(this.$route.query.OrderId)
}
if(this.$route.query && this.$route.query.StudentName){
this.msg.StudentName = decodeURI(this.$route.query.StudentName)
}
......
......@@ -104,7 +104,13 @@
</template>
</el-table-column>
<el-table-column prop="TotalHours" label="总课时"> </el-table-column>
<el-table-column width='110' prop="TotalLearn" label="已学习课时"> </el-table-column>
<el-table-column width='110' prop="TotalLearn" label="已学习课时">
<template slot-scope="scope">
<div style="cursor: pointer;text-decoration: underline;" @click="goUrlkehao('/financial/studentsClassfee',scope.row)">
{{scope.row.TotalLearn}}
</div>
</template>
</el-table-column>
<el-table-column width='110' prop="CurrentHours" label="当期消费课时">
<template slot-scope="scope">
<div>{{scope.row.CurrentHours>=0 ?scope.row.CurrentHours:'-'}}</div>
......@@ -262,6 +268,30 @@
ClassName: Name,
});
},
goUrlkehao(path,row){//跳转到学生课耗
console.log(row)
let StartMonth = ''
let EndMonth = ''
if(row.IsFirstCommission == 1){
EndMonth = row.Periods
}else{
if(row.Periods.indexOf('~')!=-1){
StartMonth = row.Periods.split('~')[0];
EndMonth = row.Periods.split('~')[1];
}else{
StartMonth = row.Periods;
EndMonth = row.Periods
}
}
this.OpenNewUrl(path, {
OrderId: row.OrderId,
StartMonth:StartMonth,
EndMonth:EndMonth,
comefrom:1,
});
}
},
}
</script>
......
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