|
@@ -129,7 +129,8 @@ export default {
|
|
|
if (res.data.length && res.data[0].length) {
|
|
if (res.data.length && res.data[0].length) {
|
|
|
this.res = res.data[0][0]
|
|
this.res = res.data[0][0]
|
|
|
this.courseId = res.data[0][0].courseId
|
|
this.courseId = res.data[0][0].courseId
|
|
|
- this.getClass(res.data[0][0].classid)
|
|
|
|
|
|
|
+ let oid = res.data[0][0].organizeid;
|
|
|
|
|
+ this.getClass(res.data[0][0].classid,oid)
|
|
|
} else {
|
|
} else {
|
|
|
this.setErrMsg("不存在此识别码")
|
|
this.setErrMsg("不存在此识别码")
|
|
|
// this.$message.error("不存在此随机码")
|
|
// this.$message.error("不存在此随机码")
|
|
@@ -139,12 +140,13 @@ export default {
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- getClass(classId) {
|
|
|
|
|
|
|
+ getClass(classId,oid) {
|
|
|
let params = {
|
|
let params = {
|
|
|
cid: classId,
|
|
cid: classId,
|
|
|
|
|
+ oid: oid,
|
|
|
};
|
|
};
|
|
|
this.ajax
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selectSnameByCid", params)
|
|
|
|
|
|
|
+ .get(this.$store.state.api + "selectSnameByCidAndOid", params)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.classJuri = res.data[0];
|
|
this.classJuri = res.data[0];
|
|
|
this.steps = 2
|
|
this.steps = 2
|