|
@@ -69,7 +69,7 @@
|
|
|
}}人
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="Tname" v-if="classList.length">
|
|
|
+ <div class="Tname" v-if="classList.length && tType == 1">
|
|
|
授课班级:<span @click="gotoCourse(item.id)" v-for="(item, index) in classList" :key="index">{{
|
|
|
item.name
|
|
|
}}</span>
|
|
@@ -554,11 +554,8 @@ export default {
|
|
|
this.$router.push(path);
|
|
|
},
|
|
|
gotoCourse(id){
|
|
|
- if(this.tType == 2 && this.classId != id){
|
|
|
- this.$message.error("请选择自己的班级!")
|
|
|
- return
|
|
|
- }
|
|
|
- this.goTo(
|
|
|
+ if(this.classList.length){
|
|
|
+ this.goTo(
|
|
|
"/studyStudent?type=0&courseId=" +
|
|
|
this.id +
|
|
|
"&userid=" +
|
|
@@ -576,6 +573,24 @@ export default {
|
|
|
"&tcid=" +
|
|
|
id
|
|
|
);
|
|
|
+ }else{
|
|
|
+ this.goTo(
|
|
|
+ "/studyStudent?type=0&courseId=" +
|
|
|
+ this.id +
|
|
|
+ "&userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&cid=" +
|
|
|
+ this.classId +
|
|
|
+ "&tType=" +
|
|
|
+ this.tType +
|
|
|
+ "&screenType=" +
|
|
|
+ this.screenType
|
|
|
+ );
|
|
|
+ }
|
|
|
},
|
|
|
addUserRate(i) {
|
|
|
// var suid = this.userid;
|
|
@@ -614,7 +629,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
console.log(res.data);
|
|
|
this.updateVc();
|
|
|
- if (this.tType == 1 || this.tType == 2 || this.tType == 4) {
|
|
|
+ if (this.tType == 1|| this.tType == 4) {
|
|
|
this.goTo(
|
|
|
"/studyStudent?type=" +
|
|
|
i +
|
|
@@ -633,6 +648,8 @@ export default {
|
|
|
"&screenType=" +
|
|
|
this.screenType
|
|
|
);
|
|
|
+ }else if(this.tType == 2){
|
|
|
+ this.gotoCourse(this.classId)
|
|
|
} else {
|
|
|
this.goTo(
|
|
|
"/study?type=" +
|