|
@@ -35,6 +35,17 @@
|
|
:item="it"
|
|
:item="it"
|
|
:key="it.id"
|
|
:key="it.id"
|
|
@updata="updataData($event,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">
|
|
<div class="result" v-if="checkText.length>0">
|
|
<p class="title">{{datas.name}}</p>
|
|
<p class="title">{{datas.name}}</p>
|
|
@@ -69,6 +80,7 @@
|
|
import {moduleCP,patt,imageUrlPrefix} from '@utils/tools';
|
|
import {moduleCP,patt,imageUrlPrefix} from '@utils/tools';
|
|
import Radio from '../common/Radio.vue';
|
|
import Radio from '../common/Radio.vue';
|
|
import CheckBox from '../common/CheckBox.vue';
|
|
import CheckBox from '../common/CheckBox.vue';
|
|
|
|
+ import MultiLineInput from '../common/MultiLineInput.vue';
|
|
export default {
|
|
export default {
|
|
name:'DiagTreat',
|
|
name:'DiagTreat',
|
|
data(){
|
|
data(){
|
|
@@ -123,11 +135,17 @@
|
|
}
|
|
}
|
|
return msg;
|
|
return msg;
|
|
},
|
|
},
|
|
- updataData(data,id){//输入框存值
|
|
|
|
|
|
+ updataData(data,id,index){//输入框存值
|
|
let list = this.dtoList;
|
|
let list = this.dtoList;
|
|
for(let i in list){
|
|
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)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.$store.commit('setDatas',{type:moduleCP['diagT'],data:data,pId:data.id,ppId:id});
|
|
this.$store.commit('setDatas',{type:moduleCP['diagT'],data:data,pId:data.id,ppId:id});
|
|
@@ -141,7 +159,8 @@
|
|
Input,
|
|
Input,
|
|
ComTextArea,
|
|
ComTextArea,
|
|
Radio,
|
|
Radio,
|
|
- CheckBox
|
|
|
|
|
|
+ CheckBox,
|
|
|
|
+ MultiLineInput
|
|
},
|
|
},
|
|
/*watch:{
|
|
/*watch:{
|
|
dtoList:{
|
|
dtoList:{
|