|
@@ -150,6 +150,7 @@ export default {
|
|
|
this.role
|
|
|
);
|
|
|
}
|
|
|
+ this.getData();
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.$message.error("网络不佳");
|
|
@@ -171,7 +172,7 @@ export default {
|
|
|
courseType: JSON.stringify(this.testType),
|
|
|
ateacher: "",
|
|
|
inviteCode: "",
|
|
|
- look: look == 3 ? 2 : look == 4 ? 1 : look,
|
|
|
+ look: look == 3 ? 2 : look == 4 ? this.look : look == 5 ? this.look : look,
|
|
|
},
|
|
|
];
|
|
|
this.ajax
|
|
@@ -191,6 +192,8 @@ export default {
|
|
|
);
|
|
|
}else if(look == 4){
|
|
|
this.$message.success("保存成功")
|
|
|
+ }else if( look == 1 || look == 2){
|
|
|
+ // this.$message.success("保存成功")
|
|
|
}else if(look == 5){
|
|
|
this.$message.success("保存成功")
|
|
|
this.goTo(
|
|
@@ -243,8 +246,8 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- save() {
|
|
|
- this.updateWork(4)
|
|
|
+ save(look) {
|
|
|
+ this.updateWork(look == 4 ? look : this.look)
|
|
|
},
|
|
|
publish() {
|
|
|
this.updateWork(3)
|