|
|
@@ -66,6 +66,7 @@
|
|
|
class="binfo_input"
|
|
|
v-model="courseName"
|
|
|
style="border: 1.5px solid rgb(202, 209, 220);margin: 0px 10px 0px 0px;border-radius: 5px;font-weight: 600;padding: 12px 14px 12px 71px;"
|
|
|
+ @change="saveCourse"
|
|
|
/>
|
|
|
<!-- background: #f6f6f6; -->
|
|
|
<el-switch
|
|
|
@@ -13888,6 +13889,17 @@ export default {
|
|
|
this.isPasteTask = true;
|
|
|
}
|
|
|
},
|
|
|
+ saveCourse(){
|
|
|
+ if (this.cid == "" || this.cid == undefined) {
|
|
|
+ this.addWork();
|
|
|
+ } else {
|
|
|
+ if (this.userid != this.courseUserid && this.role != "1") {
|
|
|
+ this.updateWork2();
|
|
|
+ } else {
|
|
|
+ this.updateWork();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
searchImage() {
|
|
|
var _this = this;
|
|
|
_this.imageList = [];
|