YM
2024-05-28 30db720d5f47f344db66a8b97692fe7a5e14ba5d
Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout
15个文件已删除
2个文件已修改
2036 ■■■■■ 已修改文件
src/books/lifeCare/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/1-test.vue 411 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/Cover.jpg 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/back001.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/chapter019.vue 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/content.opf 265 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/coverpage.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/preface/index.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/preface/section1.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/preface/section2.vue 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/preface/section3.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/preface/section4.vue 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/preface/section5.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/preface/section6.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/test.vue 239 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/view/toc.ncx 825 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/examinations/index.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/lifeCare/index.vue
@@ -89,7 +89,7 @@
  },
  mounted() {
    // 默认加载章节
    this.showCatalogList = [0];
    this.showCatalogList = [1];
    // 滚动监听节流
    this.throttledScrollHandler = _.throttle(
      this.scrollFun,
src/books/lifeCare/view/1-test.vue
File was deleted
src/books/lifeCare/view/Cover.jpg
Binary files differ
src/books/lifeCare/view/back001.vue
File was deleted
src/books/lifeCare/view/chapter019.vue
File was deleted
src/books/lifeCare/view/content.opf
File was deleted
src/books/lifeCare/view/coverpage.vue
File was deleted
src/books/lifeCare/view/preface/index.vue
File was deleted
src/books/lifeCare/view/preface/section1.vue
File was deleted
src/books/lifeCare/view/preface/section2.vue
File was deleted
src/books/lifeCare/view/preface/section3.vue
File was deleted
src/books/lifeCare/view/preface/section4.vue
File was deleted
src/books/lifeCare/view/preface/section5.vue
File was deleted
src/books/lifeCare/view/preface/section6.vue
File was deleted
src/books/lifeCare/view/test.vue
File was deleted
src/books/lifeCare/view/toc.ncx
File was deleted
src/components/examinations/index.vue
@@ -449,11 +449,8 @@
  inject:['changeQuestionData'],
  mounted() {
    this.cardData = this.cardList
  },
  computed:{
    cardLists() {
      return this.props.cardList
    }
    console.log('this.cardList',this.cardList);
    console.log('this.cardData',this.cardData);
  },
  methods: {
    // 数组转为字符串方法
@@ -488,20 +485,19 @@
      }
    },
    redo() {
      for (let index = 0; index < this.cardList.length; index++) {
        const item = this.cardList[index];
      for (let index = 0; index < this.cardData.length; index++) {
        const item = this.cardData[index];
        for (let cindex = 0; cindex < item.infoList.length; cindex++) {
          const citem = item.infoList[cindex];
          citem.userAnswer = "";
          citem.isComplete = false;
        }
      }
      console.log('重做',this.cardList);
    },
    openAnswers() {
      this.$data.loading = true;
      for (let index = 0; index < this.cardList.length; index++) {
        const item = this.cardList[index];
      for (let index = 0; index < this.cardData.length; index++) {
        const item = this.cardData[index];
        for (let cindex = 0; cindex < item.infoList.length; cindex++) {
          const citem = item.infoList[cindex];
          citem.isComplete = true;
@@ -514,7 +510,7 @@
    },
    // 批改题目  (练习,我的做题,我的收藏模式下)
    handleQuestion() {
      const list = this.$props.cardList;
      const list = this.$props.cardData;
      for (let index = 0; index < list.length; index++) {
        const item = list[index];
        for (let cindex = 0; cindex < item.infoList.length; cindex++) {
@@ -559,8 +555,8 @@
          }
        }
      }
      this.$props.cardList = list;
      console.log(this.$props.cardList);
      this.$props.cardData = list;
      console.log(this.$props.cardData);
    },
    getParentWithClass(element, className) {
      while (element.parentElement) {
@@ -584,8 +580,8 @@
        );
        let oldData = oldAnswerData ? JSON.parse(oldAnswerData) : {};
        const asnwerList = [];
        for (let index = 0; index < this.$props.cardList.length; index++) {
          const item = this.$props.cardList[index];
        for (let index = 0; index < this.$props.cardData.length; index++) {
          const item = this.$props.cardData[index];
          for (let cindex = 0; cindex < item.infoList.length; cindex++) {
            const citem = item.infoList[cindex];
            asnwerList.push({
@@ -596,6 +592,10 @@
        }
        if(oldData[pageNum]) {
          oldData[pageNum].push(asnwerList)
          // for (let dindex = 0; dindex < oldData[pageNum].length; dindex++) {
          //   const ditem = oldData[pageNum][dindex];
          //   for(let eindex = 0; eindex < asnwerList.)
          // }
        } else {
          oldData[pageNum] = asnwerList
        }