mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
ai视频一期功能提交
This commit is contained in:
@@ -338,22 +338,22 @@
|
||||
</el-tooltip>
|
||||
<span>AI处理状态:</span>
|
||||
</div>
|
||||
<el-switch v-model="courseInfo.aiSet" active-value="1" inactive-value="0"></el-switch>
|
||||
<el-switch v-model="courseInfo.aiSet" :active-value="1" :inactive-value="0"></el-switch>
|
||||
</div>
|
||||
<div v-show="courseInfo.aiSet==1">
|
||||
<el-row :gutter="20" style="margin: 10px 0;">
|
||||
<el-col :span="9" style="display: flex; align-items: center;gap: 10px;">
|
||||
<span>是否需要生成AI摘要:</span>
|
||||
<el-radio-group v-model="courseInfo.aiAbstract">
|
||||
<el-radio label="1">是</el-radio>
|
||||
<el-radio label="0">否</el-radio>
|
||||
<el-radio :label="1">是</el-radio>
|
||||
<el-radio :label="0">否</el-radio>
|
||||
</el-radio-group>
|
||||
</el-col>
|
||||
<el-col :span="10" style="display: flex; align-items: center;gap: 10px;">
|
||||
<span>是否需要生成AI文稿:</span>
|
||||
<el-radio-group v-model="courseInfo.aiDraft">
|
||||
<el-radio label="1">是</el-radio>
|
||||
<el-radio label="0">否</el-radio>
|
||||
<el-radio :label="1">是</el-radio>
|
||||
<el-radio :label="0">否</el-radio>
|
||||
</el-radio-group>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -992,15 +992,15 @@ export default {
|
||||
console.log("--- 编辑查看 this.dicts = ",this.dicts)
|
||||
// 如果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.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.courseInfo.isAddAI = 0;
|
||||
}
|
||||
if(!this.courseInfo.orgId){
|
||||
//根据课程创建者获取机构id
|
||||
|
||||
Reference in New Issue
Block a user