|
@@ -3010,25 +3010,25 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
console.log("保存已编辑内容");
|
|
|
- // if (this.cid == "" || this.cid == undefined) {
|
|
|
- // if (this.courseName == "") {
|
|
|
- // this.$message.error("请补充填写课程名称");
|
|
|
- // return;
|
|
|
- // } else {
|
|
|
- // this.addWork();
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // if (this.courseName == "") {
|
|
|
- // this.$message.error("请补充填写课程名称");
|
|
|
- // return;
|
|
|
- // } else {
|
|
|
- // if (this.userid != this.courseUserid && this.role != "1") {
|
|
|
- // this.updateWork2();
|
|
|
- // } else {
|
|
|
- // this.updateWork();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ if (this.cid == "" || this.cid == undefined) {
|
|
|
+ if (this.courseName == "") {
|
|
|
+ this.$message.error("请补充填写课程名称");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ this.addWork();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.courseName == "") {
|
|
|
+ this.$message.error("请补充填写课程名称");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ // if (this.userid != this.courseUserid && this.role != "1") {
|
|
|
+ // this.updateWork2();
|
|
|
+ // } else {
|
|
|
+ this.updateWork();
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
.catch(v => {
|
|
|
console.log(v);
|