diff --git a/src/api/modules/course.js b/src/api/modules/course.js index 00db854c..f0312fd6 100644 --- a/src/api/modules/course.js +++ b/src/api/modules/course.js @@ -440,6 +440,11 @@ const queryCrowd=function(query){ const ids=function (data){ return ajax.postJson('/xboe/m/course/manage/ids',data); } + +// ai播放器相关 - 批量AI设置 +const benchAiSet=function(data){ + return ajax.postJson('/xboe/m/course/manage/benchAiSet',data); +} export default { saveBase, submitCourse, @@ -482,6 +487,7 @@ export default { exportCourseAudit, exportCourse, queryCrowd, - ids + ids, + benchAiSet } diff --git a/src/assets/images/course/generationFailed.png b/src/assets/images/course/generationFailed.png new file mode 100644 index 00000000..5ca255d5 Binary files /dev/null and b/src/assets/images/course/generationFailed.png differ diff --git a/src/assets/images/course/languageIcon.png b/src/assets/images/course/languageIcon.png new file mode 100644 index 00000000..454e67cb Binary files /dev/null and b/src/assets/images/course/languageIcon.png differ diff --git a/src/assets/images/course/selectLanguage.png b/src/assets/images/course/selectLanguage.png new file mode 100644 index 00000000..f13efb3a Binary files /dev/null and b/src/assets/images/course/selectLanguage.png differ diff --git a/src/assets/styles/btn.scss b/src/assets/styles/btn.scss index e6ba1a8e..0cb69515 100644 --- a/src/assets/styles/btn.scss +++ b/src/assets/styles/btn.scss @@ -97,3 +97,29 @@ font-size: 14px; border-radius: 4px; } +// 已下架 +.custom-takeout{ + display: inline-block; + padding: 3px 13px; + border-radius: 20px; + font-size: 12px; + background: rgba(254, 249, 195, 1); + color: rgba(133, 77, 14, 1); + font-size: 12px; + font-weight: 500; + line-height: 17px; + letter-spacing: 0px; +} +// 已上架 +.custom-putaway{ + display: inline-block; + padding: 3px 13px; + border-radius: 20px; + font-size: 12px; + background: rgba(220, 252, 231, 1); + color: rgba(22, 101, 52, 1); + font-size: 12px; + font-weight: 500; + line-height: 17px; + letter-spacing: 0px; +} \ No newline at end of file diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 71c1fb77..fed1ddcb 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -904,7 +904,7 @@ export default { } }); } - + this.initAiData(); } else { //console.log(editData,'editData'); this.weikeReset = editData.id; @@ -1005,6 +1005,23 @@ export default { console.error("获取字典信息失败:", error); } }, + // ai播放器相关 + // 初始化ai数据 + initAiData() { + // 如果ai设置为空则给默认值 - 会看成新增状态 + if(this.courseInfo.aiSet === null || this.courseInfo.aiSet === '' || this.courseInfo.aiSet === undefined){ + this.courseInfo.isAddAI = 1; //暂时是否是新增 + this.courseInfo.aiSet = 1; + this.courseInfo.aiAbstract = 1; + this.courseInfo.aiDraft = 1; + this.courseInfo.aiTranslate = 1; + this.courseInfo.languageStatus = 1; + this.courseInfo.languageCode = ['zh-CN', 'en-US']; + } else { + // 获取ai设置信息 + this.courseInfo.isAddAI = 0; + } + }, //获取课程信息 async getDetail(id) { this.curCourseId = id; @@ -1032,18 +1049,7 @@ export default { console.log("--- 编辑查看 this.isPermission = ",this.isPermission) console.log("--- 编辑查看 this.dicts = ",this.dicts) // ai播放器相关 - // 如果ai设置为空则给默认值 - 会看成新增状态 - if(this.courseInfo.aiSet === null || this.courseInfo.aiSet === '' || this.courseInfo.aiSet === undefined){ - this.courseInfo.isAddAI = 1; //暂时是否是新增 - this.courseInfo.aiSet = 1; - this.courseInfo.aiAbstract = 1; - this.courseInfo.aiDraft = 1; - this.courseInfo.aiTranslate = 1; - this.courseInfo.languageCode = ['zh-CN', 'en-US']; - } else { - // 获取ai设置信息 - this.courseInfo.isAddAI = 0; - } + this.initAiData() if(!this.courseInfo.orgId){ //根据课程创建者获取机构id apiUser.getOrgSimpleByUserId(result.course.sysCreateAid).then(ors=>{ diff --git a/src/components/VideoPlayer/index.vue b/src/components/VideoPlayer/index.vue index 33216033..f998c4a6 100644 --- a/src/components/VideoPlayer/index.vue +++ b/src/components/VideoPlayer/index.vue @@ -121,7 +121,7 @@