|
@@ -33,8 +33,8 @@
|
|
|
}" v-if="cid && userid != courseUserid && role != '1'"></div> -->
|
|
|
<div class="whiteBg" style="background:unset;padding: 0;position:relative;">
|
|
|
<div class="updateMask" :style="{
|
|
|
- height: '100%',
|
|
|
- }" v-if="cid && userid != courseUserid && role != '1'"></div>
|
|
|
+ height: '100%',
|
|
|
+ }" v-if="cid && userid != courseUserid && role != '1'"></div>
|
|
|
<div>
|
|
|
<div class="basic_box" style="padding: 0;">
|
|
|
<div class="big_box">
|
|
@@ -46,7 +46,8 @@
|
|
|
<div class="course_input_box">
|
|
|
<div class="bb_courseIcon"><img src="../../../assets/icon/new/course.png" /></div>
|
|
|
<input type="text" placeholder="请输入课程名称" 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="changeName"/>
|
|
|
+ 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="changeName" />
|
|
|
<!-- background: #f6f6f6; -->
|
|
|
<!-- <el-switch v-model="isTeacherSee" active-text="是否公开此课程"
|
|
|
style="justify-content: center;width: 200px;"></el-switch> -->
|
|
@@ -116,16 +117,17 @@
|
|
|
<div class="whiteBg" style="margin-top: 10px;">
|
|
|
<div class="wb_j_box">
|
|
|
<div class="wb_j_box_content">
|
|
|
- <div class="wb_j_box_btn" @click="openMember">
|
|
|
- <div class="wb_j_box_title">协同人员</div>
|
|
|
- <div class="wb_j_box_btn_c">
|
|
|
- <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top" v-if="checkboxList3.length" popper-class="text_tooltip2">
|
|
|
- <div class="wb_j_box_span">{{getListMan2(checkboxList3)}}</div>
|
|
|
- </el-tooltip>
|
|
|
- <div v-else class="wb_j_box_span">请选择协同人员</div>
|
|
|
- <div class="wb_j_box_arrow"></div>
|
|
|
- </div>
|
|
|
+ <div class="wb_j_box_btn" @click="openMember">
|
|
|
+ <div class="wb_j_box_title">协同人员</div>
|
|
|
+ <div class="wb_j_box_btn_c">
|
|
|
+ <el-tooltip effect="dark" :content="getListMan2(checkboxList3)" placement="top"
|
|
|
+ v-if="checkboxList3.length" popper-class="text_tooltip2">
|
|
|
+ <div class="wb_j_box_span">{{ getListMan2(checkboxList3) }}</div>
|
|
|
+ </el-tooltip>
|
|
|
+ <div v-else class="wb_j_box_span">请选择协同人员</div>
|
|
|
+ <div class="wb_j_box_arrow"></div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div style="margin-left: auto;">
|
|
|
<button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="isPasteTask">智能粘贴</button>
|
|
@@ -133,8 +135,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="whiteBg" style="margin-top: 10px">
|
|
|
- <groupBox :cid="cid" :people="checkboxList3" :classList="classList" :courseDetail="courseDetail" :userid="userid" :type="1"
|
|
|
- classId="" :oid="oid" v-if="cid"></groupBox>
|
|
|
+ <groupBox :cid="cid" :people="checkboxList3" :classList="classList" :courseDetail="courseDetail"
|
|
|
+ :userid="userid" :type="1" classId="" :oid="oid" v-if="cid"></groupBox>
|
|
|
<div v-else class="tipsBox">请添加课程名称后才能设置分组</div>
|
|
|
</div>
|
|
|
<div class="whiteBg" style="border-radius: 0; background:#F0F2F5;" v-if="false">
|
|
@@ -1539,7 +1541,8 @@
|
|
|
<button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
|
|
|
返回首页
|
|
|
</button>
|
|
|
- <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
|
|
|
+ <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps"
|
|
|
+ v-if="!(cid && userid != courseUserid && role != '1')">
|
|
|
确认上传
|
|
|
</button>
|
|
|
</div>
|
|
@@ -2935,9 +2938,9 @@ export default {
|
|
|
imageList: [],
|
|
|
heightPx: '100%',
|
|
|
toolsData: toolsData,
|
|
|
- pageSize:20,
|
|
|
- total:0,
|
|
|
- page:0,
|
|
|
+ pageSize: 20,
|
|
|
+ total: 0,
|
|
|
+ page: 0,
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
@@ -2988,7 +2991,7 @@ export default {
|
|
|
return function (list) {
|
|
|
let _people2 = [];
|
|
|
if (this.ManAarray.length) {
|
|
|
- for(var j = 0;j < list.length; j++){
|
|
|
+ for (var j = 0; j < list.length; j++) {
|
|
|
let people = list[j];
|
|
|
for (var i = 0; i < this.ManAarray.length; i++) {
|
|
|
if (this.ManAarray[i].userid == people && people != this.courseUserid) {
|
|
@@ -3314,6 +3317,7 @@ export default {
|
|
|
.$confirm("是否保存已编辑内容?", "提示", {
|
|
|
confirmButtonText: "保存",
|
|
|
cancelButtonText: "不保存",
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -3391,45 +3395,63 @@ export default {
|
|
|
return _guid;
|
|
|
},
|
|
|
lastSteps() {
|
|
|
- this
|
|
|
- .$confirm("是否保存已编辑内容?", "提示", {
|
|
|
- confirmButtonText: "保存",
|
|
|
- cancelButtonText: "不保存",
|
|
|
- type: "warning",
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- if (this.cid == "" || this.cid == undefined) {
|
|
|
- if (this.courseName == "") {
|
|
|
- this.$message.error("请补充填写课程名称");
|
|
|
- return;
|
|
|
+ if (this.cid && this.userid != this.courseUserid && this.role != '1') {
|
|
|
+ this.goTo(
|
|
|
+ "/synergyCourse?userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&role=" +
|
|
|
+ this.role
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ this
|
|
|
+ .$confirm("是否保存已编辑内容?", "提示", {
|
|
|
+ confirmButtonText: "保存",
|
|
|
+ cancelButtonText: "不保存",
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ if (this.cid == "" || this.cid == undefined) {
|
|
|
+ if (this.courseName == "") {
|
|
|
+ this.$message.error("请补充填写课程名称");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ this.addWork();
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.addWork();
|
|
|
+ if (this.courseName == "") {
|
|
|
+ this.$message.error("请补充填写课程名称");
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ // if (this.userid != this.courseUserid && this.role != "1") {
|
|
|
+ // this.updateWork2();
|
|
|
+ // } else {
|
|
|
+ this.updateWork();
|
|
|
+ // }
|
|
|
+ }
|
|
|
}
|
|
|
- } 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)
|
|
|
+ if (v == "cancel") {
|
|
|
+ this.goTo(
|
|
|
+ "/synergyCourse?userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&role=" +
|
|
|
+ this.role
|
|
|
+ );
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.goTo(
|
|
|
- "/synergyCourse?userid=" +
|
|
|
- this.userid +
|
|
|
- "&oid=" +
|
|
|
- this.oid +
|
|
|
- "&org=" +
|
|
|
- this.org +
|
|
|
- "&role=" +
|
|
|
- this.role
|
|
|
- );
|
|
|
- });
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
nextSteps() {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
@@ -3453,7 +3475,7 @@ export default {
|
|
|
}
|
|
|
this.$refs.stepBox.scrollTop = 0;
|
|
|
},
|
|
|
- changeName(){
|
|
|
+ changeName() {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
|
if (this.courseName == "") {
|
|
|
this.$message.error("请补充填写课程名称");
|
|
@@ -4885,9 +4907,9 @@ export default {
|
|
|
this.cid = res.data.courseId;
|
|
|
this.courseUserid = this.userid;
|
|
|
this.islogin = true;
|
|
|
- if(type!=2){
|
|
|
+ if (type != 2) {
|
|
|
this.steps = 4;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.selectCourseDetail222();
|
|
|
}
|
|
|
})
|
|
@@ -4897,14 +4919,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
selectCourseDetail222() {
|
|
|
- let params = {
|
|
|
- cid: this.cid,
|
|
|
- };
|
|
|
- this.ajax
|
|
|
- .get(this.$store.state.api + "select_synergy", params)
|
|
|
- .then((res) => {
|
|
|
- this.courseDetail = res.data[0][0]
|
|
|
- });
|
|
|
+ let params = {
|
|
|
+ cid: this.cid,
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "select_synergy", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.courseDetail = res.data[0][0]
|
|
|
+ });
|
|
|
},
|
|
|
goCourse() {
|
|
|
window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
|
|
@@ -5049,7 +5071,7 @@ export default {
|
|
|
// }
|
|
|
this.number = this.nbOrder;
|
|
|
this.courseId = this.cid;
|
|
|
- if(type != 2){
|
|
|
+ if (type != 2) {
|
|
|
this.steps = 4;
|
|
|
}
|
|
|
})
|
|
@@ -7165,7 +7187,7 @@ export default {
|
|
|
}, 0);
|
|
|
},
|
|
|
openMember() {
|
|
|
- if(this.cid && this.userid != this.courseUserid && this.role != '1'){
|
|
|
+ if (this.cid && this.userid != this.courseUserid && this.role != '1') {
|
|
|
this.$message.error('非管理员和创建者不可编辑')
|
|
|
return;
|
|
|
}
|
|
@@ -11469,9 +11491,9 @@ ol {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-.tipsBox{
|
|
|
+
|
|
|
+.tipsBox {
|
|
|
text-align: center;
|
|
|
- line-height: 200px;
|
|
|
- font-size: 20px;
|
|
|
-}
|
|
|
-</style>
|
|
|
+ line-height: 200px;
|
|
|
+ font-size: 20px;
|
|
|
+}</style>
|