Browse Source

文本域修改值3290

zhouna 5 years ago
parent
commit
13b92fbca5
2 changed files with 2 additions and 7 deletions
  1. 1 1
      src/common/ComTextArea.vue
  2. 1 6
      src/components/MainPage.vue

+ 1 - 1
src/common/ComTextArea.vue

@@ -34,7 +34,7 @@ export default {
   },
   data() {
     return {
-      txt: this.item.value||'', //回读用
+      txt: this.item.content||'', //回读用
       sure:false,
       // txt:''
     }

+ 1 - 6
src/components/MainPage.vue

@@ -268,7 +268,7 @@ export default {
         tmpPreItem = tmpArr[this.num-1];
         this.num=this.num-1;
       }
-      tmpPreItem.content='';
+      +tmpPreItem.controlType===5?'':tmpPreItem.content='';
       this.symptomResult = tmpPreItem;
       const timer = setTimeout(()=>{
         this.type = tmpPreItem.controlType;
@@ -367,11 +367,6 @@ export default {
     },
     closeTip(){
       this.wrong=false;
-      /*const _this=this;
-      const timer=setTimeout(()=>{
-        _this.wrong=false;
-        clearTimeout(timer)
-      },4500);*/
     },
     cancelSymptom(){      //修改(即删除)已选主症
       this.symptomQasList = [];