闫增涛
2024-05-28 f90dde2f7bb903016a8b8d12fe49cda9011b3b6b
src/components/examinations/index.vue
@@ -1,7 +1,7 @@
<template>
  <div class="examination" v-loading="!cardList.length">
  <div class="examination" v-loading="!cardData.length">
    <div
      v-for="(item, nindex) in cardList"
      v-for="(item, nindex) in cardData"
      :key="nindex"
      class="border-box"
      v-show="item.infoList.length"
@@ -211,7 +211,6 @@
            "
          ></TEditorVue> -->
            <el-input
              @input="textChange($event,nindex,value.id)"
              :disabled="value.isComplete"
              style="width: 94%; margin: 0 auto"
              v-else-if="value.questionType == 'shortAnswer'"
@@ -444,10 +443,13 @@
    return {
      type: "option",
      loading: false,
      cardData:[]
    };
  },
  inject:['changeQuestionData'],
  mounted() {},
  mounted() {
    this.cardData = this.cardList
  },
  computed:{
    cardLists() {
      return this.props.cardList
@@ -609,11 +611,6 @@
      // console.log(oldData);
      
    },
    textChange(value,a,b) {
      console.log('输入',value,a,b);
      console.log(this.cardList);
      this.changeQuestionData(9,this.cardList)
    }
  },
};
</script>