mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
面授课考试推送
This commit is contained in:
@@ -379,6 +379,10 @@ export default {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
offCourseId: {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
@@ -541,16 +545,25 @@ export default {
|
||||
state.test.targetId = 0;
|
||||
state.test.type = 0;
|
||||
state.test.chapterId=0;
|
||||
if(props.isLevel == 1){
|
||||
state.test.targetId = props.routerId;
|
||||
state.test.chapterId = props.isactive;
|
||||
state.test.type = 2;
|
||||
console.log("props.offCourseId",props.offCourseId);
|
||||
if (props.faceLevel && props.offCourseId > 0) {
|
||||
state.test.targetId = props.offCourseId;
|
||||
state.test.type = 3;
|
||||
}else{
|
||||
if(props.isLevel == 1){
|
||||
state.test.targetId = props.routerId;
|
||||
state.test.chapterId = props.isactive;
|
||||
state.test.type = 2;
|
||||
|
||||
|
||||
} else if (props.isLevel == 2) {
|
||||
state.test.targetId = props.projectId;
|
||||
state.test.type = 1;
|
||||
} else if (props.isLevel == 2) {
|
||||
state.test.targetId = props.projectId;
|
||||
state.test.type = 1;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// if (props.EditTestId > 0) {
|
||||
|
||||
Reference in New Issue
Block a user