ai视频一期功能提交

This commit is contained in:
sunli_tydic
2025-12-09 10:26:02 +08:00
parent caa9b23766
commit 82dcfa6348
16 changed files with 838 additions and 155 deletions

View File

@@ -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=>{