Browse Source

添加contentJson

luolei 5 years ago
parent
commit
423a7803e1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/Preview.vue

+ 3 - 0
src/components/Preview.vue

@@ -266,6 +266,7 @@ export default {
         tmpStrDoc+=arr[i].textP+';'
       }
       obg.content=tmpStr
+      obg.contentJson=tmpStr
       obg.contentValue=tmpStrDoc
       obg.type=flg
       return obg;
@@ -282,11 +283,13 @@ export default {
             tmpArr.push(symptom.text[j].textP)
           }
           detailList[1].content=JSON.stringify(tmpArr)
+          detailList[1].contentJson=JSON.stringify(tmpArr)
           detailList[1].contentValue=tmpArr.join()
         }else if(i == 2){
           detailList[2] = this.getStr(others.text,3)
         }else if(i == 3){
           detailList[3].content=addContent.txtDoc
+          detailList[3].contentJson=addContent.txtDoc
           detailList[3].contentValue=addContent.txt
         }
       }