lsc 1 year ago
parent
commit
e87aa2bc8c

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.36ae00dea4f7a681f06ab40aa9af0672.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.2485ee65a402fb60e5a9.js></script><script type=text/javascript src=./static/js/app.e4de5b2bc23073b71eb8.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.16f8515a5c1760b744933a97a277f45e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.2485ee65a402fb60e5a9.js></script><script type=text/javascript src=./static/js/app.8a5d64ce90a493655406.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.16f8515a5c1760b744933a97a277f45e.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.16f8515a5c1760b744933a97a277f45e.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8a5d64ce90a493655406.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8a5d64ce90a493655406.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


+ 52 - 49
src/components/pages/aiAddCourse/addCourse.vue

@@ -173,7 +173,7 @@
                           </div>
                         </div>
                       </div>
-                      <div class="info_box_t" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4'">
+                      <div class="info_box_t" v-if="yiKeTemplateArray.includes(templateid)">
                         <div class="info_box_t_box">
                           <el-switch v-model="isuseT" active-text="是否从已有教案生成"
                               style="justify-content: center; min-width: 175px"></el-switch>
@@ -372,7 +372,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(templateid == 'cf5722a4-401b-11ef-b873-005056b86db5'|| templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') && isuseT">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(yiKeTemplateArray.includes(templateid)) && isuseT">
               <div style="position: relative;
                             background: #fff;
                             box-sizing: border-box;
@@ -526,7 +526,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="teacherTextLoading" element-loading-text="小可正在努力生成中,请稍等..." v-if="(templateid == 'cf5722a4-401b-11ef-b873-005056b86db5'|| templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') && isuseT">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="teacherTextLoading" element-loading-text="小可正在努力生成中,请稍等..." v-if="(yiKeTemplateArray.includes(templateid)) && isuseT">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   已有教案摘要
@@ -557,7 +557,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="targetTextLoading" element-loading-text="小可正在努力生成中,请稍等..." v-if="(templateid == 'cf5722a4-401b-11ef-b873-005056b86db5'|| templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') && isuseT">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="targetTextLoading" element-loading-text="小可正在努力生成中,请稍等..." v-if="(yiKeTemplateArray.includes(templateid)) && isuseT">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   课程目标
@@ -588,7 +588,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(templateid == 'cf5722a4-401b-11ef-b873-005056b86db5'|| templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4')">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(yiKeTemplateArray.includes(templateid))">
               <div style="position: relative;
                             background: #fff;
                             box-sizing: border-box;
@@ -713,7 +713,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(templateid == 'cf5722a4-401b-11ef-b873-005056b86db5'|| templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4')">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(yiKeTemplateArray.includes(templateid))">
               <div style="position: relative;
                             background: #fff;
                             box-sizing: border-box;
@@ -875,7 +875,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="textLoading" element-loading-text="小可正在努力生成中,请稍等..." v-if="((templateid == 'cf5722a4-401b-11ef-b873-005056b86db5'|| templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') && courseTextBool) || (templateid != 'cf5722a4-401b-11ef-b873-005056b86db5' && templateid != 'cf5722a4-401b-11ef-b873-005056b86dc4')">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="textLoading" element-loading-text="小可正在努力生成中,请稍等..." v-if="((yiKeTemplateArray.includes(templateid)) && courseTextBool) || (!yiKeTemplateArray.includes(templateid))">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   课程简要描述
@@ -906,7 +906,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="targetTextLoading2" element-loading-text="小可正在努力生成中,请稍等..." v-if="(templateid == 'cf5722a4-401b-11ef-b873-005056b86db5'|| templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') && courseTextBool">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-loading="targetTextLoading2" element-loading-text="小可正在努力生成中,请稍等..." v-if="(yiKeTemplateArray.includes(templateid)) && courseTextBool">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   课程目标
@@ -937,7 +937,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid != 'cf5722a4-401b-11ef-b873-005056b86db5'&& templateid != 'cf5722a4-401b-11ef-b873-005056b86dc4'">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="!yiKeTemplateArray.includes(templateid)">
               <!-- <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   补充资料
@@ -1210,7 +1210,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && isOutline">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && templateid != 'cf5722a4-401b-11ef-b873-005056b86dc3' && isOutline">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   课程大纲
@@ -1257,7 +1257,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && (cpoteType > 0 || istemplate == 1)">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3') && (cpoteType > 0 || istemplate == 1)">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   概念群
@@ -1285,7 +1285,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && (cpoteType > 1 || istemplate == 1)">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3') && (cpoteType > 1 || istemplate == 1)">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   问题链
@@ -1313,7 +1313,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && (cpoteType > 2 || istemplate == 1)">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3') && (cpoteType > 2 || istemplate == 1)">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   目标层
@@ -1341,7 +1341,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && (cpoteType > 3 || istemplate == 1)">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3') && (cpoteType > 3 || istemplate == 1)">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   任务簇
@@ -1373,14 +1373,14 @@
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   教案
-                  <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1 && dArray.length && templateid != '4480d65a-1e48-11ef-bee5-005056b86db5'">
+                  <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1 && dArray.length && templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && templateid != 'cf5722a4-401b-11ef-b873-005056b86dc3'">
                     <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
                       @contextmenu.prevent="openAiDialog(1, 'aiTeacher2')"
                       @click="openAiDialog(2, 'aiTeacher2')">生成教案</button>
                    </el-tooltip>
                     <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
                       @click="openAiDialog2(2, 'aiTeacher2')" v-if="panTeacher() > 0 && istemplate != 1">重新生成教案</button>
-                  <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="panTeacher() == 0 && istemplate == 1 && templateid == '4480d65a-1e48-11ef-bee5-005056b86db5'">
+                  <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="panTeacher() == 0 && istemplate == 1 && templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' && templateid != 'cf5722a4-401b-11ef-b873-005056b86dc3'">
                       <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
                       @contextmenu.prevent="openAiDialog(1, 'aiTeacher3')"
                       @click="openAiDialog(2, 'aiTeacher3')">生成教案</button>
@@ -1434,12 +1434,12 @@
               <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
                 {{ steps == 4 ? "返回课程" : "上一步" }}
               </button>
-              <button class="c_pub_button_return" v-if="!isOutline && !courseTextBool && (templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4')" @click="clickGenTT2">
+              <button class="c_pub_button_return" v-if="!isOutline && !courseTextBool && (yiKeTemplateArray.includes(templateid))" @click="clickGenTT2">
                 重新生成概况和目标
               </button>
               <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom"  v-if="steps < 4">
                 <button class="c_pub_button_confirm" @click="nextSteps(2)"
-                  @contextmenu.prevent="nextSteps(1)" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5'" :class="{
+                  @contextmenu.prevent="nextSteps(1)" v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && templateid != 'cf5722a4-401b-11ef-b873-005056b86dc3'" :class="{
                     pub_btn_next_img: steps != 3,
                     pub_btn_finish_img: steps == 3,
                   }">
@@ -1450,7 +1450,7 @@
                     pub_btn_next_img: steps != 3,
                     pub_btn_finish_img: steps == 3,
                   }">
-                  {{ steps == 3 ? "确认上传" : (templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && cpoteType < 4) ? 
+                  {{ steps == 3 ? "确认上传" : ((templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") && cpoteType < 4) ? 
                   cpoteType < 3 ? cpoteType < 2 ? cpoteType < 1 ? "生成概念群" : "生成问题链" : "生成目标层"  : "生成任务簇" : !isOutline2 ? "生成教案"  
                   : "下一步" }}
                 </button>
@@ -4933,20 +4933,20 @@
         </div>
       </div>
       <div class="leftBar" v-if="istemplate == 1">
-        <aiTips ttitle="基础资料" title="提取摘要" :detail="aiJson.aiAbstract" pan="aiAbstract" @setAiJson="setAiJson" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4'"/>
-        <aiTips ttitle="基础资料" title="提取目标" :detail="aiJson.aiTarget" pan="aiTarget" @setAiJson="setAiJson"  v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4'"/>
-        <aiTips ttitle="基础资料" title="智能检索资料" :detail="aiJson.aiSearchFile" pan="aiSearchFile" @setAiJson="setAiJson"  v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4'"/>
+        <aiTips ttitle="基础资料" title="提取摘要" :detail="aiJson.aiAbstract" pan="aiAbstract" @setAiJson="setAiJson" v-if="yiKeTemplateArray.includes(templateid)"/>
+        <aiTips ttitle="基础资料" title="提取目标" :detail="aiJson.aiTarget" pan="aiTarget" @setAiJson="setAiJson"  v-if="yiKeTemplateArray.includes(templateid)"/>
+        <aiTips ttitle="基础资料" title="智能检索资料" :detail="aiJson.aiSearchFile" pan="aiSearchFile" @setAiJson="setAiJson"  v-if="yiKeTemplateArray.includes(templateid)"/>
         <aiTips ttitle="基础资料" title="课程描述优化" :detail="aiJson.aiDetail" pan="aiDetail" @setAiJson="setAiJson" />
-        <aiTips ttitle="基础资料" title="生成目标" :detail="aiJson.aiTarget2" pan="aiTarget2" @setAiJson="setAiJson"  v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4'"/>
-        <aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson" v-if="templateid != '61c628b9-3d96-11ef-b873-005056b86db5' && templateid != '4480d65a-1e48-11ef-bee5-005056b86db5'"/>
+        <aiTips ttitle="基础资料" title="生成目标" :detail="aiJson.aiTarget2" pan="aiTarget2" @setAiJson="setAiJson"  v-if="yiKeTemplateArray.includes(templateid)"/>
+        <aiTips ttitle="基础资料" title="生成大纲按钮" :detail="aiJson.aiOutline" pan="aiOutline" @setAiJson="setAiJson" v-if="templateid != '61c628b9-3d96-11ef-b873-005056b86db5' && templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' && templateid != 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
         <aiTips ttitle="课程大纲" title="大纲任务生成" :detail="aiJson.aiOutlineTask" pan="aiOutlineTask" @setAiJson="setAiJson" v-if="templateid == '61c628b9-3d96-11ef-b873-005056b86db5'"/>
         <aiTips ttitle="课程大纲" title="大纲描述生成" :detail="aiJson.aiOutlineDetail" pan="aiOutlineDetail" @setAiJson="setAiJson"  v-if="templateid == '61c628b9-3d96-11ef-b873-005056b86db5'"/>
-        <aiTips ttitle="课程大纲" title="大纲描述优化" :detail="aiJson.aiDetail1" pan="aiDetail1" @setAiJson="setAiJson"  v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5'"/>
-        <aiTips ttitle="cpote" title="概念群" :detail="aiJson.cpote1" pan="cpote1" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5'"/>
-        <aiTips ttitle="cpote" title="问题链" :detail="aiJson.cpote2" pan="cpote2" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5'"/>
-        <aiTips ttitle="cpote" title="目标层" :detail="aiJson.cpote3" pan="cpote3" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5'"/>
-        <aiTips ttitle="cpote" title="任务簇" :detail="aiJson.cpote4" pan="cpote4" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5'"/>
-        <aiTips ttitle="cpote" title="生成任务" :detail="aiJson.aiCpoteTask" pan="aiCpoteTask" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5'"/>
+        <aiTips ttitle="课程大纲" title="大纲描述优化" :detail="aiJson.aiDetail1" pan="aiDetail1" @setAiJson="setAiJson"  v-if="templateid != '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
+        <aiTips ttitle="cpote" title="概念群" :detail="aiJson.cpote1" pan="cpote1" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
+        <aiTips ttitle="cpote" title="问题链" :detail="aiJson.cpote2" pan="cpote2" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
+        <aiTips ttitle="cpote" title="目标层" :detail="aiJson.cpote3" pan="cpote3" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
+        <aiTips ttitle="cpote" title="任务簇" :detail="aiJson.cpote4" pan="cpote4" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
+        <aiTips ttitle="cpote" title="生成任务" :detail="aiJson.aiCpoteTask" pan="aiCpoteTask" @setAiJson="setAiJson"  v-if="templateid == '4480d65a-1e48-11ef-bee5-005056b86db5' || templateid == 'cf5722a4-401b-11ef-b873-005056b86dc3'"/>
         <!-- <aiTips ttitle="课程大纲" title="生成教案按钮" :detail="aiJson.aiTeacher" pan="aiTeacher" @setAiJson="setAiJson" /> -->
         <!-- <aiTips ttitle="生成教案" title="教案描述优化" :detail="aiJson.teacherDetail" pan="teacherDetail"
           @setAiJson="setAiJson" /> -->
@@ -6779,6 +6779,7 @@ export default {
       targetCourseTextB: false,
       courseTextB: true,
       targetCourseText2B: false,
+      yiKeTemplateArray:['cf5722a4-401b-11ef-b873-005056b86db5','cf5722a4-401b-11ef-b873-005056b86dc4','cf5722a4-401b-11ef-b873-005056b86dc3','cf5722a4-401b-11ef-b873-005056b86dc5']
     };
   },
   directives: {
@@ -7518,7 +7519,7 @@ export default {
             return;
           }
 
-          if (this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && !this.isOutline) {
+          if (this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && this.templateid != "cf5722a4-401b-11ef-b873-005056b86dc3" && !this.isOutline) {
             if(!this.courseText && !this.teacherCourseText){
               this.$message.error("请生成简要描述后再生成大纲");
               return;
@@ -7531,7 +7532,7 @@ export default {
             return;
           }
 
-          if(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && this.cpoteType != 4){
+          if((this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") && this.cpoteType != 4){
             let _type = ''
             if(this.cpoteType == 0){
               _type = 'aiCpote1'
@@ -7553,12 +7554,12 @@ export default {
           // }
 
 
-          if (!this.isOutline2 && this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
+          if (!this.isOutline2 && this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") {
             this.openAiDialog(clickType, 'aiTeacher3')
             return;
           }
 
-          if (!this.isOutline2 && this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5") {
+          if (!this.isOutline2 && this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") {
             this.openAiDialog(clickType, 'aiTeacher2')
             return;
           }
@@ -14563,7 +14564,7 @@ export default {
         type: "warning",
       })
         .then(() => {
-          if (this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" && type == "aiTeacher2") {
+          if ((this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") && type == "aiTeacher2") {
             this.openAiDialog(clickType, 'aiTeacher')
           }else {
             this.openAiDialog(clickType, type, callback, index, tindex)
@@ -14855,7 +14856,7 @@ export default {
         this.loading = true
 // ${this.getListClassC(this.checkboxList2) ?  '班级:' + this.getListClassC(this.checkboxList2) : "无"}
 // ${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
-let txt = (this.templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || this.templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') ? '任务设计、评价标准和教学目标(markdown格式)' : '任务设计和评价标准'
+let txt = (this.yiKeTemplateArray.includes(this.templateid)) ? '任务设计、评价标准和教学目标(markdown格式)' : '任务设计和评价标准'
 let courseText = this.courseText ? this.courseText : this.teacherCourseText
         let message = `NOTICE
 Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
@@ -14924,7 +14925,7 @@ Instruction: Based on the context, follow "Format example", write content.
 ## 要求
 ${msg} 为**每个教学任务分别输出**以下内容。
  
-${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n#任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
+${(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") ? '#目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n#任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
 
 ## 参考资料
 教学任务教案:${_text}
@@ -14978,13 +14979,13 @@ Instruction: Based on the context, follow "Format example", write content.
 
 # Context
 ## 要求
-${msg} 以及${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '##任务大纲' : '##目标层,##任务簇'}
+${msg} 以及${(this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && this.templateid != "cf5722a4-401b-11ef-b873-005056b86dc3") ? '##任务大纲' : '##目标层,##任务簇'}
 
-${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 任务大纲\n'+_text : ''}
+${(this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && this.templateid != "cf5722a4-401b-11ef-b873-005056b86dc3") ? '## 任务大纲\n'+_text : ''}
 
-${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n## 任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
+${(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") ? '## 目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n## 任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
 
-${this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 参考上下文\n'+'课程目标:'+target.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
+${(this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5") ? '## 参考上下文\n'+'课程目标:'+target.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
 
 ## Format example
 [{"task": "任务名称1","detail": "教案输出为文本或markdown格式就行"},{"task": "任务名称2","detail": "教案输出为文本或markdown格式就行"}]`
@@ -15100,12 +15101,12 @@ ${sub.length ? '学科:' + sub.join(",") : ''}
 ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
 ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
 ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
-${(this.mode == 1 && (this.templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || this.templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') && this.teacherCourseText) ? '提取教案摘要:'+this.teacherCourseText : ''}
-${(this.mode == 1 && (this.templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || this.templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') && target) ? '提取教案目标:'+target : ''}
+${(this.mode == 1 && (this.yiKeTemplateArray.includes(this.templateid)) && this.teacherCourseText) ? '提取教案摘要:'+this.teacherCourseText : ''}
+${(this.mode == 1 && (this.yiKeTemplateArray.includes(this.templateid)) && target) ? '提取教案目标:'+target : ''}
 ${this.courseText && this.aiCallback == 2 ? '参考内容:'+this.courseText : ''}
 
 ## 要求
-${message} 以及##参考资料 ${(this.templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || this.templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4') ? "" : '以文本格式输出项目概况,驱动性问题,最终作品'}
+${message} 以及##参考资料 ${(this.yiKeTemplateArray.includes(this.templateid)) ? "" : '以文本格式输出项目概况,驱动性问题,最终作品'}
 
 ${(this.templateid != 'cf5722a4-401b-11ef-b873-005056b86dc4') && '## Format example 课程简要描述:课程内容的简单叙述。 驱动性问题:1个驱动整个项目的问题。 最终作品:对应解决驱动性问题的作品,可个人可团队。'}
 
@@ -15120,7 +15121,7 @@ ${this.courseText && this.aiCallback == 2 ? '注意,优化原有的<参考内
       let _this = this
       let fileid = []
       
-      if(this.templateid == 'cf5722a4-401b-11ef-b873-005056b86db5' || this.templateid == 'cf5722a4-401b-11ef-b873-005056b86dc4'){
+      if(this.yiKeTemplateArray.includes(this.templateid)){
         for (var i = 0; i < _this.cankaoInfoData.length; i++) {
             if(_this.cankaoInfoData[i].fileid){
               fileid.push(_this.cankaoInfoData[i].fileid)
@@ -16782,7 +16783,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
             }
             try {
               _this.teacherText = JSON.parse(JSON.stringify(dArray))
-              if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5") {
+              if (_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") {
                 if(_this.panTeacher() > 0){
                   for(var i = 0; i < _this.unitJson[0].chapterInfo[0].taskJson.length; i++){
                     _this.unitJson[0].chapterInfo[0].taskJson[i].task = ""
@@ -17844,7 +17845,7 @@ ${msg}
 课程简要描述:${_this.courseText}
 任务名:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
 ${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 ? '任务描述:' + _this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
-${_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#任务簇:'+_this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}`
+${(_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templateid == "cf5722a4-401b-11ef-b873-005056b86dc3") ? '#任务簇:'+_this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}`
 
 // ## 补充参考资料
 // - 补充资料:${url.join(",")}
@@ -18028,7 +18029,8 @@ ${_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#任务簇:'+_
       }
 // ${this.getListClassC(this.checkboxList2) ?  '班级:' + this.getListClassC(this.checkboxList2) : "无"}
 // ${this.cpote[_index] ? '## 优化内容\n'+this.cpote[_index] : ''}
-
+let courseText = this.courseText ? this.courseText : this.teacherCourseText
+let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcoursetext
       let messages = `NOTICE
 Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
 Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
@@ -18037,9 +18039,10 @@ ${msg}
 
 ## 课程简介
 课程名字:${this.courseName}
-${this.courseText ? '课程简要描述:' + this.courseText : ''}
+${courseText ? '课程简要描述:' + courseText.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
 ${sub.length ? '学科:' + sub.join(",") : ''}
 ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
+${target ? '课程目标:' + target.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
 
 ${this.aitype == 'aiCpote2' || this.aitype == 'aiCpote3' || this.aitype == 'aiCpote4' ? '## 概念群\n'+this.cpote['cpote1'] : ''}
 

Some files were not shown because too many files changed in this diff