|
@@ -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();
|
|
|
}
|