|
@@ -5,49 +5,64 @@
|
|
|
v-if="dtoList"
|
|
|
:key="it.id"
|
|
|
class="label">
|
|
|
- <p class="quest">{{i + 1 +'.' + (it.description||it.name)}}</p>
|
|
|
- <img class="questionImg" :src="it.url.replace('{imageUrlPrefix}',imgUrl)" v-if="it.url">
|
|
|
- <!-- <Label v-if="it.controlType==0" -->
|
|
|
- <Label v-if="it.controlType==0"
|
|
|
- :item="it"
|
|
|
- :ppId="it.id"
|
|
|
- :moduleType="datas.type"
|
|
|
- @setDetail="setDetail"/>
|
|
|
- <!-- 输入框 -->
|
|
|
- <Input v-if="it.controlType==6 || it.controlType==7"
|
|
|
+ <p class="quest">{{i + 1 +'.' + (it.description||it.name)}}</p>
|
|
|
+ <img class="questionImg" :src="it.url.replace('{imageUrlPrefix}',imgUrl)" v-if="it.url">
|
|
|
+ <!-- <Label v-if="it.controlType==0" -->
|
|
|
+ <Label v-if="it.controlType==0"
|
|
|
:item="it"
|
|
|
- :key="it.id"
|
|
|
- @updata="updataData($event,it.id)"/>
|
|
|
- <!-- 文本域 -->
|
|
|
- <ComTextArea v-if="it.controlType == 5"
|
|
|
- :item="it"
|
|
|
- @updata="updataData($event,it.id)"/>
|
|
|
- <Radio v-if="it.controlType==1"
|
|
|
- :item="it"
|
|
|
- :key="it.id"
|
|
|
- @updata="updataData($event,it.id)"/>
|
|
|
- <CheckBox v-if="it.controlType==2"
|
|
|
- :item="it"
|
|
|
- :key="it.id"
|
|
|
- @updata="updataData($event,it.id)"/>
|
|
|
- <!-- 多行输入 存值和回读事件未处理 -->
|
|
|
- <!-- <template
|
|
|
- v-if="it.controlType == 3"
|
|
|
- v-for="(part,index) in it.questionDetailList"
|
|
|
- >
|
|
|
- <MultiLineInput
|
|
|
- v-if="it.controlType == 3"
|
|
|
- :msg="part.name"
|
|
|
- :part="part"
|
|
|
- @updata="updataData($event,index,it)"
|
|
|
- ></MultiLineInput>
|
|
|
- </template> -->
|
|
|
- </div>
|
|
|
- <div class="result" v-if="checkText.length>0">
|
|
|
- <p class="title">{{datas.name}}</p>
|
|
|
- <p>{{getText()}}</p>
|
|
|
+ :ppId="it.id"
|
|
|
+ :moduleType="datas.type"
|
|
|
+ @setDetail="setDetail"/>
|
|
|
+ <!-- 输入框 -->
|
|
|
+ <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)"/>
|
|
|
+ <Radio v-if="it.controlType==1"
|
|
|
+ :item="it"
|
|
|
+ :key="it.id"
|
|
|
+ @updata="updataData($event,it.id)"/>
|
|
|
+ <CheckBox v-if="it.controlType==2"
|
|
|
+ :item="it"
|
|
|
+ :key="it.id"
|
|
|
+ @updata="updataData($event,it.id)"/>
|
|
|
+ <!-- 多行输入-->
|
|
|
+ <template
|
|
|
+ v-if="it.controlType == 3"
|
|
|
+ v-for="(part,index) in it.questionDetailList"
|
|
|
+ >
|
|
|
+ <MultiLineInput
|
|
|
+ :msg="part.name"
|
|
|
+ :part="part"
|
|
|
+ @updata="updataData($event,it.id,index)"
|
|
|
+ ></MultiLineInput>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="result" v-if="checkText.length>0">
|
|
|
+ <p class="title">{{datas.name}}</p>
|
|
|
+ <p>{{getText()}}</p>
|
|
|
+ </div>
|
|
|
+ <div class="foot" v-if="modluesLen==3&&!nextName||modluesLen==2">
|
|
|
+ <span class="back" @click="beBack">{{'返回'+ preName}}</span>
|
|
|
+ <span class="next" @click="toNext">{{'预览并提交病历'}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="foot" v-else>
|
|
|
+ <span class="back" @click="beBack">{{'返回'+ preName}}</span>
|
|
|
+ <span class="next" @click="toNext">{{'进入'+ nextName}}</span>
|
|
|
+ </div>
|
|
|
+ <div class="detail" v-if="show">
|
|
|
+ <DetailBox @close="closeDetal"
|
|
|
+ :data="labelDetail"
|
|
|
+ :moduleType="datas.type"
|
|
|
+ :ppId="ppId"
|
|
|
+ v-if="labelDetail.questionMapping&&labelDetail.questionMapping.length>0"
|
|
|
+ @pComplete="complete"/>
|
|
|
+ </div>
|
|
|
|
|
|
<div class="foot" v-if="modluesLen==3&&!nextName||modluesLen==2">
|
|
|
<span class="back" @click="beBack">{{'返回'+ preName}}</span>
|
|
@@ -133,11 +148,17 @@
|
|
|
this.ppId = null;
|
|
|
this.scroll = setScroll(BScroll,true,'.otherper')
|
|
|
},
|
|
|
- updataData(data,id){//输入框存值
|
|
|
+ updataData(data,id,index){//输入框存值
|
|
|
let list = this.dtoList;
|
|
|
for(let i in list){
|
|
|
- if(list[i].id==data.id){
|
|
|
- list.splice(i,1,data)
|
|
|
+ // if(list[i].id==data.id){
|
|
|
+ if(list[i].id==id){
|
|
|
+ if(list[i].controlType == 3){//多行输入
|
|
|
+ let detailList = list[i].questionDetailList;
|
|
|
+ detailList.splice(index,1,data);
|
|
|
+ }else{
|
|
|
+ list.splice(i,1,data)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|