|
@@ -11,11 +11,21 @@
|
|
|
:ppId="it.id"
|
|
|
:moduleType="datas.type"
|
|
|
@setDetail="setDetail"/>
|
|
|
- <UploadImg v-if="it.controlType==4"
|
|
|
+ <!-- 上传图片 -->
|
|
|
+ <UploadImg v-if="it.controlType==4"
|
|
|
:item="it"
|
|
|
:moduleType="datas.type"
|
|
|
:imgList="imgs"
|
|
|
/>
|
|
|
+ <!-- 输入框 -->
|
|
|
+ <Input v-if="it.controlType==6 || it.controlType==7"
|
|
|
+ :item="it"
|
|
|
+ :key="it.id"
|
|
|
+ @updata="updataData($event,it.id)"/>
|
|
|
+ <!-- 文本域 -->
|
|
|
+ <ComTextArea v-if="it.controlType == 5"
|
|
|
+ :item="it"
|
|
|
+ @updata="updataData($event,it.id)"/>
|
|
|
</div>
|
|
|
<div class="result" v-if="checkText.length>0">
|
|
|
<p class="title">治疗情况</p>
|
|
@@ -86,6 +96,16 @@
|
|
|
msg += textArr[k].text + ';'
|
|
|
}
|
|
|
return msg;
|
|
|
+ },
|
|
|
+ updataData(data,id){//输入框存值
|
|
|
+ let list = this.dtoList;
|
|
|
+ for(let i in list){
|
|
|
+ if(list[i].id==data.id){
|
|
|
+ list.splice(i,1,data)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$store.commit('setDatas',{type:'2',data:data,pId:data.id,ppId:id});
|
|
|
+ this.$store.commit('setText',{type:'2',text:data.value,pId:data.id,flag:true});
|
|
|
}
|
|
|
},
|
|
|
components:{
|