|
|
@@ -1255,6 +1255,27 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
|
+ steps(newValue) {
|
|
|
+ if (newValue == 4) {
|
|
|
+ if (this.org == "16ace517-b5c7-4168-a9bb-a9e0035df840") {
|
|
|
+ try {
|
|
|
+ window.topU.U.UF.F.closeWindow(window.topU.$("#openCourseUpdate"));
|
|
|
+ } catch (error) {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.goTo(
|
|
|
+ "/course?userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&role=" +
|
|
|
+ this.role
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
startEditTitle() {
|
|
|
@@ -1374,7 +1395,7 @@ export default {
|
|
|
this.$message.error("请补充填写课程名称");
|
|
|
return;
|
|
|
} else {
|
|
|
- this.addWork(2);
|
|
|
+ this.addWork();
|
|
|
}
|
|
|
} else {
|
|
|
if (this.courseName == "") {
|
|
|
@@ -1384,7 +1405,7 @@ export default {
|
|
|
console.log("修改课程");
|
|
|
// if (this.userid != this.courseUserid && this.role != "1") {
|
|
|
// this.updateWork2();
|
|
|
- this.updateWork(2);
|
|
|
+ this.updateWork();
|
|
|
}
|
|
|
}
|
|
|
this.$refs.stepBox.scrollTop = 0;
|
|
|
@@ -1418,14 +1439,14 @@ export default {
|
|
|
this.$message.error("请补充填写课程名称");
|
|
|
return;
|
|
|
} else {
|
|
|
- this.addWork();
|
|
|
+ this.addWork(2);
|
|
|
}
|
|
|
} else {
|
|
|
if (this.courseName == "") {
|
|
|
this.$message.error("请补充填写课程名称");
|
|
|
return;
|
|
|
} else {
|
|
|
- this.updateWork();
|
|
|
+ this.updateWork(2);
|
|
|
}
|
|
|
}
|
|
|
},
|