Commit a0ff40c9 authored by Mac's avatar Mac

班级订单跳转到产品列表

parent 137ee29c
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="row col" style="justify-content: space-between;align-items: center;margin-bottom: 10px"> <div class="row col" style="justify-content: space-between;align-items: center;margin-bottom: 10px">
<div> <div>
<template v-if="data&& data.ClassInfo"> <template v-if="data&& data.ClassInfo">
{{data.ClassInfo.ClassName}} {{data.ClassInfo.ClassName}} <span v-if='data.ClassInfo.ClassNo!=null' style="cursor: pointer;text-decoration: underline;" @click='gojapaneseTrain(data.ClassInfo.ClassNo)'>({{data.ClassInfo.ClassNo}})</span>
</template> </template>
</div> </div>
<div class="row" style="align-items: center"> <div class="row" style="align-items: center">
...@@ -110,6 +110,12 @@ ...@@ -110,6 +110,12 @@
//刷新页面 //刷新页面
refreshClassOrder() { refreshClassOrder() {
this.getList(); this.getList();
},
gojapaneseTrain(ClassNo){//跳转到产品列表
var tempStr = '/sale/japaneseTrain?ClassNo=' + ClassNo;
this.$router.push({
path: tempStr
});
} }
} }
} }
......
...@@ -224,6 +224,8 @@ ...@@ -224,6 +224,8 @@
if(this.$route.query && this.$route.query.ClassName){ if(this.$route.query && this.$route.query.ClassName){
let Name = decodeURI(this.$route.query.ClassName) let Name = decodeURI(this.$route.query.ClassName)
this.ClassName = [Name] this.ClassName = [Name]
console.log(Name)
this.msg.pageSize = 1000
} }
}, },
......
...@@ -363,6 +363,9 @@ ...@@ -363,6 +363,9 @@
if (this.$route.query && this.$route.query.ClassName) { if (this.$route.query && this.$route.query.ClassName) {
this.msg.ClassName = this.$route.query.ClassName; this.msg.ClassName = this.$route.query.ClassName;
} }
if (this.$route.query && this.$route.query.ClassNo) {
this.msg.ClassNo = this.$route.query.ClassNo;
}
let nowDay = new Date(); let nowDay = new Date();
var year = nowDay.getFullYear(); //年 var year = nowDay.getFullYear(); //年
var month = nowDay.getMonth() + 1; //月 var month = nowDay.getMonth() + 1; //月
......
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