lsc 5 ay önce
ebeveyn
işleme
194c14fe2d

+ 1 - 1
dist/index.html

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

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/css/app.915eb744783a41b4e938c69a2361a91d.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/css/app.915eb744783a41b4e938c69a2361a91d.css.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/app.0f03f9bfadc276b99876.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/app.0f03f9bfadc276b99876.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


+ 350 - 25
src/components/pages/aiAddCourse/addCourse.vue

@@ -908,6 +908,168 @@
                 </div>
               </div>
             </div>
+            <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(!yiKeTemplateArray.includes(templateid))">
+              <div style="position: relative;
+                            background: #fff;
+                            box-sizing: border-box;
+                            padding: 1px 20px 10px;
+                            width: 100%;
+                            border-radius: 10px;">
+                <div style="
+                              display: flex;
+                              flex-direction: row;
+                              justify-content: space-between;
+                              align-items: center;
+                            " :style="{
+                              margin: true
+                                ? '20px 0 10px'
+                                : '20px 0 0',
+                            }">
+                  <div style="margin-bottom: 10px;width:100%;font-weight:bold" class="lineTitle">
+                    检索资料
+                    <div class="add_info_box" style="margin: 0 0 0 auto;align-items:center">
+                      <input type="text" placeholder="请输入检索关键词" class="binfo_input" v-model="searchFileName" style="width: 200px;margin: 0 5px 10px 0;min-height: 36px;box-sizing: border-box;height: 36px;"/>
+                      <button class="c_pub_button_add" @click="findMatchingContents">
+                        点击检索资料
+                        <!-- <input type="file" accept=".docx,.doc,.ppt,.pptx,.md,.txt,.pdf" multiple="multiple" style="display: none" v-if="inputShow" @change="
+                          beforeUploadInfo2(
+                            $event,
+                            20
+                          )
+                          " /> -->
+                      </button>
+                    </div>
+                  </div>
+                </div>
+                <div v-loading="knowInfoDataLoading" element-loading-text="小可正在努力生成中,请稍等...">
+                  <div class="add_chapters_box add_c_none" v-if="
+                    knowInfoData2 &&
+                    knowInfoData2.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 class="chapter_upload" v-for="(item1, index1) in knowInfoData2" :key="item1.id" @click="
+                            getChapterData(
+                              $event,
+                              index1,
+                              item1.type
+                            )
+                            " >
+                      <div class="chapter_upload_o" style="
+                                    position: relative;
+                                    display: flex;
+                                    align-items: center;
+                                  ">
+                        <div class="chapter_upload_check" :class="{ checked: knowFileids2.indexOf(item1.fileid) != -1 }" @click="checkKnowInfoData2(item1.fileid)"></div>
+                        <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.stop="
+                            checkChpater3($event, index1, item1)
+                            " 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(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(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(index1)
+                                        " />
+                        </div>
+                        <div class="chapter_upload_ic">
+                          <div class="chapter_upload_noSee" v-if="item1.type == 12"></div>
+                          <div class="chapter_upload_ic_check" v-if="item1.type == 3" @click.stop="
+                            checkChpater3($event, index1, item1)
+                            ">
+                            <div></div>
+                          </div>
+                          <div class="chapter_upload_ic_r" @click.stop="
+                            deleteKnowInfoData2(
+                              $event,
+                              index1
+                            )
+                            ">
+                            <div></div>
+                          </div>
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+                </div>
+                <div v-if="
+                  knowinfoproVisible2
+                " class="mask">
+                  <div class="progressBox">
+                    <div class="lbox">
+                      <img src="../../../assets/loading.gif" />上传中,请稍后
+                    </div>
+                    <div style="margin-bottom: 10px">
+                      <span>{{
+                        knowinfoisFinishSize2
+                        }}</span>
+                      /
+                      <span>{{
+                        knowinfoisAllSize2
+                        }}</span>
+                    </div>
+                  </div>
+                </div>
+              </div>
+            </div>
             <div class="whiteBg" style="background: #fff; margin: 0 0 10px;padding: 0 0 15px;" v-if="(!yiKeTemplateArray.includes(templateid)) && infoData2.length">
               <div style="position: relative;
                             background: #fff;
@@ -7421,6 +7583,14 @@ export default {
       knowinfoisAllSize: 0,
       knowinfoprogress: 0,
       knowFileids: [],
+      searchFileName: "",
+      knowInfoDataLoading: false,
+      knowInfoData2: [],
+      knowinfoproVisible2: false,
+      knowinfoisFinishSize2: 0,
+      knowinfoisAllSize2: 0,
+      knowinfoprogress2: 0,
+      knowFileids2: [],
       pjTemplateArray: [ 'cf5722a4-401b-11ef-b873-005056b86cp5', '68629cfb-e719-48e9-a03d-56f189fb9cb0' ],
       pjIndex: [52, 48, 1, 3, 16, 45, 47, 41],
       taskAnLoading: [],
@@ -7804,7 +7974,10 @@ export default {
       handler(newValue, oldValue) {
         this.setCourseInfo();
       }
-    }
+    },
+    knowFileids(newVal, oldVal) {
+      window.course_fileids = this.knowFileids
+    },
   },
   methods: {
     tableRowClassName({ row, rowIndex }) {
@@ -9239,6 +9412,45 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
       const file = new File([blob], dname, { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' });
       return file
     },
+    async generateExport2(a, html, index) {
+      return new Promise((resolve) => {
+        // <html lang="en">
+        
+        // 将html文件中需要用到的数据挂载到store上
+        const content = `<!DOCTYPE html>
+        <html  xmlns:v='urn:schemas-microsoft-com:vml'xmlns:o='urn:schemas-microsoft-com:office:office'xmlns:w='urn:schemas-microsoft-com:office:word'xmlns:m='http://schemas.microsoft.com/office/2004/12/omml'xmlns='http://www.w3.org/TR/REC-html40'>
+        <head>
+            <!--[if gte mso 9]><xml><w:WordDocument><w:View>Print</w:View><w:TrackMoves>false</w:TrackMoves><w:TrackFormatting/><w:ValidateAgainstSchemas/><w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid><w:IgnoreMixedContent>false</w:IgnoreMixedContent><w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText><w:DoNotPromoteQF/><w:LidThemeOther>EN-US</w:LidThemeOther><w:LidThemeAsian>ZH-CN</w:LidThemeAsian><w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript><w:Compatibility><w:BreakWrappedTables/><w:SnapToGridInCell/><w:WrapTextWithPunct/><w:UseAsianBreakRules/><w:DontGrowAutofit/><w:SplitPgBreakAndParaMark/><w:DontVertAlignCellWithSp/><w:DontBreakConstrainedForcedTables/><w:DontVertAlignInTxbx/><w:Word11KerningPairs/><w:CachedColBalance/><w:UseFELayout/></w:Compatibility><w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel><m:mathPr><m:mathFont m:val='Cambria Math'/><m:brkBin m:val='before'/><m:brkBinSub m:val='--'/><m:smallFrac m:val='off'/><m:dispDef/><m:lMargin m:val='0'/> <m:rMargin m:val='0'/><m:defJc m:val='centerGroup'/><m:wrapIndent m:val='1440'/><m:intLim m:val='subSup'/><m:naryLim m:val='undOvr'/></m:mathPr></w:WordDocument></xml><![endif]-->
+            <meta charset="UTF-8">
+            <meta http-equiv="X-UA-Compatible" content="IE=edge">
+            <meta name="viewport" content="width=device-width, initial-scale=1.0">
+            <title>${a}</title>
+            <style>
+              table {
+                border-collapse: collapse; /* 折叠边框 */
+                width: 100%;
+              }
+              th, td {
+                border: 1px solid black; /* 线条样式 */
+                padding: 8px;
+                text-align: left;
+              }
+            </style>
+        </head>
+        <body>
+        ${html}
+        </body>
+        </html>`;
+        // debugger
+        const blob = htmlDocx.asBlob(content)
+        // debugger
+        const dname = `${a}`;
+        // 创建文件流
+
+        const file = new File([blob], dname, { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' });
+        resolve(file);  // 通过 Promise 返回 File 对象
+      });
+    },
     beforeUploadHtml(event, index, callback) {
         var file = event;
         var credentials = {
@@ -10164,6 +10376,12 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
           _this.knowinfoisFinishSize = 0;
           _this.knowinfoisAllSize = event.target.files.length;
           _this.addCourseBehavior('courseBehavior', '点击参考标准-上传参考标准按钮')
+        }else if(type == 20){
+          _this.knowinfoprogress2 = 0;
+          _this.knowinfoproVisible2 = true;
+          _this.knowinfoisFinishSize2 = 0;
+          _this.knowinfoisAllSize2 = event.target.files.length;
+          _this.addCourseBehavior('courseBehavior', '点击参考标准-上传参考标准按钮')
         }else{
           _this.infoprogress = 0;
           _this.infoproVisible = true;
@@ -10249,6 +10467,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
                   _this.pingjiainfoisFinishSize[tindex] = cfindex2;
                 }else if(type == 19){
                   _this.knowinfoisFinishSize = cfindex2;
+                }else if(type == 20){
+                  _this.knowinfoisFinishSize2 = cfindex2;
                 }else {
                   _this.infoisFinishSize = cfindex2;
                 }
@@ -10267,6 +10487,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
                         _this.pingjiainfoproVisible[tindex] = false;
                       }else if(type == 19){
                         _this.knowinfoproVisible = false;
+                      }else if(type == 20){
+                        _this.knowinfoproVisible2 = false;
                       }else{
                         _this.infoproVisible = false;
                       }
@@ -10291,6 +10513,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
                     _this.pingjiainfoisFinishSize[tindex] = cfindex2;
                   }else if(type == 19){
                     _this.knowinfoisFinishSize = cfindex2;
+                  }else if(type == 20){
+                    _this.knowinfoisFinishSize2 = cfindex2;
                   }else {
                     _this.infoisFinishSize = cfindex2;
                   }
@@ -10308,6 +10532,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
                       _this.pingjiainfoproVisible[tindex] = false;
                     }else if(type == 19){
                         _this.knowinfoproVisible = false;
+                    }else if(type == 20){
+                        _this.knowinfoproVisible2 = false;
                     }else{
                       _this.infoproVisible = false;
                     }
@@ -10512,6 +10738,17 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
                   if(fileid != 1){
                     _this.knowFileids.push(fileid)
                   }
+                }else if (type == 20) {
+                  _this.knowInfoData2.push({
+                    name: fileName,
+                    url: data.Location,
+                    uid: fileUid,
+                    type: _type,
+                    fileid: fileid == 1 ? '' : fileid,
+                  });
+                  if(fileid != 1){
+                    _this.knowFileids2.push(fileid)
+                  }
                 }
                 console.log(data.Location);
                 console.log(fileName,'----------',fileid);
@@ -11284,6 +11521,13 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
         this.knowFileids.splice(this.knowFileids.indexOf(fileid), 1)
       }
     },
+    checkKnowInfoData2(fileid){
+      if(this.knowFileids2.indexOf(fileid) == -1){
+        this.knowFileids2.push(fileid)
+      }else {
+        this.knowFileids2.splice(this.knowFileids.indexOf(fileid), 1)
+      }
+    },
     deleteInfoData(e, ic) {
       e.stopPropagation();
       let _this = this;
@@ -11346,6 +11590,28 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
           return;
         });
     },
+    deleteKnowInfoData2(e, ic) {
+      e.stopPropagation();
+      let _this = this;
+      _this
+        .$confirm("确定删除此项?", "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        })
+        .then(() => {
+          if(_this.knowFileids2.indexOf(_this.knowInfoData[ic].fileid) != -1){
+            _this.knowFileids2.splice(_this.knowFileids2.indexOf(_this.knowInfoData[ic].fileid), 1)
+          }
+          _this.knowInfoData.splice(
+            ic,
+            1
+          );
+        })
+        .catch(() => {
+          return;
+        });
+    },
     deletemubiaoInfoData(e, ic) {
       e.stopPropagation();
       let _this = this;
@@ -11849,6 +12115,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
             languageSetting: this.languageSetting,
             knowInfoData: this.knowInfoData,
             knowFileids: this.knowFileids,
+            knowInfoData2: this.knowInfoData2,
+            knowFileids2: this.knowFileids2,
           }),
           iresearch: this.isFileSearch ? 1 : 2,
         },
@@ -12124,6 +12392,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
             languageSetting: this.languageSetting,
             knowInfoData: this.knowInfoData,
             knowFileids: this.knowFileids,
+            knowInfoData2: this.knowInfoData2,
+            knowFileids2: this.knowFileids2,
           }),
           iresearch: this.isFileSearch ? 1 : 2,
         },
@@ -14273,6 +14543,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
                 this.languageSetting = (JSON.parse(res.data[0][0].setting).languageSetting || JSON.parse(res.data[0][0].setting).languageSetting == 0) ? JSON.parse(res.data[0][0].setting).languageSetting : 0;
                 this.knowInfoData = (JSON.parse(res.data[0][0].setting).knowInfoData) ? JSON.parse(res.data[0][0].setting).knowInfoData : [];
                 this.knowFileids = (JSON.parse(res.data[0][0].setting).knowFileids) ? JSON.parse(res.data[0][0].setting).knowFileids : [];
+                this.knowInfoData2 = (JSON.parse(res.data[0][0].setting).knowInfoData2) ? JSON.parse(res.data[0][0].setting).knowInfoData2 : [];
+                this.knowFileids2 = (JSON.parse(res.data[0][0].setting).knowFileids2) ? JSON.parse(res.data[0][0].setting).knowFileids2 : [];
                 if(this.targetCourseText2 || (!this.teacherCourseText)){
                   this.courseTextBool = true
                 }
@@ -14426,6 +14698,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
                 this.languageSetting = (JSON.parse(res.data[0][0].setting).languageSetting || JSON.parse(res.data[0][0].setting).languageSetting == 0) ? JSON.parse(res.data[0][0].setting).languageSetting : 0;
                 this.knowInfoData = (JSON.parse(res.data[0][0].setting).knowInfoData) ? JSON.parse(res.data[0][0].setting).knowInfoData : [];
                 this.knowFileids = (JSON.parse(res.data[0][0].setting).knowFileids) ? JSON.parse(res.data[0][0].setting).knowFileids : [];
+                this.knowInfoData2 = (JSON.parse(res.data[0][0].setting).knowInfoData2) ? JSON.parse(res.data[0][0].setting).knowInfoData2 : [];
+                this.knowFileids2 = (JSON.parse(res.data[0][0].setting).knowFileids2) ? JSON.parse(res.data[0][0].setting).knowFileids2 : [];
                 if(this.targetCourseText2 || (!this.teacherCourseText)){
                   this.courseTextBool = true
                 }
@@ -17795,7 +18069,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
         }
       } else {
         fileid = _this.isFileSearch ? [..._this.fileIds] : []
-        fileid = [...fileid, ..._this.knowFileids]
+        fileid = [...fileid]
         if (_this.infoData.length) {
           for (var i = 0; i < _this.infoData.length; i++) {
             if(_this.infoData[i].fileid){
@@ -17814,7 +18088,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
         }
       }
       _this.isTextCancelToken = _this.ajax.setCancelSource();
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       let _uuid = uuidv4();
       // let params = JSON.stringify({
       //   // "model": "Chat",
@@ -17968,7 +18242,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -18380,7 +18654,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -18948,7 +19222,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -19217,7 +19491,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -19500,7 +19774,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -19583,7 +19857,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -19745,7 +20019,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -19834,7 +20108,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
       let _this = this
       return new Promise((resolve, reject) => {
         let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-        fileid = [...fileid, ..._this.knowFileids]
+        fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
         if (_this.infoData.length) {
           for (var i = 0; i < _this.infoData.length; i++) {
             if(_this.infoData[i].fileid){
@@ -20014,7 +20288,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
           }
         }
       }else{ 
-        fileid = [...fileid, ..._this.knowFileids]
+        fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
         if (_this.infoData.length) {
           for (var i = 0; i < _this.infoData.length; i++) {
             if(_this.infoData[i].fileid){
@@ -20184,7 +20458,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -20521,7 +20795,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
       const _tindex2 = index
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -20708,7 +20982,7 @@ ${msg}
       const _tindex2 = index
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -20843,7 +21117,7 @@ ${_this.languageSetting == 2 ? 'Sub-Criteria' : '评价标准'}:评价标准
       const _tindex2 = index
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -21056,7 +21330,7 @@ ${taskArray.length ? '其他任务大纲内容' + taskArray.join(',') : ''}
       const _tindex2 = index
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -21228,7 +21502,7 @@ ${_this.aiCallBack.taskDetail}
       const _tindex3 = tindex
     
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -21404,7 +21678,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
       const _tindex2 = index
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -21581,7 +21855,7 @@ ${msg} 优化核心素养、目标、评价标准,输出格式和内容要求
       const _tindex2 = index
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -21791,7 +22065,7 @@ ${_text2}`
       const _tindex2 = index
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -22090,7 +22364,7 @@ ${(_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templatei
       let _index = _this.aitype.replace("aiC","c")
       
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
           if(_this.infoData[i].fileid){
@@ -23150,7 +23424,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
       //   let _fileid = _this.importFileid(sub)
       //   fileid = [...fileid, ..._fileid]
       // }
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
 
       if (_this.infoData.length) {
         for (var i = 0; i < _this.infoData.length; i++) {
@@ -23407,7 +23681,7 @@ ${msg}
       let _this = this
 
       let fileid = _this.isFileSearch ? [..._this.fileIds] : []
-      fileid = [...fileid, ..._this.knowFileids]
+      fileid = [...fileid, ..._this.knowFileids, ..._this.knowFileids2]
       
       console.log('fileid=========',fileid)
       // let params = JSON.stringify({
@@ -23590,7 +23864,7 @@ ${msg}
     async aiSearchFile2(messages, callback) {
       let _this = this
 
-      let fileid = [..._this.knowFileids]
+      let fileid = [..._this.knowFileids, ..._this.knowFileids2]
       
       console.log('fileid=========',fileid)
 
@@ -23745,6 +24019,57 @@ ${msg}
         console.log(e);
       });
     },
+    findMatchingContents(){
+      if(!this.searchFileName){
+        this.$message.error('请输入检索关键词')
+        return
+      }
+      if(this.knowInfoDataLoading){
+        this.$message.error('检索中请稍后')
+        return
+      }
+      let sub = []
+      if (this.courseTypeId.length) {
+        for (var i = 0; i < this.courseTypeId.length; i++) {
+          let _sid = this.courseTypeId[i]
+          for (var j = 0; j < this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'].length; j++) {
+            if (_sid == this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].id) {
+              sub.push(this.CourseTypeJson['34629907-d02f-11ec-8c78-005056b86db5'][j].name)
+            }
+          }
+        }
+      }
+      this.knowInfoDataLoading = true
+      let params = {
+        type: sub.join(","),
+        string: this.searchFileName,
+      };
+      let md = new MarkdownIt();
+      this.ajax.get(this.$store.state.api + 'findMatchingContents', params).then(async res => {
+        console.log(res)
+        if(res.data.length){
+          let files = []
+          for (var i = 0; i < res.data.length; i++) {
+            let el = res.data[i];
+            files.push(await this.generateExport2(el.title, md.render(el.content)));
+          }
+          let data = {
+            target:{
+              files: files
+            }
+          }
+          console.log(data)
+          this.beforeUploadInfo2(data, 20)
+        }else{
+          this.$message.error('未检索出内容')
+        }
+        this.knowInfoDataLoading = false
+      }).catch(e => {
+        console.log('查询失败');
+        this.knowInfoDataLoading = false
+        console.log(e);
+      });
+    }
   },
   beforeDestroy() {
     // clearTimeout(this.timer);

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor