lsc 3 月之前
父节点
当前提交
9f54bb12e7
共有 1 个文件被更改,包括 22 次插入5 次删除
  1. 22 5
      src/components/pages/aiEasy/addCourse.vue

+ 22 - 5
src/components/pages/aiEasy/addCourse.vue

@@ -29,6 +29,7 @@
         <!-- @mouseenter="stepDisplay(true)"
               @mouseleave="stepDisplay(false)" -->
         <div ref="stepBox" class="stepBox" :style="{overflow:istemplate == 1 ? 'auto' : 'auto'}"  @scroll="scrollChange">
+          <button class="c_pub_button_confirm confirmBtn" :style="{ right: (isDialog == 1 && chatid && isDisplay) ? (newWidth + 65) + 'px' : '45px'}" v-if="steps > 2 && istemplate != 1" @click="nextSteps">确认上传</button> 
           <div class="stepBg" v-if="false">
             <div :class="{ stepTop: isStepDisplay, stepTop2: !isStepDisplay }">
               <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
@@ -2566,9 +2567,7 @@
                   <!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="openAiDialog(2, 'aiTaskG2', 'all'), addCourseBehavior('courseBehavior2', `点击学历案-一键生成所有工具按钮`)" v-if="panTool() == 0">一键生成所有工具</button> -->
                   <!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="allEvaCan(), addCourseBehavior('courseBehavior2', `点击学历案-一键生成所有评价按钮`)" v-if="panTool() > 0 && panTaskElist() == 0 && panEvaCont() == 0">一键生成所有评价</button> -->
                   <!-- <button class="c_pub_button_confirm3" style="margin: 0 0 0 10px;" @click="exportTaskEA(), addCourseBehavior('courseBehavior2', `点击学历案-导出评价和学历案按钮`)">导出评价和学历案</button> -->
-                  <button class="c_pub_button_confirm" style="margin: 0 0 0 10px;" v-if="steps < 4 && istemplate != 1" @click="nextSteps">
-                    {{ steps == 3 ? "确认上传" : "下一步" }}
-                  </button> 
+                  <button class="c_pub_button_confirm" style="margin: 0 0 0 10px;" v-if="steps < 4 && istemplate != 1" @click="nextSteps">确认上传</button> 
                 </div>
                 <div class="basic_box" ref="unitBox" @scroll="taskScroll">
                   <div v-if="false" style="
@@ -7546,7 +7545,8 @@ export default {
       course_info: "",
       stepShow: true,
       anLoading: [],
-      heightPx: '100%'
+      heightPx: '100%',
+      newWidth: 350,
     };
   },
   directives: {
@@ -18441,6 +18441,8 @@ ${msg3}
           let _this = this
           function processNext() {
             if (ij < _this.unitJson[0].chapterInfo[0].taskJson.length) {
+              let _task = _this.unitJson[0].chapterInfo[0].taskJson[ij]
+              
               if(!_this.taskGLoading[ij][1]){
                 _this.taskGLoading[ij][1] = false
                 ij++;
@@ -18460,6 +18462,7 @@ ${msg2}
 
 ## 参考资料
 学习任务内容:${_this.courseTextE}
+你所在的活动:教学活动${ij+1}:${_task.task} 活动描述:${_task.taskDetail}
 
 # 输出格式与要求
 互动工具列表
@@ -18489,7 +18492,7 @@ ${_this.languageSetting == 2 ? '还有以下工具:Mind Map Tool、Spreadsheet
 
 
         }else{
-
+          let _task = _this.unitJson[0].chapterInfo[0].taskJson[this.aiCallBack]
 let message2 = `NOTICE
 Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
 Language: ${this.getLang()}
@@ -18503,6 +18506,7 @@ ${msg2}
 
 ## 参考资料
 学习任务内容:${this.courseTextE}
+你所在的活动:教学活动${this.aiCallBack+1}:${_task.task} 活动描述:${_task.taskDetail}
 
 # 输出格式与要求
 互动工具列表
@@ -25278,6 +25282,7 @@ ${msg}
       const newWidth = startWidth + dx;
       if (newWidth >= 350 && newWidth <= maxWidth) {
         resizable.style.minWidth = `${newWidth}px`;
+        this.newWidth = newWidth;
       }
     };
 
@@ -25304,6 +25309,7 @@ ${msg}
       const newWidth = startWidth + dx;
       if (newWidth >= 350 && newWidth <= maxWidth2) {
         resizable.style.minWidth = `${newWidth}px`;
+        this.newWidth = newWidth;
       }
     };
 
@@ -30132,4 +30138,15 @@ ol {
   font-size: 13px;
   color: #898989;
 }
+
+.stepBox {
+  position: relative; /* 确保子元素可以绝对定位 */
+}
+
+.confirmBtn{
+  z-index: 1000;
+  position: fixed;
+  /* right: 45px; */
+  bottom: 20px;
+}
 </style>