lsc 1 year ago
parent
commit
36c097f555

+ 1 - 1
dist/index.html

@@ -25,7 +25,7 @@
       height: 100%;
       width: 100%;
       background: #e6eaf0;
-    }</style><link href=./static/css/app.bb3c752c747367a62a2cb350c440d361.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.eedb1108340e1e0fe414.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.d8de34943f3c10b36cabff57746872cc.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3512a67a6213c2df4180.js></script><script type=text/javascript src=./static/js/vendor.f1661c5ebfd33221b88f.js></script><script type=text/javascript src=./static/js/app.04f5ec4226e196a9c970.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.bb3c752c747367a62a2cb350c440d361.css


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


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


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


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


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


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


+ 147 - 72
src/components/pages/addCourse.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="pb_content">
+  <div class="pb_content" style="background: #d2d9e2;">
     <div class="pb_content_body" style="position: relative; margin: 0">
       <div class="right">
         <div class="courseTop">
@@ -25,53 +25,53 @@
         <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
         <div ref="stepBox" class="stepBox">
           <div class="stepBg">
-            <div class="stepTop">
-              <div v-if="steps > 0" class="first" @click="navSteps(1)">
+            <div :class="{stepTop:isStepDisplay,stepTop2:!isStepDisplay}" @mouseenter="stepDisplay(true)"  @mouseleave="stepDisplay(false)">
+              <div v-if="steps > 0 && isStepDisplay" class="first" @click="navSteps(1)">
                 <div>
                   <img src="../../assets/icon/first.png" alt />
                 </div>
                 <div>填写基本信息</div>
               </div>
-              <div v-else class="firstNo" @click="navSteps(1)">
+              <div v-else-if="isStepDisplay" class="firstNo" @click="navSteps(1)">
                 <div>
                   <img src="../../assets/icon/firstNo.png" alt />
                 </div>
                 <div>填写基本信息</div>
               </div>
-              <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0"></div>
-              <div v-if="steps > 1 && cidType === 0" class="second" @click="navSteps(2)">
+              <div class="stepBorder" :class="{ 'border-active': steps > 1 }" v-if="cidType === 0 && isStepDisplay"></div>
+              <div v-if="steps > 1 && cidType === 0 && isStepDisplay" class="second" @click="navSteps(2)">
                 <div style="margin: 5px 10px 0 0; width: 2rem">
                   <img src="../../assets/icon/second.png" alt />
                 </div>
                 <div>选择课程模式</div>
               </div>
-              <div v-else-if="cidType === 0" class="secondNo" @click="navSteps(2)">
+              <div v-else-if="cidType === 0 && isStepDisplay" class="secondNo" @click="navSteps(2)">
                 <div>
                   <img src="../../assets/icon/secondNo.png" alt />
                 </div>
                 <div>选择课程模式</div>
               </div>
-              <div class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
-              <div v-if="steps > 2" class="third" @click="navSteps(3)">
+              <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 2 }"></div>
+              <div v-if="steps > 2 && isStepDisplay" class="third" @click="navSteps(3)">
                 <div>
                   <img src="../../assets/icon/third.png" alt />
                 </div>
                 <div>上传课程内容</div>
               </div>
-              <div v-else class="thirdNo" @click="navSteps(3)">
+              <div v-else-if="isStepDisplay" class="thirdNo" @click="navSteps(3)">
                 <div>
                   <img src="../../assets/icon/thirdNo.png" alt />
                 </div>
                 <div>上传课程内容</div>
               </div>
-              <div class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
-              <div v-if="steps > 3" class="four">
+              <div v-if="isStepDisplay" class="stepBorder" :class="{ 'border-active': steps > 3 }"></div>
+              <div v-if="steps > 3 && isStepDisplay" class="four">
                 <div>
                   <img src="../../assets/icon/four.png" alt />
                 </div>
                 <div>上传完成</div>
               </div>
-              <div v-else class="fourNo">
+              <div v-else-if="isStepDisplay" class="fourNo">
                 <div>
                   <img src="../../assets/icon/fourNo.png" alt />
                 </div>
@@ -79,7 +79,7 @@
               </div>
             </div>
           </div>
-          <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:30px 10px">
+          <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange" style="padding:30px 10px" :style="{height:(!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)'}">
             <div class="updateMask" :style="{
               height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
             }" v-if="cid && userid != courseUserid && role != '1'"></div>
@@ -90,7 +90,7 @@
                 <div class="course_input_box">
                   <div class="bb_courseIcon"><img src="../../assets/icon/new/course_icon.png" /></div>
                   <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
-                    style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
+                    style="border: 1px solid #CAD1DC;background: #f6f6f6;" />
                   <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
                 </div>
               </div>
@@ -270,7 +270,7 @@
               </div>
             </div>
           </div>
-          <div class="rightBox" v-if="this.steps == 2">
+          <div class="rightBox" v-if="this.steps == 2" :style="{height:(!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)'}">
             <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
               <!-- <div
                 style="
@@ -337,7 +337,7 @@
                     简易模式
                   </div>
                 </div>
-                <div class="wordTeacher" @click="pasteStage()">
+                <div class="wordTeacher" @click="pasteStage()" v-if="isPasteStage">
                   <div class="wordPic">
                     <img src="../../assets/icon/wordMub.png" alt />
                   </div>
@@ -388,7 +388,7 @@
               </div>
             </div>
           </div>
-          <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
+          <div class="rightBox" v-if="this.steps == 3" ref="rightboxR" :style="{height:(!isStepDisplay && !isBtnDisplay) ? 'calc(100% - 40px)' : 'calc(100% - 100px)'}">
             <div class="rb_c_box">
               <div class="rb_c_box_left" v-if="steps == 3 && unitJson[unitIndex].easy != 1">
                 <div class="stepsBottom">
@@ -433,7 +433,7 @@
                   background: #f0f4fa
                 ">
                 <!-- :style="{ maxWidth: (userid == courseUserid || role == '1') ? 'calc(100% - 300px)' : 'calc(100% - 175px)' }" -->
-                    <div class="cru_selectBox">
+                    <div class="cru_selectBox" :style="{ maxWidth: isPasteTask ? 'calc(100% - 175px)' : 'calc(100% - 40px)' }">
                       <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
                         :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
                         <!-- item.dyName ? item.dyName :  -->
@@ -456,7 +456,7 @@
                     <!-- <button class="c_pub_button_add" @click="openStageBox"
                       v-if="steps == 3 && (userid == courseUserid || role == '1')"
                       style="margin: 0 0 0 auto;">阶段顺序</button> -->
-                    <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3" style="margin: 0 0 0 auto;">智能粘贴</button>
+                    <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" v-if="steps == 3 && isPasteTask" style="margin: 0 0 0 auto;">智能粘贴</button>
                   </div>
 
                   <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
@@ -509,7 +509,7 @@
                                   itemTaskIndex
                                 ].task
                                   " />
-                              <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2"
+                              <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2"
                                 class="show_taskD show" @click="fold2(itemTaskIndex)"><img
                                   src="../../assets/icon/new/icon-slide.png" />收起任务描述</div>
                               <div v-else-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" class="show_taskD"
@@ -521,7 +521,7 @@
                                 unitJson[unitIndex].easy == 6)
                               " @click="deleteTask(itemTaskIndex)" style="margin-right: 10px;"></div>
                           </div>
-                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2" style="
+                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2" style="
                           display: flex;
                           margin: 20px 0;
                           flex-direction: row;
@@ -531,8 +531,8 @@
                             <div class="lineTitle">任务描述</div>
                             <!-- <div class="line"></div> -->
                           </div>
-                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && !itemTask.isFold2">
-                            <editor-bar style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
+                          <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1 && itemTask.isFold2">
+                            <editor-bar class="addEditor" style="margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
                               itemTaskIndex
                             ].taskDetail
                               " @change="change"></editor-bar>
@@ -1013,11 +1013,6 @@
                           <div class="leftTools" style="
                           width: 100%;
                         " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
-                            <div>
-                              <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
-                                style="margin: 0 0 20px 0; width: 100% !important"
-                                v-model="itemTool.toolDetail"></textarea>
-                            </div>
                             <div style="
                             display: flex;
                             flex-direction: row;
@@ -1031,45 +1026,45 @@
                               </div>
                               <div class="chooseWho">
                                 <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 0), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 0),(itemTool.isFold3 = true), $forceUpdate()">
                                   互动类
                                 </div>
                                 <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 1), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 1),(itemTool.isFold3 = true), $forceUpdate()">
                                   思维类
                                 </div>
                                 <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 6), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 6),(itemTool.isFold3 = true), $forceUpdate()">
                                   协作类
                                 </div>
                                 <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 2), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 2),(itemTool.isFold3 = true), $forceUpdate()">
                                   测评类
                                 </div>
                                 <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 7), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 7),(itemTool.isFold3 = true), $forceUpdate()">
                                   评价类
                                 </div>
                                 <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 3), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 3),(itemTool.isFold3 = true), $forceUpdate()">
+                                  编程类
+                                </div>
+                                <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 5),(itemTool.isFold3 = true), $forceUpdate()">
                                   学科类
                                 </div>
-                                <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
-                              " @click="(itemTool.toolType = 5), $forceUpdate()">
-                              学科类
-                            </div>
-                            <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
+                            <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
                               " @click="(itemTool.toolType = 4), $forceUpdate()">
                               其他
                             </div> -->
                               </div>
-                              <div v-if="!itemTool.isFold3" class="show_toolD show" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
+                              <div v-if="itemTool.isFold3" class="show_toolD show" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../assets/icon/new/icon-slide.png" />收起工具栏</div>
                               <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../assets/icon/new/icon-slide.png" />展开工具栏</div>
                               <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
                                 v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
                             </div>
 
-                            <div style="min-height: 163px" v-show="!itemTool.isFold3">
+                            <div style="min-height: 163px" v-show="itemTool.isFold3">
                               <div class="toolSort" v-if="itemTool.toolType == 0">
                                 <!-- <div class="tool">
                               <div
@@ -1152,7 +1147,7 @@
                                 </div>
                               </div>
                             </div> -->
-                                <div class="tool">
+                                <!-- <div class="tool">
                                   <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
                                     <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
                                     <div style="margin: 5px 0">交互视频</div>
@@ -1163,7 +1158,7 @@
                                       <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
-                                </div>
+                                </div> -->
                               </div>
                               <div class="toolSort" v-if="itemTool.toolType == 1">
                                 <div class="tool">
@@ -1540,6 +1535,22 @@
                                     </div>
                                   </div>
                                 </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 7">
+                                <div class="tool">
+                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
+                                    <img src="../../assets/icon/thirdToolList/eval.png" alt />
+                                    <div style="margin: 5px 0">个人评价</div>
+                                  </div>
+                                  <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
+                                    <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
+                                    <div class="checkDiv" v-else>
+                                      <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 5">
                                 <div class="tool">
                                   <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
                                     <img src="../../assets/icon/secondToolList/translation.png" alt />
@@ -1612,23 +1623,7 @@
                                     </div>
                                   </div>
                                 </div>
-                              </div>
-                              <div class="toolSort" v-if="itemTool.toolType == 7">
-                                <div class="tool">
-                                  <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
-                                    <img src="../../assets/icon/thirdToolList/eval.png" alt />
-                                    <div style="margin: 5px 0">个人评价</div>
-                                  </div>
-                                  <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
-                                    <img src="../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
-                                    <div class="checkDiv" v-else>
-                                      <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
-                                    </div>
-                                  </div>
-                                </div>
-                              </div>
-                              <div class="toolSort" v-if="itemTool.toolType == 5">
-                                <div class="tool">
+                                <!-- <div class="tool">
                                   <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
                                     <img src="../../assets/icon/secondToolList/translation.png" alt />
                                     <div style="margin: 5px 0">翻译</div>
@@ -1761,7 +1756,7 @@
                                       <img src="../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
-                                </div>
+                                </div> -->
                                 <!-- <div class="tool">
                               <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
                                 <img src="../../assets/icon/thirdToolList/hanClass.png" alt />
@@ -1776,6 +1771,11 @@
                             </div> -->
                               </div>
                             </div>
+                            <div v-show="itemTool.isFold3">
+                              <textarea rows="2" v-autoHeight="70" type="text" placeholder="添加工具描述" class="binfo_input"
+                                style="margin: 0 0 20px 0; width: 100% !important"
+                                v-model="itemTool.toolDetail"></textarea>
+                            </div>
                           </div>
                           <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
                             <div class="addToolImg">
@@ -2117,8 +2117,8 @@
               </div> -->
             </div>
           </div>
-          <div class="info_btnBox">
-            <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1" @click="
+          <div :class="{info_btnBox:isBtnDisplay,info_btnBox2:!isBtnDisplay}" @mouseenter="btnDisplay(true)"  @mouseleave="btnDisplay(false)">
+            <button class="c_pub_button_return pub_btn_return_img" v-if="steps == 1 && isBtnDisplay" @click="
               goTo(
                 '/course?userid=' +
                 userid +
@@ -2132,10 +2132,10 @@
               ">
               返回课程
             </button>
-            <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5" @click="lastSteps">
+            <button class="c_pub_button_return pub_btn_last_img" v-if="steps > 1 && steps != 5 && isBtnDisplay" @click="lastSteps">
               {{ steps == 4 ? "返回课程" : "上一步" }}
             </button>
-            <button class="c_pub_button_confirm" v-if="steps < 4" @click="nextSteps"
+            <button class="c_pub_button_confirm" v-if="steps < 4 && isBtnDisplay" @click="nextSteps"
               :class="{ pub_btn_next_img: steps != 3, pub_btn_finish_img: steps == 3 }">
               {{ steps == 3 ? "确认上传" : "下一步" }}
             </button>
@@ -2405,7 +2405,7 @@
           <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
             请输入题目内容
             <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption"
-              style="margin-left: 10px">智能粘贴</button>
+              style="margin-left: 10px" v-if="isPasteChoice">智能粘贴</button>
           </div>
           <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
             <div class="a_add_checkType">
@@ -3346,6 +3346,7 @@ export default {
       courseUserid: "",
       timer: null,
       timer2: null,
+      pasteTimer:null,
       checkId: "",
       isDelete: 1,
       addindex: 0,
@@ -3361,6 +3362,11 @@ export default {
       easyArray: [2, 4],
       sourceData: {},
       videoJson: {},
+      isBtnDisplay:false,
+      isStepDisplay:false,
+      isPasteStage:false,
+      isPasteTask:false,
+      isPasteChoice:false
     };
   },
   directives: {
@@ -3573,6 +3579,12 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    btnDisplay(bool){
+      this.isBtnDisplay = bool
+    },
+    stepDisplay(bool){
+      this.isStepDisplay = bool
+    },
     scrollChange() {
       this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
     },
@@ -7889,18 +7901,38 @@ export default {
           return mix;
       }
     },
+    getPaste(){
+      let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
+      if (!iframe) {
+        return;
+      }
+      let copyData = iframe.contentWindow.copyData;
+      if (copyData && copyData.stageData && copyData.stageData.length) {
+        this.isPasteStage = true
+      }
+      if (copyData && copyData.selectData.length) {
+        this.isPasteChoice = true
+      }
+      if (copyData && copyData.tasksData && copyData.tasksData.length) {
+        this.isPasteTask = true
+      }
+    }
   },
   beforeDestroy() {
     clearTimeout(this.timer);
     this.timer = null;
     clearInterval(this.timer2);
     this.timer2 = null;
+    clearInterval(this.pasteTimer);
+    this.pasteTimer = null;
   },
   beforeRouteLeave(to, from, next) {
     clearTimeout(this.timer);
     this.timer = null;
     clearInterval(this.timer2);
     this.timer2 = null;
+    clearInterval(this.pasteTimer);
+    this.pasteTimer = null;
     next();
   },
   created() {
@@ -7915,6 +7947,9 @@ export default {
     this.timer2 = setInterval(() => {
       this.selectEva();
     }, 5000);
+    this.pasteTimer = setInterval(() => {
+      this.getPaste();
+    }, 1000);
     setTimeout(() => {
       this.selectCourseDetail();
     }, 500);
@@ -8163,7 +8198,7 @@ export default {
   width: calc(100%);
   display: flex;
   justify-content: center;
-  height: 70px;
+  height: 80px;
   align-items: center;
   background: #fff;
   margin: 0 auto;
@@ -8171,6 +8206,21 @@ export default {
   box-sizing: border-box;
 }
 
+.info_btnBox2 {
+  width: calc(100%);
+  display: flex;
+  justify-content: center;
+  height: 20px;
+  align-items: center;
+  background: #fff;
+  margin: 0 auto;
+  border-top: 2px solid rgb(228, 232, 237);
+  box-sizing: border-box;
+  overflow: hidden;
+  cursor: pointer;
+}
+
+
 .info_btn+.info_btn {
   margin-left: 15px;
 }
@@ -8421,7 +8471,7 @@ export default {
   border: 1px solid #CAD1DC;
   font-size: 16px;
   resize: none;
-  background: #fcfcfc;
+  background: #f6f6f6;
   font-family: 'Microsoft YaHei';
 }
 
@@ -9169,6 +9219,23 @@ ol {
   box-sizing: border-box;
 }
 
+.stepTop2 {
+  width: 100%;
+  /* border-radius: 10px; */
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  flex-wrap: nowrap;
+  background: #fff;
+  /* top: 18%; */
+  height: 20px;
+  border-bottom: 2px solid rgb(228, 232, 237);
+  box-sizing: border-box;
+  overflow: hidden;
+  cursor: pointer;
+}
+
+
 .stepTop>div img {
   width: 100%;
 }
@@ -9642,7 +9709,7 @@ ol {
 
 .chooseWho {
   display: flex;
-  width: 380px;
+  width: 410px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-between;
@@ -9816,7 +9883,7 @@ ol {
   flex-direction: row;
   align-items: center;
   justify-content: center;
-  border: 1px dashed;
+  border: 2px dashed #CAD1DC;
   border-radius: 5px;
   height: 50px;
   margin: 35px auto 0;
@@ -9825,7 +9892,7 @@ ol {
 
 .addToolFun2 {
   display: flex;
-  width: 100%;
+  width: 150px;
   border: 2px dashed #CAD1DC;
   flex-direction: row;
   align-items: center;
@@ -11074,4 +11141,12 @@ ol {
   border-color: #409EFF;
   outline: 0;
 }
+
+.addEditor >>> .text{
+  height:auto;
+  min-height: 100px;
+}
+.addEditor >>> .w-e-text-container{
+  min-height: 100px;
+}
 </style>

+ 86 - 43
src/components/pages/easy/addCourse.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="pb_content">
+  <div class="pb_content" style="background: #d2d9e2;">
     <div class="pb_content_body" style="position: relative; margin: 0">
       <div class="right">
         <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
@@ -24,7 +24,7 @@
               </el-breadcrumb>
             </div>
           </div>
-          <div class="rightBox" style="padding: 30px 10px;" v-if="this.steps == 1" @mousewheel="scrollChange">
+          <div class="rightBox" style="padding: 30px 10px;" :style="{height:(!isBtnDisplay) ? 'calc(100% - 70px)' : 'calc(100% - 120px)'}" v-if="this.steps == 1" @mousewheel="scrollChange">
             <div class="updateMask" :style="{
               height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
             }" v-if="cid && userid != courseUserid && role != '1'"></div>
@@ -33,7 +33,7 @@
                 <div class="course_input_box">
                   <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon.png" /></div>
                   <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
-                    style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
+                    style="border: 1px solid #CAD1DC;background: #f6f6f6;" />
                   <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
                 </div>
               </div>
@@ -129,7 +129,7 @@
                 <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" />
                 </div>
                 <span style="margin:0 10px">上传课程内容</span>
-                <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px">智能粘贴</button>
+                <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px" v-if="isPasteTask">智能粘贴</button>
               </div>
               <div style="padding: 0 0 0 20px; display: flex">
                 <div class="course_left">
@@ -383,14 +383,14 @@
                                     itemTaskIndex
                                   ].task
                                   " />
-                                <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
+                                <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
                                 <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
                             </div>
                             <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
                           </div>
                         </div>
                       </div>
-                      <div style="margin: 25px 0" v-if="!itemTask.isFold2">
+                      <div style="margin: 25px 0" v-if="itemTask.isFold2">
                         <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
                           itemTaskIndex
                         ].taskDetail
@@ -405,11 +405,6 @@
                           <div class="leftTools" style="
                               width: 100%;
                             " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
-                            <div>
-                              <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input" style="
-                                  margin: 0 0 20px 0;
-                                " v-model="itemTool.toolDetail"></textarea>
-                            </div>
                             <div style="
                                 display: flex;
                                 flex-direction: row;
@@ -423,65 +418,64 @@
                               </div>
                               <div class="chooseWho">
                                 <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 0), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 0),(itemTool.isFold3 = true), $forceUpdate()">
                                   互动类
                                 </div>
                                 <div :class="itemTool.toolType == 1
                                     ? 'isChooseActive'
                                     : ''
                                   " @click="
-    (itemTool.toolType = 1), $forceUpdate()
-    ">
+                                  (itemTool.toolType = 1),(itemTool.isFold3 = true), $forceUpdate()
+                                  ">
                                   思维类
                                 </div>
                                 <div :class="itemTool.toolType == 6
                                     ? 'isChooseActive'
                                     : ''
                                   " @click="
-    (itemTool.toolType = 6), $forceUpdate()
-    ">
+                                  (itemTool.toolType = 6),(itemTool.isFold3 = true), $forceUpdate()
+                                  ">
                                   协作类
                                 </div>
                                 <div :class="itemTool.toolType == 2
                                     ? 'isChooseActive'
                                     : ''
                                   " @click="
-    (itemTool.toolType = 2), $forceUpdate()
-    ">
+                                  (itemTool.toolType = 2),(itemTool.isFold3 = true), $forceUpdate()
+                                  ">
                                   测评类
                                 </div>
                                 <div :class="itemTool.toolType == 7
                                     ? 'isChooseActive'
                                     : ''
                                   " @click="
-    (itemTool.toolType = 7), $forceUpdate()
-    ">
+                                    (itemTool.toolType = 7),(itemTool.isFold3 = true), $forceUpdate()
+                                    ">
                                   评价类
                                 </div>
                                 <div :class="itemTool.toolType == 3
                                     ? 'isChooseActive'
                                     : ''
                                   " @click="
-    (itemTool.toolType = 3), $forceUpdate()
-    ">
-                                  学科
+                                    (itemTool.toolType = 3),(itemTool.isFold3 = true), $forceUpdate()
+                                    ">
+                                  编程
                                 </div>
-                                <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 5), $forceUpdate()">
+                                <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 5),(itemTool.isFold3 = true), $forceUpdate()">
                                   学科类
                                 </div>
-                                <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
+                                <!-- <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
                                   " @click="(itemTool.toolType = 4), $forceUpdate()">
                                   其他
                                 </div> -->
                               </div>
-                              <div v-if="!itemTool.isFold3" class="show_toolD show" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
+                              <div v-if="itemTool.isFold3" class="show_toolD show" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
                               <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
                               <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
                                 v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
                             </div>
-
-                            <div style="min-height: 163px" v-show="!itemTool.isFold3">
+                            <div style="min-height: 163px" v-show="itemTool.isFold3">
                               <div class="toolSort" v-if="itemTool.toolType == 0">
                                 <!-- <div class="tool">
                               <div
@@ -589,7 +583,7 @@
                                     </div>
                                   </div>
                                 </div> -->
-                                <div class="tool">
+                                <!-- <div class="tool">
                                   <div class="whiteBIcon" @click="
                                     openTools(itemTaskIndex, 62, toolIndex)
                                     ">
@@ -605,7 +599,7 @@
                                       <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
-                                </div>
+                                </div> -->
                               </div>
                               <div class="toolSort" v-if="itemTool.toolType == 1">
                                 <div class="tool">
@@ -1105,6 +1099,8 @@
                                     </div>
                                   </div>
                                 </div>
+                              </div>
+                              <div class="toolSort" v-if="itemTool.toolType == 5">
                                 <div class="tool">
                                   <div class="whiteBIcon" @click="
                                     addTools(28, itemTaskIndex, toolIndex)
@@ -1207,9 +1203,7 @@
                                     </div>
                                   </div>
                                 </div>
-                              </div>
-                              <div class="toolSort" v-if="itemTool.toolType == 5">
-                                <div class="tool">
+                                <!-- <div class="tool">
                                   <div class="whiteBIcon" @click="
                                     addTools(28, itemTaskIndex, toolIndex)
                                     ">
@@ -1361,7 +1355,7 @@
                                       <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
-                                </div>
+                                </div> -->
                               </div>
                               <div class="toolSort" v-if="itemTool.toolType == 7">
                                 <div class="tool">
@@ -1431,6 +1425,11 @@
                             </div> -->
                               </div>
                             </div>
+                            <div v-show="itemTool.isFold3">
+                              <textarea rows="3" type="text" v-autoHeight="87" placeholder="添加工具描述" class="binfo_input" style="
+                                  margin: 0 0 20px 0;
+                                " v-model="itemTool.toolDetail"></textarea>
+                            </div>
                           </div>
                           <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
                             <div class="addToolImg">
@@ -3208,11 +3207,11 @@
               </div> -->
             </div>
           </div>
-          <div class="info_btnBox">
-            <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps">
+          <div :class="{info_btnBox:isBtnDisplay,info_btnBox2:!isBtnDisplay}" @mouseenter="btnDisplay(true)"  @mouseleave="btnDisplay(false)">
+            <button class="c_pub_button_return pub_btn_return_img" @click="lastSteps" v-if="isBtnDisplay">
               返回课程
             </button>
-            <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="this.steps == 1">
+            <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="isBtnDisplay">
               确认上传
             </button>
           </div>
@@ -3477,7 +3476,7 @@
         <div class="a_addBox">
           <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
             请输入题目内容
-            <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px">智能粘贴</button>
+            <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px" v-if="isPasteChoice">智能粘贴</button>
           </div>
           <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
             <div class="a_add_checkType">
@@ -4390,6 +4389,7 @@ export default {
       courseUserid: "",
       timer: null,
       timer2: null,
+      pasteTimer:null,
       checkId: "",
       isDelete: 1,
       addindex: 0,
@@ -4405,6 +4405,9 @@ export default {
       easyArray: [2, 4],
       sourceData: {},
       videoJson: {},
+      isBtnDisplay:false,
+      isPasteTask:false,
+      isPasteChoice:false
     };
   },
   directives: {
@@ -4617,6 +4620,9 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    btnDisplay(bool){
+      this.isBtnDisplay = bool
+    },
     scrollChange() {
       this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
       // document.querySelector('.course_left').scrollHeight
@@ -8808,18 +8814,38 @@ export default {
           return mix;
       }
     },
+    getPaste(){
+      let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
+      if (!iframe) {
+        return;
+      }
+      let copyData = iframe.contentWindow.copyData;
+      // if (copyData && copyData.stageData && copyData.stageData.length) {
+      //   this.isPasteStage = true
+      // }
+      if (copyData && copyData.selectData.length) {
+        this.isPasteChoice = true
+      }
+      if (copyData && copyData.tasksData && copyData.tasksData.length) {
+        this.isPasteTask = true
+      }
+    }
   },
   beforeDestroy() {
     clearTimeout(this.timer);
     this.timer = null;
     clearInterval(this.timer2);
     this.timer2 = null;
+    clearInterval(this.pasteTimer);
+    this.pasteTimer = null;
   },
   beforeRouteLeave(to, from, next) {
     clearTimeout(this.timer);
     this.timer = null;
     clearInterval(this.timer2);
     this.timer2 = null;
+    clearInterval(this.pasteTimer);
+    this.pasteTimer = null;
     next();
   },
   created() {
@@ -8834,6 +8860,9 @@ export default {
     this.timer2 = setInterval(() => {
       this.selectEva();
     }, 5000);
+    this.pasteTimer = setInterval(() => {
+      this.getPaste();
+    }, 1000);
     setTimeout(() => {
       this.selectCourseDetail();
     }, 500);
@@ -9099,6 +9128,20 @@ export default {
   border-radius: 0px 0 5px 5px;
 }
 
+.info_btnBox2 {
+  width: calc(100%);
+  display: flex;
+  justify-content: center;
+  height: 20px;
+  align-items: center;
+  background: #fff;
+  margin: 0 auto;
+  border-top: 2px solid rgb(228, 232, 237);
+  box-sizing: border-box;
+  overflow: hidden;
+  cursor: pointer;
+}
+
 .info_btn+.info_btn {
   margin-left: 15px;
 }
@@ -9344,7 +9387,7 @@ export default {
   border: 1px solid #CAD1DC;
   font-size: 16px;
   resize: none;
-  background: #fcfcfc;
+  background: #f6f6f6;
   font-family: 'Microsoft YaHei';
 }
 
@@ -10510,7 +10553,7 @@ ol {
 
 .chooseWho {
   display: flex;
-  width: 380px;
+  width: 410px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-between;
@@ -10683,7 +10726,7 @@ ol {
 
 .addToolFun2 {
   display: flex;
-  width: 100%;
+  width: 150px;
   border: 2px dashed #CAD1DC;
   flex-direction: row;
   align-items: center;
@@ -11642,7 +11685,7 @@ ol {
 
 .navBottom {
   background: #F0F4FA;
-  height: 300px;
+  height: 75vh;
   overflow: auto;
 }
 

+ 154 - 198
src/components/pages/task/addCourse.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="pb_content">
+  <div class="pb_content" style="background: #d2d9e2;">
     <div class="pb_content_body" style="position: relative; margin: 0">
       <div class="right">
         <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
@@ -31,6 +31,7 @@
           </div>
           <div
             class="rightBox"
+            :style="{height:(!isBtnDisplay) ? 'calc(100% - 70px)' : 'calc(100% - 120px)'}"
             style="padding: 30px 10px;"
             v-if="this.steps == 1"
             @mousewheel="scrollChange"
@@ -47,7 +48,7 @@
                 <div class="course_input_box">
                   <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon.png" /></div>
                   <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
-                    style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
+                    style="border: 1px solid #CAD1DC;background: #f6f6f6;" />
                   <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
                 </div>
               </div>
@@ -151,7 +152,7 @@
               <div class="right_title">
                 <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" /></div>
                 <span style="margin:0 10px">上传课程内容</span>
-                <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px">智能粘贴</button>
+                <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px" v-if="isPasteTask">智能粘贴</button>
               </div>
               <div style="padding: 0 0 0 20px; display: flex">
                 <div class="course_left">
@@ -250,7 +251,7 @@
                                   ].task
                                 "
                               />
-                              <div v-if="!itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
+                              <div v-if="itemTask.isFold2" class="show_taskD show" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起任务描述</div>
                                 <div v-else class="show_taskD" @click="fold2(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />展开任务描述</div>
                             </div>
                             <div
@@ -261,7 +262,7 @@
                           </div>
                         </div>
                       </div>
-                      <div style="margin: 25px 0" v-if="!itemTask.isFold2">
+                      <div style="margin: 25px 0 0" v-if="itemTask.isFold2">
                         <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
                           itemTaskIndex
                         ].taskDetail
@@ -282,7 +283,7 @@
                       <div
                         class="basic_box"
                         style="
-                          padding: 0 !important;
+                          padding: 25px 0 0 !important;
                         "
                       >
                         <div
@@ -549,19 +550,6 @@
                             v-for="(itemTool, toolIndex) in itemTask.toolChoose"
                             :key="toolIndex"
                           >
-                            <div>
-                              <textarea
-                                v-autoHeight="87"
-                                rows="3"
-                                type="text"
-                                placeholder="添加工具描述"
-                                class="binfo_input"
-                                style="
-                                  margin: 0 0 20px 0;
-                                "
-                                v-model="itemTool.toolDetail"
-                              ></textarea>
-                            </div>
                             <div
                               style="
                                 display: flex;
@@ -579,7 +567,7 @@
                               </div>
                               <div class="chooseWho">
                                 <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 0), $forceUpdate()">
+                                  " @click="(itemTool.toolType = 0),(itemTool.isFold3 = true), $forceUpdate()">
                                   互动类
                                 </div>
                                 <div
@@ -589,7 +577,7 @@
                                       : ''
                                   "
                                   @click="
-                                    (itemTool.toolType = 1), $forceUpdate()
+                                    (itemTool.toolType = 1),(itemTool.isFold3 = true), $forceUpdate()
                                   "
                                 >
                                   思维类
@@ -601,7 +589,7 @@
                                       : ''
                                   "
                                   @click="
-                                    (itemTool.toolType = 6), $forceUpdate()
+                                    (itemTool.toolType = 6),(itemTool.isFold3 = true), $forceUpdate()
                                   "
                                 >
                                   协作类
@@ -613,7 +601,7 @@
                                       : ''
                                   "
                                   @click="
-                                    (itemTool.toolType = 2), $forceUpdate()
+                                    (itemTool.toolType = 2),(itemTool.isFold3 = true), $forceUpdate()
                                   "
                                 >
                                   测评类
@@ -625,7 +613,7 @@
                                       : ''
                                   "
                                   @click="
-                                    (itemTool.toolType = 7), $forceUpdate()
+                                    (itemTool.toolType = 7),(itemTool.isFold3 = true), $forceUpdate()
                                   "
                                 >
                                   评价类
@@ -637,21 +625,21 @@
                                       : ''
                                   "
                                   @click="
-                                    (itemTool.toolType = 3), $forceUpdate()
+                                    (itemTool.toolType = 3),(itemTool.isFold3 = true), $forceUpdate()
                                   "
                                 >
-                                  学科
+                                  编程
                                 </div>
-                                <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
-                                  " @click="(itemTool.toolType = 5), $forceUpdate()">
+                                 <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
+                                  " @click="(itemTool.toolType = 5),(itemTool.isFold3 = true), $forceUpdate()">
                                   学科类
                                 </div>
-                                <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
+                                <!--<div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
                                   " @click="(itemTool.toolType = 4), $forceUpdate()">
                                   其他
                                 </div> -->
                               </div>
-                              <div v-if="!itemTool.isFold3" class="show_toolD show" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
+                              <div v-if="itemTool.isFold3" class="show_toolD show" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />收起工具栏</div>
                               <div v-else class="show_toolD" @click="fold3(itemTaskIndex, toolIndex)" :style="{right:itemTask.toolChoose.length > 1? '45px':'0px'}"><img src="../../../assets/icon/new/icon-slide.png" />展开工具栏</div>
                               <div
                                 class="remove"
@@ -661,7 +649,7 @@
                               ></div>
                             </div>
 
-                            <div style="min-height: 163px"  v-show="!itemTool.isFold3">
+                            <div style="min-height: 163px" v-show="itemTool.isFold3">
                               <div
                                 class="toolSort"
                                 v-if="itemTool.toolType == 0"
@@ -787,7 +775,7 @@
                                     </div>
                                   </div>
                                 </div> -->
-                                <div class="tool">
+                                <!-- <div class="tool">
                                   <div
                                     class="whiteBIcon"
                                     @click="
@@ -818,7 +806,7 @@
                                       /><span>已选择</span>
                                     </div>
                                   </div>
-                                </div>
+                                </div> -->
                               </div>
                               <div
                                 class="toolSort"
@@ -1645,204 +1633,114 @@
                                     </div>
                                   </div>
                                 </div>
-                                <div class="tool">
-                                  <div
-                                    class="whiteBIcon"
-                                    @click="
-                                      addTools(28, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/secondToolList/translation.png"
-                                      alt
-                                    />
+                              </div>
+                              <div
+                                class="toolSort"
+                                v-if="itemTool.toolType == 5"
+                              >
+                              <div class="tool">
+                                  <div class="whiteBIcon" @click="
+                                    addTools(28, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/translation.png" alt />
                                     <div style="margin: 5px 0">翻译</div>
                                   </div>
-                                  <div
-                                    class="check"
-                                    @click="
-                                      addTools(28, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/checkNo.png"
-                                      alt
-                                      v-if="itemTool.tool.indexOf(28) == -1"
-                                    />
+                                  <div class="check" @click="
+                                    addTools(28, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(28) == -1" />
                                     <div class="checkDiv" v-else>
-                                      <img
-                                        src="../../../assets/icon/checkedIs.png"
-                                        alt
-                                      /><span>已选择</span>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
                                 </div>
                                 <div class="tool">
-                                  <div
-                                    class="whiteBIcon"
-                                    @click="
-                                      addTools(31, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/secondToolList/networkPanel.png"
-                                      alt
-                                    />
+                                  <div class="whiteBIcon" @click="
+                                    addTools(31, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
                                     <div style="margin: 5px 0">数字画板</div>
                                   </div>
-                                  <div
-                                    class="check"
-                                    @click="
-                                      addTools(31, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/checkNo.png"
-                                      alt
-                                      v-if="itemTool.tool.indexOf(31) == -1"
-                                    />
+                                  <div class="check" @click="
+                                    addTools(31, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(31) == -1" />
                                     <div class="checkDiv" v-else>
-                                      <img
-                                        src="../../../assets/icon/checkedIs.png"
-                                        alt
-                                      /><span>已选择</span>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
                                 </div>
                                 <div class="tool">
-                                  <div
-                                    class="whiteBIcon"
-                                    @click="
-                                      addTools(39, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/secondToolList/GeoGebra.png"
-                                      alt
-                                    />
+                                  <div class="whiteBIcon" @click="
+                                    addTools(39, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
                                     <div style="margin: 5px 0">GeoGebra</div>
                                   </div>
-                                  <div
-                                    class="check"
-                                    @click="
-                                      addTools(39, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/checkNo.png"
-                                      alt
-                                      v-if="itemTool.tool.indexOf(39) == -1"
-                                    />
+                                  <div class="check" @click="
+                                    addTools(39, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(39) == -1" />
                                     <div class="checkDiv" v-else>
-                                      <img
-                                        src="../../../assets/icon/checkedIs.png"
-                                        alt
-                                      /><span>已选择</span>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
                                 </div>
                                 <div class="tool">
-                                  <div
-                                    class="whiteBIcon"
-                                    @click="
-                                      addTools(66, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/secondToolList/formulaEdi.png"
-                                      alt
-                                    />
+                                  <div class="whiteBIcon" @click="
+                                    addTools(66, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/formulaEdi.png" alt />
                                     <div style="margin: 5px 0">公式编辑</div>
                                   </div>
-                                  <div
-                                    class="check"
-                                    @click="
-                                      addTools(66, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/checkNo.png"
-                                      alt
-                                      v-if="itemTool.tool.indexOf(66) == -1"
-                                    />
+                                  <div class="check" @click="
+                                    addTools(66, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(66) == -1" />
                                     <div class="checkDiv" v-else>
-                                      <img
-                                        src="../../../assets/icon/checkedIs.png"
-                                        alt
-                                      /><span>已选择</span>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
                                 </div>
                                 <div class="tool">
-                                  <div
-                                    class="whiteBIcon"
-                                    @click="
-                                      addTools(67, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/secondToolList/molStr.png"
-                                      alt
-                                    />
+                                  <div class="whiteBIcon" @click="
+                                    addTools(67, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/molStr.png" alt />
                                     <div style="margin: 5px 0">分子结构</div>
                                   </div>
-                                  <div
-                                    class="check"
-                                    @click="
-                                      addTools(67, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/checkNo.png"
-                                      alt
-                                      v-if="itemTool.tool.indexOf(67) == -1"
-                                    />
+                                  <div class="check" @click="
+                                    addTools(67, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(67) == -1" />
                                     <div class="checkDiv" v-else>
-                                      <img
-                                        src="../../../assets/icon/checkedIs.png"
-                                        alt
-                                      /><span>已选择</span>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
                                 </div>
                                 <div class="tool">
-                                  <div
-                                    class="whiteBIcon"
-                                    @click="
-                                      addTools(68, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/secondToolList/timeAxis.png"
-                                      alt
-                                    />
+                                  <div class="whiteBIcon" @click="
+                                    addTools(68, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
                                     <div style="margin: 5px 0">时间轴</div>
                                   </div>
-                                  <div
-                                    class="check"
-                                    @click="
-                                      addTools(68, itemTaskIndex, toolIndex)
-                                    "
-                                  >
-                                    <img
-                                      src="../../../assets/icon/checkNo.png"
-                                      alt
-                                      v-if="itemTool.tool.indexOf(68) == -1"
-                                    />
+                                  <div class="check" @click="
+                                    addTools(68, itemTaskIndex, toolIndex)
+                                    ">
+                                    <img src="../../../assets/icon/checkNo.png" alt
+                                      v-if="itemTool.tool.indexOf(68) == -1" />
                                     <div class="checkDiv" v-else>
-                                      <img
-                                        src="../../../assets/icon/checkedIs.png"
-                                        alt
-                                      /><span>已选择</span>
+                                      <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
                                     </div>
                                   </div>
                                 </div>
-                              </div>
-                              <div
-                                class="toolSort"
-                                v-if="itemTool.toolType == 5"
-                              >
-                                <div class="tool">
+                                <!-- <div class="tool">
                                   <div
                                     class="whiteBIcon"
                                     @click="
@@ -2129,7 +2027,7 @@
                                       /><span>已选择</span>
                                     </div>
                                   </div>
-                                </div>
+                                </div> -->
                               </div>
                               <div
                                 class="toolSort"
@@ -2250,6 +2148,19 @@
                             </div> -->
                               </div>
                             </div>
+                            <div v-show="itemTool.isFold3">
+                              <textarea
+                                v-autoHeight="87"
+                                rows="3"
+                                type="text"
+                                placeholder="添加工具描述"
+                                class="binfo_input"
+                                style="
+                                  margin: 0 0 20px 0;
+                                "
+                                v-model="itemTool.toolDetail"
+                              ></textarea>
+                            </div>
                           </div>
                           <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
                             <div class="addToolImg">
@@ -5248,14 +5159,15 @@
               </div> -->
             </div>
           </div>
-          <div class="info_btnBox">
+          <div :class="{info_btnBox:isBtnDisplay,info_btnBox2:!isBtnDisplay}" @mouseenter="btnDisplay(true)"  @mouseleave="btnDisplay(false)">
             <button
+              v-if="isBtnDisplay"
               class="c_pub_button_return pub_btn_return_img"
               @click="lastSteps"
             >
               返回课程
             </button>
-            <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="this.steps == 1">
+            <button v-if="isBtnDisplay" class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps">
               确认上传
             </button>
           </div>
@@ -5669,7 +5581,7 @@
         <div class="a_addBox">
           <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
             请输入题目内容
-            <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px">智能粘贴</button>
+            <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px" v-if="isPasteChoice">智能粘贴</button>
           </div>
           <div
             class="a_add_box"
@@ -7058,6 +6970,7 @@ export default {
       courseUserid: "",
       timer: null,
       timer2: null,
+      pasteTimer:null,
       checkId: "",
       isDelete: 1,
       addindex: 0,
@@ -7073,6 +6986,9 @@ export default {
       easyArray: [2, 4],
       sourceData: {},
       videoJson: {},
+      isBtnDisplay:false,
+      isPasteTask:false,
+      isPasteChoice:false
     };
   },
   directives: {
@@ -7285,6 +7201,9 @@ export default {
     previewImg(url) {
       this.$hevueImgPreview(url);
     },
+    btnDisplay(bool){
+      this.isBtnDisplay = bool
+    },
     scrollChange() {
       this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
       // document.querySelector('.course_left').scrollHeight
@@ -11435,18 +11354,38 @@ export default {
           return mix;
       }
     },
+    getPaste(){
+      let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
+      if (!iframe) {
+        return;
+      }
+      let copyData = iframe.contentWindow.copyData;
+      // if (copyData && copyData.stageData && copyData.stageData.length) {
+      //   this.isPasteStage = true
+      // }
+      if (copyData && copyData.selectData.length) {
+        this.isPasteChoice = true
+      }
+      if (copyData && copyData.tasksData && copyData.tasksData.length) {
+        this.isPasteTask = true
+      }
+    }
   },
   beforeDestroy() {
     clearTimeout(this.timer);
     this.timer = null;
     clearInterval(this.timer2);
     this.timer2 = null;
+    clearInterval(this.pasteTimer);
+    this.pasteTimer = null;
   },
   beforeRouteLeave(to, from, next) {
     clearTimeout(this.timer);
     this.timer = null;
     clearInterval(this.timer2);
     this.timer2 = null;
+    clearInterval(this.pasteTimer);
+    this.pasteTimer = null;
     next();
   },
   created() {
@@ -11461,6 +11400,9 @@ export default {
     this.timer2 = setInterval(() => {
       this.selectEva();
     }, 5000);
+    this.pasteTimer = setInterval(() => {
+      this.getPaste();
+    }, 1000);
     setTimeout(() => {
       this.selectCourseDetail();
     }, 500);
@@ -11725,6 +11667,20 @@ export default {
   border-radius: 0px 0 5px 5px;
 }
 
+.info_btnBox2 {
+  width: calc(100%);
+  display: flex;
+  justify-content: center;
+  height: 20px;
+  align-items: center;
+  background: #fff;
+  margin: 0 auto;
+  border-top: 2px solid rgb(228, 232, 237);
+  box-sizing: border-box;
+  overflow: hidden;
+  cursor: pointer;
+}
+
 .info_btn+.info_btn {
   margin-left: 15px;
 }
@@ -11971,7 +11927,7 @@ export default {
   border: 1px solid #CAD1DC;
   font-size: 16px;
   resize: none;
-  background: #fcfcfc;
+  background: #f6f6f6;
   font-family: 'Microsoft YaHei';
 }
 
@@ -13139,7 +13095,7 @@ ol {
 
 .chooseWho {
   display: flex;
-  width: 380px;
+  width: 410px;
   flex-direction: row;
   flex-wrap: nowrap;
   justify-content: space-between;
@@ -13312,7 +13268,7 @@ ol {
 
 .addToolFun2 {
   display: flex;
-  width: 100%;
+  width: 150px;
   border: 2px dashed #CAD1DC;
   flex-direction: row;
   align-items: center;
@@ -14275,7 +14231,7 @@ ol {
 
 .navBottom {
   background: #F0F4FA;
-  height: 300px;
+  height: 75vh;
   overflow: auto;
 }
 

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