lsc 8 kuukautta sitten
vanhempi
commit
65a2f85ea5

+ 9 - 0
src/assets/css/button.css

@@ -1,3 +1,4 @@
+.c_pub_button_stopeped,
 .c_pub_button_confirm {
   color: #fff;
   background-color: #0061FF;
@@ -17,10 +18,18 @@
   line-height: 1;
 }
 
+.c_pub_button_stopeped {
+  background-color: #f56c6c;
+}
+
 .c_pub_button_confirm:hover {
   background-color: #3681FC !important;
 }
 
+.c_pub_button_stopeped:hover {
+  background-color: #f57676 !important;
+}
+
 .c_pub_button_confirm + .c_pub_button_confirm {
   margin-left: 20px;
 }

+ 2 - 8
src/components/pages/aiAddCourse/addCourse.vue

@@ -997,7 +997,7 @@
                     <span>筛选学科:</span>
                     <div>{{getTypeC(1)}}</div>
                   </div> -->
-                  <div class="know_serach_box" v-if="findMatchingContentsPage != 1">
+                  <div class="know_serach_box" v-if="this.knowInfoData3.length">
                     <span>筛选项:</span>
                     <el-select v-model="knowFileType1" placeholder="请选择册数" @change="forceUpdate()" style="width: 125px;margin-right: 10px;" clearable>
                       <el-option v-for="(e, eIndex) in knowFileTypeArray1" :key="eIndex" :label="e" :value="e">
@@ -1013,6 +1013,7 @@
                     </el-select>
                     <button class="c_pub_button_confirm" style="margin: 0 10px 0 0px;" @click="knowFileType1 = '',knowFileType2 = '',knowFileType = ''">重置</button>
                     <button v-loading="isfindMatchingContents" class="c_pub_button_confirm" style="margin: 0 0 0 0px;" @click="panFind" v-if="findMatchingContentsPage != 1">下一页</button>
+                    <button class="c_pub_button_stopeped" style="margin: 0 0 0 10px;" @click="cancelAjax('findMatchingContents')" v-if="isfindMatchingContents">停止</button>
                   </div>
                 </div>
                 <div style="display: flex; align-items: center;" v-show="interFindPan">
@@ -5804,13 +5805,6 @@
                                           item1.type == 12 ||
                                           item1.type == 13 ||
                                           item1.type == 7
-                                        " @click="
-                                        updataVideoT(
-                                          $event,
-                                          unitIndex,
-                                          0,
-                                          index1
-                                        )
                                         " class="chapter_upload_box">{{ item1.name }}</div>
                                     <div v-if="item1.type == 6" class="chapter_upload_box" @click="
                                       selectAttText(0, index1)

+ 3 - 1
src/components/pages/aiAddCourse/aiBoxRight.vue

@@ -51,10 +51,12 @@
               src="../../../assets/icon/course/pasete.png"
               @click="onCopy(item.aiContent)"
             />
-            <img
+            <el-tooltip content="点击可将该内容以docx文件保存至附录栏" placement="top" effect="dark">
+              <img
               src="../../../assets/icon/course/save.svg"
               @click="onSave(item.aiContent, item)"
             />
+            </el-tooltip>
           </div>
           <div class="ai_tips_btn_box" v-if="item.promptArray && item.promptArray.length">
             <span v-for="(pr, pindex) in item.promptArray" :key="pindex" @click="quickAdd(item.addedData, pr)">{{ pr.name }}</span>

+ 7 - 4
src/components/pages/aiEasy/addCourse.vue

@@ -2341,7 +2341,7 @@
                 ? istemplate == 1 ? 'auto' : 'auto'
                 : istemplate == 1 ? 'auto' : 'auto',
           }">
-            <div class="rb_c_box">
+            <div class="rb_c_box" v-loading="unitLoading">
               <div class="rb_c_box_left" v-if="(steps == 3 || istemplate == 1)" :style="{width: stepShow ? '270px' : '0',minWidth: stepShow ? '270px' : '0',height: stepShow ? '100%' : '0',marginRight: stepShow ? '10px' : '0'}">
                 <div class="rb_c_box_left stepsBottom2" :style="{width: stepShow ? '270px' : '0',minWidth: stepShow ? '270px' : '0',height: stepShow ? 'calc(100% - 120px)' : '0',marginRight: stepShow ? '0' : '0'}">
                   <div></div>
@@ -7550,6 +7550,7 @@ export default {
       anLoading: [],
       heightPx: '100%',
       newWidth: 350,
+      unitLoading: false
     };
   },
   directives: {
@@ -8762,6 +8763,8 @@ export default {
             // this.loading = true
             functionA()
           } else {
+            this.steps = 3;
+
             // if(ttype == 2){
             this.openAiDialog(clickType, "aiTaskName", functionA)
             // }else {
@@ -18554,7 +18557,7 @@ ${msg}
 
 # Format example
 [{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"},{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"},{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"},{"task":"活动名/任务名/环节名","taskDetail":"活动描述/任务描述/环节描述"}]`
-        this.loading = true
+        this.unitLoading = true
         this.aiGetTaskName(message, this.aiCallBack)
       } else if (this.aitype == "aiDetail1") {
         this.aiDetail(msg, this.aiIndex)
@@ -20401,10 +20404,10 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
           }
           
           callback ? callback() : ''
-          _this.loading = false
+          _this.unitLoading = false
         })
         .catch((error) => {
-          _this.loading = false
+          _this.unitLoading = false
           console.log(error);
         });
     },