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

部分bug修改等

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