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 ++++++---------
 src/App.vue                           |    2 +-
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 96b2bda..33c23af 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -55,7 +55,7 @@
     } else {
       this.activeBook = await this.config.getBookConfig(
         // childHealth
-        this.config.resourceCtx + "lifeCare"
+        this.config.resourceCtx + "childHealth"
       );
       this.config.activeBook = this.activeBook;
       this.config.goodsStore = this.activeBook.storeRefcode;
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