From f90dde2f7bb903016a8b8d12fe49cda9011b3b6b Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 28 五月 2024 16:42:59 +0800 Subject: [PATCH] 优化 --- src/components/examinations/index.vue | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index 6b36a86..393f4cb 100644 --- a/src/components/examinations/index.vue +++ b/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> -- Gitblit v1.9.1