提交 087096f2 编写于 作者: guangjun.yang's avatar guangjun.yang

部分bug修改等

上级 c3aa03a8
......@@ -110,7 +110,7 @@
</li>
<span v-show="needShowUploadProcess" class="upload-process" :style="{'width': (uploadProgress/100 * 340) + 'px'}"></span>
</ul>
<div style="color:red;position:absolute;top:60px;" v-if="noLecture && !formData.courseCustomChapterModels[0].courseCustomLectureModelList.length">您还未上传视频</div>
<div style="color:red;position:absolute;top:60px;" v-if="noLecture && !formData.courseCustomChapterModels[0].courseCustomLectureModelList.length">请上传课程视频</div>
<span v-if="!formData.courseCustomChapterModels[0].courseCustomLectureModelList.length" v-show="needShowUploadProcess" class="upload-process" :style="{'width': (uploadProgress/100 * 340) + 'px'}"></span>
</div>
</el-upload>
......@@ -513,6 +513,7 @@ export default {
},
initModify() {
this.step = 1;
this.needShowAuditMsg = true;
console.log("in initModify");
this.initOrgCourseInfo();
......@@ -552,17 +553,28 @@ export default {
// 当选择医生的焦点失去时,要反选医生信息
doctorNameInputBlur() {
setTimeout(() => {
this.isShowDoctorList = false;
this.selectDoctorByName(
this.formData.courseCustomDoctorModels[0].courseDoctorName
);
this.$nextTick( item => {
this.isShowDoctorList = false;
this.selectDoctorByName(
this.formData.courseCustomDoctorModels[0].courseDoctorName
);
})
}, 200);
},
// 根据姓名反选医生信息
// TODO 尝试找到完全匹配的医生
selectDoctorByName(name) {
// let lectureObj = {};
let originDoctorModelList = JSON.parse(JSON.stringify(this.orgCourseInfo.doctorModelList));
let index = originDoctorModelList.findIndex( item => {
return item.courseDoctorName == name;
});
// debugger
if(index >= 0) {
this.formData.courseCustomDoctorModels[0] = this.orgCourseInfo.doctorModelList[index];
}
// this.$forceUpdate();
},
// 选择其中一个
......@@ -705,12 +717,13 @@ export default {
insertOrUpdate() {
this.POST("contents/course/custom/info/insertOrUpdate", this.formData).then(res => {
if (res.code == "000000") {
if(this.courseId == '0') {
this.step = 2;
} else {
this.close();
this.setKind(3);
}
// if(this.courseId == '0') {
// this.step = 2;
// } else {
// this.close();
// this.setKind(3);
// }
}
});
},
......@@ -737,7 +750,7 @@ export default {
deleteLecture(index) {
let lectureId = this.formData.courseCustomChapterModels[0].courseCustomLectureModelList[index].id;
if(lectureId) {
this.deleteCustomLectureIds.push(lectureId);
this.formData.deleteCustomLectureIds.push(lectureId);
}
this.formData.courseCustomChapterModels[0].courseCustomLectureModelList.splice(index, 1);
},
......
......@@ -175,7 +175,7 @@ export default {
addOrUpdate: 'add',
isPreviewProtocol: false,
protocolId: 5,
protocolId: 22,
protocolContent: '',
};
},
......
......@@ -175,7 +175,7 @@ export default {
addOrUpdate: 'add',
isPreviewProtocol: false,
protocolId: 5,
protocolId: 22,
protocolContent: '',
};
},
......
......@@ -175,7 +175,7 @@ export default {
courseId: '0',
isPreviewProtocol: false,
protocolId: 5,
protocolId: 22,
protocolContent: '',
isFirst: true, // 是否是第一次(不做更新)
};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册