luolei 5 anni fa
parent
commit
2e4aee967b
1 ha cambiato i file con 10 aggiunte e 3 eliminazioni
  1. 10 3
      src/components/Preview.vue

+ 10 - 3
src/components/Preview.vue

@@ -277,14 +277,20 @@ export default {
         if(i == 0){
           detailList[0]=this.getStr(symptom.text,1)
         }else if(i == 1){
-          console.log(diagnose)
+          let tmpArr = []
+          for(let j = 0;j < symptom.text.length;j++){
+            tmpArr.push(symptom.text[j].textP)
+          }
+          detailList[1].content=JSON.stringify(tmpArr)
+          detailList[1].contentValue=tmpArr.join()
         }else if(i == 2){
           detailList[2] = this.getStr(others.text,3)
         }else if(i == 3){
-          detailList[i].content=addContent.txtDoc
-          detailList[i].contentValue=addContent.txt
+          detailList[3].content=addContent.txtDoc
+          detailList[3].contentValue=addContent.txt
         }
       }
+      console.log(detailList)
       // // if(symptom.text.length>0){
       //   detailList[0]=this.getStr(symptom.text,1)
       // // }
@@ -327,6 +333,7 @@ export default {
         // "type": 0//病历分类(1:门诊,2:住院)
       }
       // console.log(params)
+      return;
       api.saveInquiry(params).then((res) => {
         if (res.data.code == 0) {
           this.$store.commit('handleToggleShow', false);