zhongshujie
2 天以前 ce70bc450a2401997bb850f89f3c4dc0a23e0a72
src/books/preventiveDentistry/view/components/chapter001.vue
@@ -193,7 +193,7 @@
          <p class="content">
            公元752年,王焘在《外台秘要》中已有柳枝制刷的记载,将杨柳枝用牙咬成絮状,揩刷牙面。宋代日本名僧道元禅师在《正法眼藏》中记载“僧侣们除漱口之外,尚用剪成寸余之马尾,植于牛角制成的器物上,用以刷洗牙”。公元916—1125年,辽代出现了骨柄植毛牙刷,与近代牙刷相似,国外17世纪才有植毛牙刷。公元1281年罗元益所著《卫生宝鉴》中提到要早晚刷牙2次,忽思慧在《饮膳正要》中提出“凡清旦刷牙,不如夜刷牙齿疾不生”,强调晚上刷牙的重要性。考古发现,明朝帝王们的一些牙上有楔状缺损,说明在那时刷牙就已成为习惯。
          </p>
          <h4 class="fourthTitle ">二、科学形成时期</h4>
          <h4 class="fourthTitle">二、科学形成时期</h4>
          <bookVideo :videoInfo="getResourceInfo('Z16')" :BookId="config.activeBook.bookId"></bookVideo>
          <p class="content">
            在口腔预防医学的历史上,发现口腔细菌、认识氟化物及窝沟封闭剂的诞生,大大推动了口腔预防医学的发展。前两者让人们认识了引起口腔疾病的病因,为针对性地开展口腔疾病预防奠定了基础。第三者使口腔预防有了有效的预防措施,减少了龋病的发生。
@@ -347,7 +347,7 @@
      </div>
    </div>
    <preView :md5="p_md5" :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView>
    <dialogExaminations :cardList="interfaceQuestion" :questionIDList=questionIDList :page="questionNum"
    <dialogExaminations :cardList="interfaceQuestion" :questionIDList="questionIDList" :page="questionNum"
      :questionTitle="questionTitleMain" ref="dialogRef">
    </dialogExaminations>
  </div>
@@ -365,18 +365,18 @@
    },
    getResourceInfo: {
      type: Function, // 明确指定它是一个函数
      required: true
      required: true,
    },
    interfaceQuestion: {
      type: Array,
      required: true,
      default: () => [],
    }
    },
  },
  components: {
    preView,
    bookVideo,
    dialogExaminations
    dialogExaminations,
  },
  data() {
    return {
@@ -387,7 +387,6 @@
      questionTitleMain: "",
      questionIDList: [],
      chapterNum: 2,
      cardArrayList: [],
      examinations: [
        {
          questionTitleMain: "拓展练习",
@@ -397,31 +396,12 @@
      questionData: {
        one: "",
      },
    };
  },
  watch: {
    interfaceQuestion: {
      handler(newValue, oldValue) {
        console.log('--- 子组件:interfaceQuestion 更新了! ---');
        console.log('新值 (newValue):', newValue);
        console.log('旧值 (oldValue):', oldValue);
        if (newValue && newValue.length > 0) {
        }
      },
      deep: true,
      immediate: true
    },
  },
  mounted() {
    console.log(this.interfaceQuestion, "interfaceQuestion");
    this.getQuestionData()
    this.getQuestionData();
  },
  methods: {
    toUrl(val) {
      if (val != null) {
        this.p_md5 = val.md5;
@@ -436,7 +416,9 @@
      );
    },
    getQuestionData() {
      let questionData = localStorage.getItem("preventiveDentistry-book-chapter01-questionData");
      let questionData = localStorage.getItem(
        "preventiveDentistry-book-chapter01-questionData"
      );
      if (questionData) {
        this.questionData = JSON.parse(questionData);
      }
@@ -444,15 +426,11 @@
    openQuestion(num) {
      if (num != undefined) {
        this.questionNum = this.examinations[num].questionNum;
        console.log(this.questionNum);
        this.questionTitleMain = this.examinations[num].questionTitleMain;
        console.log(this.questionTitleMain);
        this.cardArrayList = this.interfaceQuestion;
        console.log(this.cardArrayList);
        this.questionIDList = testData[this.chapterNum][this.questionNum];
        console.log(this.questionIDList);
        this.$refs.dialogRef.openDialogQuestion();
        this.$nextTick(() => {
          this.$refs.dialogRef.openDialogQuestion();
        });
      }
    },
  },