lsc hace 9 meses
padre
commit
50556d1e62

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.66c37f537aa1048a7f586a30cd6c0754.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.d5f0d79dbb0d92c052d4.js></script><script type=text/javascript src=./static/js/app.4b2772760ff6ed25cc4d.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.0a244d8ed7b630a0e7defc6f9ad5b003.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.d5f0d79dbb0d92c052d4.js></script><script type=text/javascript src=./static/js/app.feafa4415508799db9a3.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.0a244d8ed7b630a0e7defc6f9ad5b003.css


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/css/app.0a244d8ed7b630a0e7defc6f9ad5b003.css.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/app.feafa4415508799db9a3.js


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/app.feafa4415508799db9a3.js.map


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


+ 501 - 34
src/components/pages/aiAddCourse/addCourse.vue

@@ -635,7 +635,7 @@
                 </div>
               </div>
             </div>
-            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-show="false">
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="false">
               <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
                 <div class="c_info_title">
                   补充描述
@@ -692,7 +692,8 @@
                   <div class="outline_detail" v-loading="cpoteLoading.cpote1" element-loading-text="小可正在努力生成中,请稍等...">
                     <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入概念群"
                       v-model="cpote.cpote1" v-if="cpote.cpote1s"></textarea>
-                    <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote1)" v-else></div>
+                      <div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote1" v-else-if="cpotetLoading.cpote1"></div>
+                      <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote1)" v-else></div>
                     <div class="op_box">
                       <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
                       <div style="display: flex;">
@@ -717,7 +718,8 @@
                   <div class="outline_detail" v-loading="cpoteLoading.cpote2" element-loading-text="小可正在努力生成中,请稍等...">
                     <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入问题链"
                       v-model="cpote.cpote2" v-if="cpote.cpote2s"></textarea>
-                    <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote2)" v-else></div>
+                      <div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote2" v-else-if="cpotetLoading.cpote2"></div>
+                      <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote2)" v-else></div>
                     <div class="op_box">
                       <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
                       <div style="display: flex;">
@@ -742,7 +744,8 @@
                   <div class="outline_detail" v-loading="cpoteLoading.cpote3" element-loading-text="小可正在努力生成中,请稍等...">
                     <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入目标层"
                       v-model="cpote.cpote3" v-if="cpote.cpote3s"></textarea>
-                    <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote3)" v-else></div>
+                      <div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote3" v-else-if="cpotetLoading.cpote3"></div>
+                      <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote3)" v-else></div>
                     <div class="op_box">
                       <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
                       <div style="display: flex;">
@@ -767,6 +770,7 @@
                   <div class="outline_detail" v-loading="cpoteLoading.cpote4" element-loading-text="小可正在努力生成中,请稍等...">
                     <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入任务簇"
                       v-model="cpote.cpote4" v-if="cpote.cpote4s"></textarea>
+                      <div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="cpote.cpote4" v-else-if="cpotetLoading.cpote4"></div>
                       <div class="markBox vditor-reset" v-html="MarkdownT(cpote.cpote4)" v-else></div>
                     <div class="op_box">
                       <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
@@ -804,6 +808,7 @@
                     <div class="outline_detail" v-loading="taskDetailLoading5.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
                       <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入教案"
                         v-model="item.taskDetail3" v-if="item.isTask3"></textarea>
+                      <div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="item.taskDetail3" v-else-if="ttaskDetailLoading5.indexOf('task-' + index) !== -1"></div>
                       <div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail3)" v-else></div>
                       <div class="op_box">
                         <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
@@ -1031,7 +1036,7 @@
                   top: istemplate == 1 ? '0' : 'unset'
                 }">
                   <!-- <div class="navTop">辅助导航</div> -->
-                  <div class="navBottom" v-if="courseState == 4">
+                  <div class="navBottom" v-if="courseState == 4 || courseState == 5">
                     <!-- <div class="navTask noImage" v-if="unitJson[unitIndex].dyName">
                       <div class="nt_taskBox" style="width: 100%;">
                         <div class="nt_taskTitle"
@@ -1282,7 +1287,7 @@
 
                   <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
                     :key="index">
-                    <div style="position: relative;
+                    <div v-if="courseState == 4" style="position: relative;
                             background: #fff;
                             box-sizing: border-box;
                             padding: 1px 20px 10px;
@@ -1687,6 +1692,446 @@
                             </div>
                           </div>
                         </div>
+                        <div
+                          style="position: relative"
+                          v-if="courseState == 5"
+                        >
+                          <div
+                            style="
+                              display: flex;
+                              flex-direction: row;
+                              justify-content: space-between;
+                              align-items: center;
+                            "
+                            :style="{
+                              margin: !itemTask.isFoldchapter
+                                ? '20px 0 10px'
+                                : '20px 0 0',
+                            }"
+                          >
+                            <div
+                              style="margin-bottom: 10px"
+                              class="lineTitle clineTitle"
+                            >
+                              学习内容
+                            </div>
+                            <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
+                              @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
+                            <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
+                                src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
+                            <!-- <div class="line"></div> -->
+                          </div>
+                          <!-- v-if="!itemTask.isFoldchapter" -->
+                          <div>
+                            <div
+                              class="add_chapters_box add_c_none"
+                              v-if="
+                                itemTask.chapterData &&
+                                itemTask.chapterData.length == 0
+                              "
+                            >
+                              <img
+                                src="../../../assets/icon/new/c_none.png"
+                                alt
+                              /><span>请添加学习内容</span>
+                            </div>
+                            <div
+                              v-else
+                              class="add_chapters_box"
+                              style="display: flex; flex-direction: column"
+                            >
+                              <div
+                                @dragstart="
+                                  dragStart(item1, index1, itemTaskIndex)
+                                "
+                                @dragover.prevent="
+                                  dragOver(index1, itemTaskIndex)
+                                "
+                                @dragend="dragEnd()"
+                                :draggable="
+                                  isdrag ==
+                                  'chapter-' + itemTaskIndex + '-' + index1
+                                "
+                                class="chapter_upload"
+                                v-for="(item1, index1) in itemTask.chapterData"
+                                :key="item1.id"
+                                @click="
+                                  getChapterData(
+                                    $event,
+                                    unitIndex,
+                                    index,
+                                    index1,
+                                    item1.type
+                                  )
+                                "
+                                :class="{
+                                  dragOverTop2:
+                                    newIndex === index1 &&
+                                    typeIndex ==
+                                      'chapter-' +
+                                        itemTaskIndex +
+                                        '-' +
+                                        index1 &&
+                                    oldIndex > index1 &&
+                                    dragType == 'drag',
+                                  dragOverBottom2:
+                                    newIndex === index1 &&
+                                    typeIndex ==
+                                      'chapter-' +
+                                        itemTaskIndex +
+                                        '-' +
+                                        index1 &&
+                                    oldIndex < index1 &&
+                                    dragType == 'drag',
+                                }"
+                              >
+                                <div
+                                  @mousedown="
+                                    isdrag =
+                                      'chapter-' + itemTaskIndex + '-' + index1
+                                  "
+                                  @mouseup="isdrag = ''"
+                                  @touchstart="
+                                    isdrag =
+                                      'chapter-' + itemTaskIndex + '-' + index1
+                                  "
+                                  @touchend="isdrag = ''"
+                                  class="chapter_upload_drag"
+                                ></div>
+                                <div
+                                  class="chapter_upload_o"
+                                  style="
+                                    position: relative;
+                                    display: flex;
+                                    align-items: center;
+                                  "
+                                >
+                                  <div
+                                    class="chapter_upload_l"
+                                    style="padding: 1px 0 0 10px"
+                                  >
+                                    <div
+                                      v-if="item1.type == 2"
+                                      class="chapter_upload_l_i2"
+                                    ></div>
+                                    <div
+                                      v-if="item1.type == 3"
+                                      class="chapter_upload_l_i3"
+                                      style="margin-left: 1px"
+                                    ></div>
+                                    <div
+                                      v-if="item1.type == 6"
+                                      class="chapter_upload_l_i6"
+                                      style="margin-left: 1px"
+                                    ></div>
+                                    <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
+                                    <div
+                                      v-if="item1.type == 8"
+                                      class="chapter_upload_l_i8"
+                                      style="margin-left: 1px"
+                                    ></div>
+                                    <div
+                                      v-if="item1.type == 14"
+                                      class="chapter_upload_l_i14"
+                                      style="margin-left: 1px"
+                                    ></div>
+                                    <div
+                                      v-if="item1.type == 12"
+                                      class="chapter_upload_l_i12"
+                                      style="margin-left: 1px"
+                                    ></div>
+                                    <div
+                                      v-if="item1.type == 13"
+                                      class="chapter_upload_l_i13"
+                                      style="margin-left: 1px"
+                                    ></div>
+                                  </div>
+                                  <div class="chapter_upload_n">
+                                    <input
+                                      readonly="true"
+                                      v-if="
+                                        item1.type == 2 ||
+                                        item1.type == 3 ||
+                                        item1.type == 12 ||
+                                        item1.type == 13 ||
+                                        item1.type == 7
+                                      "
+                                      :placeholder="item1.name"
+                                      @click="
+                                        updataVideoT(
+                                          $event,
+                                          unitIndex,
+                                          itemTaskIndex,
+                                          index1
+                                        )
+                                      "
+                                      style="
+                                        border: none;
+                                        outline: none;
+                                        width: 80%;
+                                        minwidth: 215px;
+                                        z-index: 99;
+                                        font-size: 14px;
+                                        white-space: nowrap;
+                                        overflow: hidden;
+                                        text-overflow: ellipsis;
+                                      "
+                                    />
+                                    <input
+                                      :placeholder="item1.name"
+                                      v-if="item1.type == 6"
+                                      style="
+                                        border: none;
+                                        outline: none;
+                                        width: 80%;
+                                        white-space: nowrap;
+                                        overflow: hidden;
+                                        text-overflow: ellipsis;
+                                      "
+                                      readonly="true"
+                                      @click="
+                                        selectAttText(itemTaskIndex, index1)
+                                      "
+                                    />
+                                    <input
+                                      :placeholder="
+                                        item1.title ? item1.title : '链接'
+                                      "
+                                      v-if="item1.type == 8"
+                                      style="
+                                        border: none;
+                                        outline: none;
+                                        width: 80%;
+                                        white-space: nowrap;
+                                        overflow: hidden;
+                                        text-overflow: ellipsis;
+                                      "
+                                      readonly="true"
+                                      @click="selectLine(itemTaskIndex, index1)"
+                                    />
+                                    <input
+                                      :placeholder="
+                                        item1.title ? item1.title : '链接'
+                                      "
+                                      v-if="item1.type == 14"
+                                      style="
+                                        border: none;
+                                        outline: none;
+                                        width: 80%;
+                                        white-space: nowrap;
+                                        overflow: hidden;
+                                        text-overflow: ellipsis;
+                                      "
+                                      readonly="true"
+                                      @click="
+                                        openUpdateSource(itemTaskIndex, index1)
+                                      "
+                                    />
+                                  </div>
+                                  <div class="chapter_upload_ic">
+                                    <div
+                                      class="chapter_upload_noSee"
+                                      v-if="item1.type == 12"
+                                    ></div>
+                                    <div
+                                      class="chapter_upload_ud"
+                                      style="z-index: 99"
+                                    >
+                                      <div
+                                        class="chapter_upload_up"
+                                        @click="
+                                          upCd(
+                                            $event,
+                                            unitIndex,
+                                            index,
+                                            itemTaskIndex,
+                                            index1
+                                          )
+                                        "
+                                      ></div>
+                                      <div
+                                        class="chapter_upload_down"
+                                        @click="
+                                          downCd(
+                                            $event,
+                                            unitIndex,
+                                            index,
+                                            itemTaskIndex,
+                                            index1
+                                          )
+                                        "
+                                      ></div>
+                                    </div>
+                                    <div
+                                      class="chapter_upload_ic_edit"
+                                      v-if="
+                                        item1.type == 2 ||
+                                        item1.type == 3 ||
+                                        item1.type == 12 ||
+                                        item1.type == 13 ||
+                                        item1.type == 7
+                                      "
+                                      @click.stop="
+                                        updataVideoT(
+                                          $event,
+                                          unitIndex,
+                                          itemTaskIndex,
+                                          index1
+                                        )
+                                      "
+                                    >
+                                      <div></div>
+                                    </div>
+                                    <div
+                                      class="chapter_upload_ic_edit"
+                                      v-if="item1.type == 6"
+                                      @click="
+                                        selectAttText(itemTaskIndex, index1)
+                                      "
+                                    >
+                                      <div></div>
+                                    </div>
+                                    <div
+                                      class="chapter_upload_ic_edit"
+                                      v-if="item1.type == 8"
+                                      @click="selectLine(itemTaskIndex, index1)"
+                                    >
+                                      <div></div>
+                                    </div>
+                                    <div
+                                      class="chapter_upload_ic_edit"
+                                      v-if="item1.type == 14"
+                                      @click="
+                                        openUpdateSource(itemTaskIndex, index1)
+                                      "
+                                    >
+                                      <div></div>
+                                    </div>
+                                    <div
+                                      class="chapter_upload_ic_r"
+                                      @click.stop="
+                                        deleteChapterData(
+                                          $event,
+                                          unitIndex,
+                                          index,
+                                          index1,
+                                          itemTaskIndex
+                                        )
+                                      "
+                                    >
+                                      <div></div>
+                                    </div>
+                                  </div>
+                                </div>
+                              </div>
+                            </div>
+                          </div>
+                          <!-- v-if="!itemTask.isFoldchapter" -->
+                          <div class="add_info_box" style="margin: 10px 0 0">
+                            <button
+                              class="c_pub_button_add pub_btn_add_img"
+                              @click="addImg($event)"
+                            >
+                              文件
+                              <input
+                                type="file"
+                                accept="*"
+                                style="display: none"
+                                v-if="inputShow"
+                                @change="
+                                  beforeUpload2(
+                                    $event,
+                                    unitIndex,
+                                    13,
+                                    itemTaskIndex
+                                  )
+                                "
+                              />
+                            </button>
+                            <button
+                              class="c_pub_button_add pub_btn_add_img"
+                              @click="addAttText(itemTaskIndex)"
+                            >
+                              图文
+                            </button>
+                            <button
+                              class="c_pub_button_add pub_btn_add_img"
+                              @click="openLine(itemTaskIndex)"
+                            >
+                              链接
+                            </button>
+                            <button
+                              class="c_pub_button_add pub_btn_add_img"
+                              @click="pasteLine(itemTaskIndex)"
+                            >
+                              代码
+                            </button>
+                            <button
+                              class="c_pub_button_add pub_btn_add_img"
+                              @click="openSource(itemTaskIndex)"
+                            >
+                              资源
+                            </button>
+                            <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreate(itemTaskIndex)">
+                              AI生成PPT
+                            </button>
+                            <button class="c_pub_button_add pub_btn_add_img" @click="createTeacherAn(itemTaskIndex)">
+                              AI生成教案
+                            </button>
+                            <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreateVideo(itemTaskIndex)">
+                              智能检索视频
+                            </button>
+                          </div>
+                          <div
+                            v-if="
+                              unitJson[unitIndex].chapterInfo[0].taskJson[
+                                itemTaskIndex
+                              ].proVisible
+                            "
+                            class="mask"
+                          >
+                            <div class="progressBox">
+                              <!-- <div id="closePro" class="closeCss">
+                                            <img src="../../../../assets/icon/close.png" alt />
+                                        </div> -->
+                              <div class="lbox">
+                                <img
+                                  src="../../../assets/loading.gif"
+                                />上传中,请稍后
+                              </div>
+                              <div style="margin-bottom: 10px">
+                                <span
+                                  >{{
+                                    unitJson[unitIndex].chapterInfo[0].taskJson[
+                                      itemTaskIndex
+                                    ].isFinishSize
+                                  }}M</span
+                                >
+                                /
+                                <span
+                                  >{{
+                                    unitJson[unitIndex].chapterInfo[0].taskJson[
+                                      itemTaskIndex
+                                    ].isAllSize
+                                  }}M</span
+                                >
+                              </div>
+                              <el-progress
+                                :text-inside="true"
+                                :stroke-width="20"
+                                :percentage="
+                                  unitJson[unitIndex].chapterInfo[0].taskJson[
+                                    itemTaskIndex
+                                  ].progress
+                                    ? unitJson[unitIndex].chapterInfo[0]
+                                        .taskJson[itemTaskIndex].progress
+                                    : 0
+                                "
+                                style="width: 80%"
+                              ></el-progress>
+                            </div>
+                          </div>
+                        </div>
                         <div v-if="
                           unitJson[unitIndex].easy == 1 ||
                           (unitJson[unitIndex].easy == 5 &&
@@ -6910,29 +7355,40 @@ export default {
       this.dialogVisibleSource = true;
       this.updateSourcePan = false;
     },
-    openAiCreate(){
+    openAiCreate(i){
+      this.lineCount = i;
       this.dialogVisibleAiCreate = true;
     },
     createAiPpt(json){
-      this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
+      this.unitJson[0].chapterInfo[0].taskJson[this.lineCount].chapterData.push(json);
       this.dialogVisibleAiCreate = false;
     },
-    openAiCreateVideo(){
+    openAiCreateVideo(i){
+      this.lineCount = i;
       this.dialogVisibleAiCreateVideo = true;
     },
     createAiVideo(json){
-      this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
+      this.unitJson[0].chapterInfo[0].taskJson[this.lineCount].chapterData.push(json);
       // this.dialogVisibleAiCreateVideo = false;
     },
-    async createTeacherAn(){
+    async createTeacherAn(index){
+      this.lineCount = index;
       this.loading = true
       let md = new MarkdownIt();
-      for(var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++){
-        let _task = this.unitJson[0].chapterInfo[0].taskJson[i]
+      if(this.courseState == 4){
+        for(var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++){
+          let _task = this.unitJson[0].chapterInfo[0].taskJson[i]
+          let name = _task.task+'-教案'
+          let _html =  _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
+          await this.generate(name, _html, i)
+        }
+      }else if(this.courseState == 5){
+        let _task = this.unitJson[0].chapterInfo[0].taskJson[index]
         let name = _task.task+'-教案'
         let _html =  _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
-        await this.generate(name, _html, i)
+        await this.generate(name, _html, index)
       }
+
     },
     async generate(a, html, index) {
       // 将html文件中需要用到的数据挂载到store上
@@ -6996,19 +7452,29 @@ export default {
                     // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
                 })
                 .send(function (err, data) {
-                  if(index == (_this.unitJson[0].chapterInfo[0].taskJson.length - 1)){
+                  if(index == (_this.unitJson[0].chapterInfo[0].taskJson.length - 1) && _this.courseState == 4){
                     _this.loading = false
                   }
-                    if (err) {
-                        _this.$message.error("上传失败");
-                    } else {
-                      _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
-                          name: file.name,
-                          url: data.Location,
-                          type: 3,
-                        })
-                        console.log(data.Location);
+
+                  if(_this.courseState == 5){
+                    _this.loading = false
+                  }
+                  if (err) {
+                      _this.$message.error("上传失败");
+                  } else {
+                    let _index = 0
+                    if(_this.lineCount == 0 || _this.lineCount){
+                      _index = _this.lineCount
+                    }else {
+                      _index = index
                     }
+                    _this.unitJson[0].chapterInfo[0].taskJson[_index].chapterData.push({
+                        name: file.name,
+                        url: data.Location,
+                        type: 3,
+                      })
+                      console.log(data.Location);
+                  }
                 });
         }
     },
@@ -8735,6 +9201,7 @@ export default {
           this.courseUserid = this.userid;
           this.islogin = true;
           this.updateCourseState(4);
+          // this.updateCourseState(5);
           this.addtips()
         })
         .catch((err) => {
@@ -13018,9 +13485,9 @@ export default {
       this.$forceUpdate();
     },
     openAiDialog(clickType, type, callback, index, tindex) {
-      // if(clickType == 1){
-      //   return;
-      // }
+      if(clickType == 1){
+        return;
+      }
       if (this.courseName == "") {
         this.$message.error("请补充填写课程名称");
         return;
@@ -13529,7 +13996,7 @@ ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问
           this.textLoading = false
           // 处理流数据
         }
-        this.$forceUpdate();
+        // this.$forceUpdate();
       };
     },
     async aiGet2(messages, callback) {
@@ -14544,7 +15011,7 @@ ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
           this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
           // 处理流数据
         }
-        this.$forceUpdate();
+        // this.$forceUpdate();
       };
     },
     async aiDetail2(msg, index) {
@@ -14681,7 +15148,7 @@ ${msg}
           this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
           // 处理流数据
         }
-        this.$forceUpdate();
+        // this.$forceUpdate();
       };
     },
     async aiDetail3(msg, index, tindex) {
@@ -14820,7 +15287,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
           this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
           // 处理流数据
         }
-        this.$forceUpdate();
+        // this.$forceUpdate();
       };
     },
     async aiDetail4(msg, index) {
@@ -15108,7 +15575,7 @@ ${_text2}`
           this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
           // 处理流数据
         }
-        this.$forceUpdate();
+        // this.$forceUpdate();
       };
     },
     async aiDetail52(msg, index) {
@@ -15252,7 +15719,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 ? '任务描
           this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
           // 处理流数据
         }
-        this.$forceUpdate();
+        // this.$forceUpdate();
       };
     },
     async aiCpote(msg, callback) {
@@ -15415,7 +15882,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
           this.cpoteLoading[loading] = false
           // 处理流数据
         }
-        this.$forceUpdate();
+        // this.$forceUpdate();
       };
     },
     createFileid(url) {

+ 21 - 482
src/components/pages/aiAddCourse/addCourseXX.vue → src/components/pages/aiAddCourse/addCourseX.vue

@@ -804,6 +804,7 @@
                     <div class="outline_detail" v-loading="taskDetailLoading5.indexOf('task-' + index) !== -1" element-loading-text="小可正在努力生成中,请稍等...">
                       <textarea v-autoHeight="100" rows="4" class="binfo_input binfo_textarea" cols placeholder="请输入教案"
                         v-model="item.taskDetail3" v-if="item.isTask3"></textarea>
+                      <div class="markBox vditor-reset" style="white-space:pre-wrap;" v-text="item.taskDetail3" v-else-if="ttaskDetailLoading5.indexOf('task-' + index) !== -1"></div>
                       <div class="markBox vditor-reset" v-html="MarkdownT(item.taskDetail3)" v-else></div>
                       <div class="op_box">
                         <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
@@ -1282,7 +1283,7 @@
 
                   <div style="margin: 0 0 10px 0; padding: 0" v-for="(item, index) in unitJson[unitIndex].chapterInfo"
                     :key="index">
-                    <div v-if="courseState == 4" style="position: relative;
+                    <div style="position: relative;
                             background: #fff;
                             box-sizing: border-box;
                             padding: 1px 20px 10px;
@@ -1687,446 +1688,6 @@
                             </div>
                           </div>
                         </div>
-                        <div
-                          style="position: relative"
-                          v-if="courseState == 5"
-                        >
-                          <div
-                            style="
-                              display: flex;
-                              flex-direction: row;
-                              justify-content: space-between;
-                              align-items: center;
-                            "
-                            :style="{
-                              margin: !itemTask.isFoldchapter
-                                ? '20px 0 10px'
-                                : '20px 0 0',
-                            }"
-                          >
-                            <div
-                              style="margin-bottom: 10px"
-                              class="lineTitle clineTitle"
-                            >
-                              学习内容
-                            </div>
-                            <!-- <div style="margin-bottom:10px" v-if="!itemTask.isFoldchapter" class="show_taskD show"
-                              @click="foldC(itemTaskIndex)"><img src="../../../assets/icon/new/icon-slide.png" />收起学习内容</div>
-                            <div style="margin-bottom:10px" v-else class="show_taskD" @click="foldC(itemTaskIndex)"><img
-                                src="../../../assets/icon/new/icon-slide.png" />展开学习内容</div> -->
-                            <!-- <div class="line"></div> -->
-                          </div>
-                          <!-- v-if="!itemTask.isFoldchapter" -->
-                          <div>
-                            <div
-                              class="add_chapters_box add_c_none"
-                              v-if="
-                                itemTask.chapterData &&
-                                itemTask.chapterData.length == 0
-                              "
-                            >
-                              <img
-                                src="../../../assets/icon/new/c_none.png"
-                                alt
-                              /><span>请添加学习内容</span>
-                            </div>
-                            <div
-                              v-else
-                              class="add_chapters_box"
-                              style="display: flex; flex-direction: column"
-                            >
-                              <div
-                                @dragstart="
-                                  dragStart(item1, index1, itemTaskIndex)
-                                "
-                                @dragover.prevent="
-                                  dragOver(index1, itemTaskIndex)
-                                "
-                                @dragend="dragEnd()"
-                                :draggable="
-                                  isdrag ==
-                                  'chapter-' + itemTaskIndex + '-' + index1
-                                "
-                                class="chapter_upload"
-                                v-for="(item1, index1) in itemTask.chapterData"
-                                :key="item1.id"
-                                @click="
-                                  getChapterData(
-                                    $event,
-                                    unitIndex,
-                                    index,
-                                    index1,
-                                    item1.type
-                                  )
-                                "
-                                :class="{
-                                  dragOverTop2:
-                                    newIndex === index1 &&
-                                    typeIndex ==
-                                      'chapter-' +
-                                        itemTaskIndex +
-                                        '-' +
-                                        index1 &&
-                                    oldIndex > index1 &&
-                                    dragType == 'drag',
-                                  dragOverBottom2:
-                                    newIndex === index1 &&
-                                    typeIndex ==
-                                      'chapter-' +
-                                        itemTaskIndex +
-                                        '-' +
-                                        index1 &&
-                                    oldIndex < index1 &&
-                                    dragType == 'drag',
-                                }"
-                              >
-                                <div
-                                  @mousedown="
-                                    isdrag =
-                                      'chapter-' + itemTaskIndex + '-' + index1
-                                  "
-                                  @mouseup="isdrag = ''"
-                                  @touchstart="
-                                    isdrag =
-                                      'chapter-' + itemTaskIndex + '-' + index1
-                                  "
-                                  @touchend="isdrag = ''"
-                                  class="chapter_upload_drag"
-                                ></div>
-                                <div
-                                  class="chapter_upload_o"
-                                  style="
-                                    position: relative;
-                                    display: flex;
-                                    align-items: center;
-                                  "
-                                >
-                                  <div
-                                    class="chapter_upload_l"
-                                    style="padding: 1px 0 0 10px"
-                                  >
-                                    <div
-                                      v-if="item1.type == 2"
-                                      class="chapter_upload_l_i2"
-                                    ></div>
-                                    <div
-                                      v-if="item1.type == 3"
-                                      class="chapter_upload_l_i3"
-                                      style="margin-left: 1px"
-                                    ></div>
-                                    <div
-                                      v-if="item1.type == 6"
-                                      class="chapter_upload_l_i6"
-                                      style="margin-left: 1px"
-                                    ></div>
-                                    <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
-                                    <div
-                                      v-if="item1.type == 8"
-                                      class="chapter_upload_l_i8"
-                                      style="margin-left: 1px"
-                                    ></div>
-                                    <div
-                                      v-if="item1.type == 14"
-                                      class="chapter_upload_l_i14"
-                                      style="margin-left: 1px"
-                                    ></div>
-                                    <div
-                                      v-if="item1.type == 12"
-                                      class="chapter_upload_l_i12"
-                                      style="margin-left: 1px"
-                                    ></div>
-                                    <div
-                                      v-if="item1.type == 13"
-                                      class="chapter_upload_l_i13"
-                                      style="margin-left: 1px"
-                                    ></div>
-                                  </div>
-                                  <div class="chapter_upload_n">
-                                    <input
-                                      readonly="true"
-                                      v-if="
-                                        item1.type == 2 ||
-                                        item1.type == 3 ||
-                                        item1.type == 12 ||
-                                        item1.type == 13 ||
-                                        item1.type == 7
-                                      "
-                                      :placeholder="item1.name"
-                                      @click="
-                                        updataVideoT(
-                                          $event,
-                                          unitIndex,
-                                          itemTaskIndex,
-                                          index1
-                                        )
-                                      "
-                                      style="
-                                        border: none;
-                                        outline: none;
-                                        width: 80%;
-                                        minwidth: 215px;
-                                        z-index: 99;
-                                        font-size: 14px;
-                                        white-space: nowrap;
-                                        overflow: hidden;
-                                        text-overflow: ellipsis;
-                                      "
-                                    />
-                                    <input
-                                      :placeholder="item1.name"
-                                      v-if="item1.type == 6"
-                                      style="
-                                        border: none;
-                                        outline: none;
-                                        width: 80%;
-                                        white-space: nowrap;
-                                        overflow: hidden;
-                                        text-overflow: ellipsis;
-                                      "
-                                      readonly="true"
-                                      @click="
-                                        selectAttText(itemTaskIndex, index1)
-                                      "
-                                    />
-                                    <input
-                                      :placeholder="
-                                        item1.title ? item1.title : '链接'
-                                      "
-                                      v-if="item1.type == 8"
-                                      style="
-                                        border: none;
-                                        outline: none;
-                                        width: 80%;
-                                        white-space: nowrap;
-                                        overflow: hidden;
-                                        text-overflow: ellipsis;
-                                      "
-                                      readonly="true"
-                                      @click="selectLine(itemTaskIndex, index1)"
-                                    />
-                                    <input
-                                      :placeholder="
-                                        item1.title ? item1.title : '链接'
-                                      "
-                                      v-if="item1.type == 14"
-                                      style="
-                                        border: none;
-                                        outline: none;
-                                        width: 80%;
-                                        white-space: nowrap;
-                                        overflow: hidden;
-                                        text-overflow: ellipsis;
-                                      "
-                                      readonly="true"
-                                      @click="
-                                        openUpdateSource(itemTaskIndex, index1)
-                                      "
-                                    />
-                                  </div>
-                                  <div class="chapter_upload_ic">
-                                    <div
-                                      class="chapter_upload_noSee"
-                                      v-if="item1.type == 12"
-                                    ></div>
-                                    <div
-                                      class="chapter_upload_ud"
-                                      style="z-index: 99"
-                                    >
-                                      <div
-                                        class="chapter_upload_up"
-                                        @click="
-                                          upCd(
-                                            $event,
-                                            unitIndex,
-                                            index,
-                                            itemTaskIndex,
-                                            index1
-                                          )
-                                        "
-                                      ></div>
-                                      <div
-                                        class="chapter_upload_down"
-                                        @click="
-                                          downCd(
-                                            $event,
-                                            unitIndex,
-                                            index,
-                                            itemTaskIndex,
-                                            index1
-                                          )
-                                        "
-                                      ></div>
-                                    </div>
-                                    <div
-                                      class="chapter_upload_ic_edit"
-                                      v-if="
-                                        item1.type == 2 ||
-                                        item1.type == 3 ||
-                                        item1.type == 12 ||
-                                        item1.type == 13 ||
-                                        item1.type == 7
-                                      "
-                                      @click.stop="
-                                        updataVideoT(
-                                          $event,
-                                          unitIndex,
-                                          itemTaskIndex,
-                                          index1
-                                        )
-                                      "
-                                    >
-                                      <div></div>
-                                    </div>
-                                    <div
-                                      class="chapter_upload_ic_edit"
-                                      v-if="item1.type == 6"
-                                      @click="
-                                        selectAttText(itemTaskIndex, index1)
-                                      "
-                                    >
-                                      <div></div>
-                                    </div>
-                                    <div
-                                      class="chapter_upload_ic_edit"
-                                      v-if="item1.type == 8"
-                                      @click="selectLine(itemTaskIndex, index1)"
-                                    >
-                                      <div></div>
-                                    </div>
-                                    <div
-                                      class="chapter_upload_ic_edit"
-                                      v-if="item1.type == 14"
-                                      @click="
-                                        openUpdateSource(itemTaskIndex, index1)
-                                      "
-                                    >
-                                      <div></div>
-                                    </div>
-                                    <div
-                                      class="chapter_upload_ic_r"
-                                      @click.stop="
-                                        deleteChapterData(
-                                          $event,
-                                          unitIndex,
-                                          index,
-                                          index1,
-                                          itemTaskIndex
-                                        )
-                                      "
-                                    >
-                                      <div></div>
-                                    </div>
-                                  </div>
-                                </div>
-                              </div>
-                            </div>
-                          </div>
-                          <!-- v-if="!itemTask.isFoldchapter" -->
-                          <div class="add_info_box" style="margin: 10px 0 0">
-                            <button
-                              class="c_pub_button_add pub_btn_add_img"
-                              @click="addImg($event)"
-                            >
-                              文件
-                              <input
-                                type="file"
-                                accept="*"
-                                style="display: none"
-                                v-if="inputShow"
-                                @change="
-                                  beforeUpload2(
-                                    $event,
-                                    unitIndex,
-                                    13,
-                                    itemTaskIndex
-                                  )
-                                "
-                              />
-                            </button>
-                            <button
-                              class="c_pub_button_add pub_btn_add_img"
-                              @click="addAttText(itemTaskIndex)"
-                            >
-                              图文
-                            </button>
-                            <button
-                              class="c_pub_button_add pub_btn_add_img"
-                              @click="openLine(itemTaskIndex)"
-                            >
-                              链接
-                            </button>
-                            <button
-                              class="c_pub_button_add pub_btn_add_img"
-                              @click="pasteLine(itemTaskIndex)"
-                            >
-                              代码
-                            </button>
-                            <button
-                              class="c_pub_button_add pub_btn_add_img"
-                              @click="openSource(itemTaskIndex)"
-                            >
-                              资源
-                            </button>
-                            <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreate(itemTaskIndex)">
-                              AI生成PPT
-                            </button>
-                            <button class="c_pub_button_add pub_btn_add_img" @click="createTeacherAn(itemTaskIndex)">
-                              AI生成教案
-                            </button>
-                            <button class="c_pub_button_add pub_btn_add_img" @click="openAiCreateVideo(itemTaskIndex)">
-                              智能检索视频
-                            </button>
-                          </div>
-                          <div
-                            v-if="
-                              unitJson[unitIndex].chapterInfo[0].taskJson[
-                                itemTaskIndex
-                              ].proVisible
-                            "
-                            class="mask"
-                          >
-                            <div class="progressBox">
-                              <!-- <div id="closePro" class="closeCss">
-                                            <img src="../../../../assets/icon/close.png" alt />
-                                        </div> -->
-                              <div class="lbox">
-                                <img
-                                  src="../../../assets/loading.gif"
-                                />上传中,请稍后
-                              </div>
-                              <div style="margin-bottom: 10px">
-                                <span
-                                  >{{
-                                    unitJson[unitIndex].chapterInfo[0].taskJson[
-                                      itemTaskIndex
-                                    ].isFinishSize
-                                  }}M</span
-                                >
-                                /
-                                <span
-                                  >{{
-                                    unitJson[unitIndex].chapterInfo[0].taskJson[
-                                      itemTaskIndex
-                                    ].isAllSize
-                                  }}M</span
-                                >
-                              </div>
-                              <el-progress
-                                :text-inside="true"
-                                :stroke-width="20"
-                                :percentage="
-                                  unitJson[unitIndex].chapterInfo[0].taskJson[
-                                    itemTaskIndex
-                                  ].progress
-                                    ? unitJson[unitIndex].chapterInfo[0]
-                                        .taskJson[itemTaskIndex].progress
-                                    : 0
-                                "
-                                style="width: 80%"
-                              ></el-progress>
-                            </div>
-                          </div>
-                        </div>
                         <div v-if="
                           unitJson[unitIndex].easy == 1 ||
                           (unitJson[unitIndex].easy == 5 &&
@@ -7350,40 +6911,29 @@ export default {
       this.dialogVisibleSource = true;
       this.updateSourcePan = false;
     },
-    openAiCreate(i){
-      this.lineCount = i;
+    openAiCreate(){
       this.dialogVisibleAiCreate = true;
     },
     createAiPpt(json){
-      this.unitJson[0].chapterInfo[0].taskJson[this.lineCount].chapterData.push(json);
+      this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
       this.dialogVisibleAiCreate = false;
     },
-    openAiCreateVideo(i){
-      this.lineCount = i;
+    openAiCreateVideo(){
       this.dialogVisibleAiCreateVideo = true;
     },
     createAiVideo(json){
-      this.unitJson[0].chapterInfo[0].taskJson[this.lineCount].chapterData.push(json);
+      this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push(json);
       // this.dialogVisibleAiCreateVideo = false;
     },
-    async createTeacherAn(index){
-      this.lineCount = index;
+    async createTeacherAn(){
       this.loading = true
       let md = new MarkdownIt();
-      if(this.courseState == 4){
-        for(var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++){
-          let _task = this.unitJson[0].chapterInfo[0].taskJson[i]
-          let name = _task.task+'-教案'
-          let _html =  _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
-          await this.generate(name, _html, i)
-        }
-      }else if(this.courseState == 5){
-        let _task = this.unitJson[0].chapterInfo[0].taskJson[index]
+      for(var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++){
+        let _task = this.unitJson[0].chapterInfo[0].taskJson[i]
         let name = _task.task+'-教案'
         let _html =  _task.taskDetail3 ? md.render(_task.taskDetail3) : ''
-        await this.generate(name, _html, index)
+        await this.generate(name, _html, i)
       }
-
     },
     async generate(a, html, index) {
       // 将html文件中需要用到的数据挂载到store上
@@ -7447,29 +6997,19 @@ export default {
                     // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
                 })
                 .send(function (err, data) {
-                  if(index == (_this.unitJson[0].chapterInfo[0].taskJson.length - 1) && _this.courseState == 4){
+                  if(index == (_this.unitJson[0].chapterInfo[0].taskJson.length - 1)){
                     _this.loading = false
                   }
-
-                  if(_this.courseState == 5){
-                    _this.loading = false
-                  }
-                  if (err) {
-                      _this.$message.error("上传失败");
-                  } else {
-                    let _index = 0
-                    if(_this.lineCount == 0 || _this.lineCount){
-                      _index = _this.lineCount
-                    }else {
-                      _index = index
+                    if (err) {
+                        _this.$message.error("上传失败");
+                    } else {
+                      _this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.push({
+                          name: file.name,
+                          url: data.Location,
+                          type: 3,
+                        })
+                        console.log(data.Location);
                     }
-                    _this.unitJson[0].chapterInfo[0].taskJson[_index].chapterData.push({
-                        name: file.name,
-                        url: data.Location,
-                        type: 3,
-                      })
-                      console.log(data.Location);
-                  }
                 });
         }
     },
@@ -9195,8 +8735,7 @@ export default {
           this.cid = res.data.courseId;
           this.courseUserid = this.userid;
           this.islogin = true;
-          // this.updateCourseState(4);
-          this.updateCourseState(5);
+          this.updateCourseState(4);
           this.addtips()
         })
         .catch((err) => {

+ 44 - 8
src/components/pages/aiAddCourse/aiCreateVideoDialog.vue

@@ -10,7 +10,7 @@
                 </div>
             </div>
             <div class="Box">
-                <div class="video_box" v-for="(item,index) in data" :key="index">
+                <!-- <div class="video_box" v-for="(item,index) in data" :key="index">
                     <img :src="item.snippet.thumbnails.high.url" />
                     <span class="name">{{ item.snippet.title }}</span> 
                     <span class="detail">{{ item.snippet.description }}</span> 
@@ -18,6 +18,15 @@
                         <span @click="openUrl(item.id.videoId)">查看</span>
                         <span @click="checkUrl(item.snippet.title,item.id.videoId)">加入</span>
                     </div>
+                </div> -->
+                <div class="video_box video_box2" v-for="(item,index) in data" :key="index">
+                    <!-- <img :src="item.pic" /> -->
+                    <span class="name" v-html="item.title"></span> 
+                    <span class="detail">{{ item.description }}</span> 
+                    <div class="btn">
+                        <span @click="openUrl(item.bvid)">查看</span>
+                        <span @click="checkUrl(item.title,item.bvid)">加入</span>
+                    </div>
                 </div>
             </div>
         </div>
@@ -105,13 +114,15 @@ export default {
             this.$emit('update:dialogVisibleAiCreateVideo', false)
         },
         openUrl(url){
-            window.open('https://www.youtube.com/embed/'+url)
+            // window.open('https://www.youtube.com/embed/'+url)
+            window.open(`//www.bilibili.com/video/${url}`)
         },
         checkUrl(name,id) {
             let json = {
                 name: "链接",
-                title: name,
-                url: 'https://www.youtube.com/embed/'+id,
+                title: name.replace(/<[^>]*>?/gm, ''),
+                // url: 'https://www.youtube.com/embed/'+id,
+                url: `//player.bilibili.com/player.html?isOutside=true&bvid=${id}`,
                 type: 8,
             }
             this.$emit('createAiVideo', json)
@@ -128,14 +139,31 @@ export default {
                 this.detail = this.aiJson.video
             }
         },
+        // async aiGet() {
+        //     let _this = this
+        //     _this.loading = true
+        //     this.ajax
+        //         .get(`https://www.googleapis.com/youtube/v3/search?key=AIzaSyBUvNQ5Wyua4PbStE2vp3t7MIY4htry-4M&part=snippet&q=${this.detail}&maxResults=10&type=video&order=relevance&regionCode=HK`)
+        //         .then((response) => {
+        //             console.log(response);
+        //             _this.data = response.data.items
+        //             _this.loading = false
+
+        //         })
+        //         .catch((error) => {
+        //             _this.loading = false
+        //             console.log(error);
+        //         });
+        // },
         async aiGet() {
             let _this = this
             _this.loading = true
-            this.ajax
-                .get(`https://www.googleapis.com/youtube/v3/search?key=AIzaSyBUvNQ5Wyua4PbStE2vp3t7MIY4htry-4M&part=snippet&q=${this.detail}&maxResults=10&type=video&order=relevance&regionCode=HK`)
-                .then((response) => {
+            this.ajax.post(`https://gpt4.cocorobo.cn/get_network_search`,{
+                 engine:"bilibili",
+                keyword:this.detail
+              }).then(response=>{
                     console.log(response);
-                    _this.data = response.data.items
+                    _this.data = response.data.FunctionResponse
                     _this.loading = false
 
                 })
@@ -144,6 +172,7 @@ export default {
                     console.log(error);
                 });
         },
+
     },
 }
 </script>
@@ -310,4 +339,11 @@ export default {
 .btn > span + span{
     margin-left: 10px;
 }
+
+.video_box2{
+    box-shadow: 0px 0px 4px 2px #d2d2d282;
+    padding: 5px 10px 10px;
+    box-sizing: border-box;
+    border-radius: 5px;
+}
 </style>

+ 1 - 1
src/components/pages/aiAddCourse/templateDialog.vue

@@ -10,7 +10,7 @@
                 </el-input>
             </div>
             <div class="a-d-t-right">
-                <el-button @click="open2()" type="primary" size="small" style="margin-right: 10px;">设置模板</el-button>
+                <!-- <el-button @click="open2()" type="primary" size="small" style="margin-right: 10px;">设置模板</el-button> -->
                 <span @click.stop="close">×</span>
             </div>
         </div>

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio