| | |
| | | <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" |
| | |
| | | " |
| | | ></TEditorVue> --> |
| | | <el-input |
| | | @input="textChange($event,nindex,value.id)" |
| | | :disabled="value.isComplete" |
| | | style="width: 94%; margin: 0 auto" |
| | | v-else-if="value.questionType == 'shortAnswer'" |
| | |
| | | return { |
| | | type: "option", |
| | | loading: false, |
| | | cardData:[] |
| | | }; |
| | | }, |
| | | inject:['changeQuestionData'], |
| | | mounted() {}, |
| | | mounted() { |
| | | this.cardData = this.cardList |
| | | }, |
| | | computed:{ |
| | | cardLists() { |
| | | return this.props.cardList |
| | |
| | | // console.log(oldData); |
| | | |
| | | }, |
| | | textChange(value,a,b) { |
| | | console.log('输入',value,a,b); |
| | | console.log(this.cardList); |
| | | this.changeQuestionData(9,this.cardList) |
| | | } |
| | | }, |
| | | }; |
| | | </script> |