11wqe1 2 ヶ月 前
コミット
ccce72b39f

+ 51 - 3
src/components/easy2/studyStudent.vue

@@ -15545,7 +15545,11 @@ import evaTable from "./commpont/evaTable";
 import { v4 as uuidv4 } from "uuid";
 import statisticalAnalysis from "../components/statisticalAnalysis.vue";
 import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
-
+var OpenCC = require("opencc-js");
+let converter = OpenCC.Converter({
+  from: "hk",
+  to: "cn"
+});
 const getFile = url => {
   return new Promise((resolve, reject) => {
     var credentials = {
@@ -20878,6 +20882,16 @@ export default {
               this.fileC[i] = c.filter(el => {
                 return el.type == 12;
               });
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               // else if (c[j].type == 12) {
               //     this.fileC[i].push(c[j]);
               //   }
@@ -21005,7 +21019,19 @@ export default {
               this.isClickNav = "";
               this.showType = "";
             }
-
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
+            
             this.vChapterData = _chapterData;
           } else {
             this.showType = 0;
@@ -21060,6 +21086,17 @@ export default {
               this.fileC[i] = c.filter(el => {
                 return el.type == 12;
               });
+
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
@@ -21147,7 +21184,18 @@ export default {
               this.isClickNav = "";
               this.showType = "";
             }
-
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
             this.vChapterData = _chapterData;
             this.$forceUpdate();
           }

+ 49 - 2
src/components/easy3/studyStudent.vue

@@ -12092,7 +12092,11 @@ import MarkdownIt from "markdown-it";
 import statisticalAnalysis from '../components/statisticalAnalysis.vue'
 import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
 import { v4 as uuidv4 } from "uuid";
-
+var OpenCC = require("opencc-js");
+let converter = OpenCC.Converter({
+  from: "hk",
+  to: "cn"
+});
 const getFile = (url) => {
   return new Promise((resolve, reject) => {
     var credentials = {
@@ -16646,6 +16650,16 @@ export default {
               this.fileC[i] = c.filter((el) => {
                 return el.type == 12;
               });
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               // else if (c[j].type == 12) {
               //     this.fileC[i].push(c[j]);
               //   }
@@ -16774,6 +16788,18 @@ export default {
               this.showType = "";
             }
 
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
             this.vChapterData = _chapterData;
           } else {
             // this.showType = 0;
@@ -16828,6 +16854,16 @@ export default {
               this.fileC[i] = c.filter((el) => {
                 return el.type == 12;
               });
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
@@ -16917,7 +16953,18 @@ export default {
               this.isClickNav = "";
               // this.showType = "";
             }
-
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
             this.vChapterData = _chapterData;         
             this.$forceUpdate();
           }

+ 57 - 3
src/components/studyStudent.vue

@@ -12032,7 +12032,11 @@ import classRoomHelper from './classRoomHelper/index.vue'
 import statisticalAnalysis from "./components/statisticalAnalysis.vue";
 import choseWorksDetailDialog from './components/choseWorksDetailDialog.vue';
 import { v4 as uuidv4 } from "uuid";
-
+var OpenCC = require("opencc-js");
+let converter = OpenCC.Converter({
+  from: "hk",
+  to: "cn"
+});
 const getFile = (url) => {
   return new Promise((resolve, reject) => {
     var credentials = {
@@ -16637,6 +16641,18 @@ export default {
               this.fileC[i] = c.filter((el) => {
                 return el.type == 12;
               });
+              console.log('this.fileC[i]',this.fileC[i]);
+              
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               // else if (c[j].type == 12) {
               //     this.fileC[i].push(c[j]);
               //   }
@@ -16763,7 +16779,20 @@ export default {
               this.isClickNav = "";
               this.showType = "";
             }
-
+            console.log('_chapterData',_chapterData);
+
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
             this.vChapterData = _chapterData;
           } else {
             this.showType = 0;
@@ -16818,6 +16847,18 @@ export default {
               this.fileC[i] = c.filter((el) => {
                 return el.type == 12;
               });
+              console.log('this.fileC[i]',this.fileC[i]);
+
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
@@ -16905,7 +16946,20 @@ export default {
               this.isClickNav = "";
               this.showType = "";
             }
-
+            console.log('_chapterData66666',_chapterData);
+
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
             this.vChapterData = _chapterData;
             this.$forceUpdate();
           }

+ 49 - 0
src/components/studySutdentClass/studyStudent.vue

@@ -15102,6 +15102,11 @@ import markScore from "./commpont/markScore";
 import markDialog from "./commpont/markDialog";
 import evaTable from "./commpont/evaTable";
 
+var OpenCC = require("opencc-js");
+let converter = OpenCC.Converter({
+  from: "hk",
+  to: "cn"
+});
 const getFile = (url) => {
   return new Promise((resolve, reject) => {
     var credentials = {
@@ -20300,6 +20305,16 @@ export default {
               this.fileC[i] = c.filter((el) => {
                 return el.type == 12;
               });
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               // else if (c[j].type == 12) {
               //     this.fileC[i].push(c[j]);
               //   }
@@ -20427,6 +20442,18 @@ export default {
               this.isClickNav = "";
               this.showType = "";
             }
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
 
             this.vChapterData = _chapterData;
           } else {
@@ -20482,6 +20509,16 @@ export default {
               this.fileC[i] = c.filter((el) => {
                 return el.type == 12;
               });
+              if (this.tType == 2) {
+                if (this.fileC[i].length) {
+                  let yym1 =  this.fileC[i].filter(e=>{
+                    if(!converter(e.name).includes(converter("教案"))){
+                      return e
+                    }
+                  })
+                  this.fileC[i] = yym1
+                }
+              }
               for (var j = 0; j < c.length; j++) {
                 if (c[j].type == 7) {
                   this.chapToolList[i].push(c[j]);
@@ -20572,6 +20609,18 @@ export default {
               // this.showType = "";
             }
 
+            if (this.tType == 2) {
+              _chapterData.forEach((e,i)=>{
+                if (e.length) {
+                  let yym =  e.filter(k=>{
+                    if(!converter(k.name).includes(converter("教案"))){
+                      return k
+                    }
+                  })
+                  _chapterData[i] = yym
+                }
+              })
+            }
             this.vChapterData = _chapterData;
             this.$forceUpdate();
           }