|
@@ -865,6 +865,16 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="form-row">
|
|
|
|
|
+ <div class="form-item aiAssistant-item">
|
|
|
|
|
+ <div class="aiAssistant_box">
|
|
|
|
|
+ <label class="aiAssistant_box_title">{{ lang.ssAIAssistant }}</label>
|
|
|
|
|
+ <div class="ai-switch-wrapper">
|
|
|
|
|
+ <el-switch v-model="aiAssistant" active-color="#FF8C00" inactive-color="#DCDFE6"></el-switch>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<div class="publish-modal-footer">
|
|
<div class="publish-modal-footer">
|
|
|
<button class="btn-cancel" @click="dialogVisiblePublish = false">{{ lang.ssCancel }}</button>
|
|
<button class="btn-cancel" @click="dialogVisiblePublish = false">{{ lang.ssCancel }}</button>
|
|
|
<button class="btn-publish" @click="confirmPublish">
|
|
<button class="btn-publish" @click="confirmPublish">
|
|
@@ -1034,7 +1044,7 @@ export default {
|
|
|
courseName: "",
|
|
courseName: "",
|
|
|
isTeacherSee: false,
|
|
isTeacherSee: false,
|
|
|
visibility: "students",
|
|
visibility: "students",
|
|
|
- aiAssistant: true,
|
|
|
|
|
|
|
+ aiAssistant: false,
|
|
|
classOptions: [],
|
|
classOptions: [],
|
|
|
publishing: false,
|
|
publishing: false,
|
|
|
editingCourseName: false,
|
|
editingCourseName: false,
|
|
@@ -1949,7 +1959,7 @@ export default {
|
|
|
|
|
|
|
|
console.log(_url)
|
|
console.log(_url)
|
|
|
this.pptCourseJson.pptData = _url;
|
|
this.pptCourseJson.pptData = _url;
|
|
|
-
|
|
|
|
|
|
|
+ this.pptCourseJson.aiAssistant = this.aiAssistant;
|
|
|
|
|
|
|
|
|
|
|
|
|
this.inputShow = true;
|
|
this.inputShow = true;
|
|
@@ -2068,6 +2078,7 @@ export default {
|
|
|
this.uploadFile2(pptJsonFile2, this.cid);
|
|
this.uploadFile2(pptJsonFile2, this.cid);
|
|
|
|
|
|
|
|
this.pptCourseJson.pptData = _url;
|
|
this.pptCourseJson.pptData = _url;
|
|
|
|
|
+ this.pptCourseJson.aiAssistant = this.aiAssistant;
|
|
|
|
|
|
|
|
let params = [
|
|
let params = [
|
|
|
{
|
|
{
|
|
@@ -2214,7 +2225,7 @@ export default {
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
this.pptCourseJson = JSON.parse(res.data[0][0].chapters);
|
|
this.pptCourseJson = JSON.parse(res.data[0][0].chapters);
|
|
|
-
|
|
|
|
|
|
|
+ this.aiAssistant = this.pptCourseJson.aiAssistant ? this.pptCourseJson.aiAssistant : false
|
|
|
|
|
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
this.courseName = res.data[0][0].title;
|
|
this.courseName = res.data[0][0].title;
|
|
@@ -5589,4 +5600,23 @@ export default {
|
|
|
.web-search-footer .btn-confirm:hover {
|
|
.web-search-footer .btn-confirm:hover {
|
|
|
background-color: #e67300;
|
|
background-color: #e67300;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.aiAssistant-item {
|
|
|
|
|
+ border: 1px solid #ececef;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.aiAssistant_box{
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ background: #fafbfd;
|
|
|
|
|
+ padding: 14px 10px;
|
|
|
|
|
+ border-radius: 5px;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.aiAssistant_box_title{}
|
|
|
|
|
+
|
|
|
|
|
+.ai-switch-wrapper{}
|
|
|
</style>
|
|
</style>
|