|
@@ -63,23 +63,6 @@
|
|
|
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>
|
|
|
- <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>
|
|
|
</template>
|
|
|
<script type="text/javascript">
|
|
@@ -114,10 +97,16 @@
|
|
|
props:['datas','preName','nextName','modluesLen'],
|
|
|
created(){},
|
|
|
mounted(){
|
|
|
- let scroll = setScroll(BScroll,true,'.otherper')
|
|
|
- this.scroll = scroll
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ let scroll = setScroll(BScroll,true,'.otherper')
|
|
|
+ this.scroll = scroll
|
|
|
+ scroll.on('scroll', this.onScroll)
|
|
|
+ })
|
|
|
},
|
|
|
methods:{
|
|
|
+ onScroll() {
|
|
|
+ document.activeElement.scrollIntoViewIfNeeded(true);
|
|
|
+ },
|
|
|
beBack(){
|
|
|
this.$emit('back');
|
|
|
},
|
|
@@ -132,21 +121,20 @@
|
|
|
this.labelDetail = obj.detail;
|
|
|
this.ppId = obj.ppId;
|
|
|
this.show = true;
|
|
|
-
|
|
|
- this.scroll = setScroll(BScroll,false,'.otherper')
|
|
|
},
|
|
|
complete(){
|
|
|
this.show = false;
|
|
|
this.labelDetail = {};
|
|
|
this.ppId = null;
|
|
|
// 处理明细选中的值
|
|
|
- this.scroll = setScroll(BScroll,true,'.otherper')
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.scroll.refresh()
|
|
|
+ })
|
|
|
},
|
|
|
closeDetal(){
|
|
|
this.show = false;
|
|
|
this.labelDetail = {};
|
|
|
this.ppId = null;
|
|
|
- this.scroll = setScroll(BScroll,true,'.otherper')
|
|
|
},
|
|
|
updataData(data,id,index){//输入框存值
|
|
|
let list = this.dtoList;
|
|
@@ -165,6 +153,10 @@
|
|
|
// this.$store.commit('setOrigin',{type:'3',data:data,pId:data.id});
|
|
|
this.$store.commit('setDatas',{type:moduleCP['other'],data:data,pId:data.id,ppId:id});
|
|
|
this.$store.commit('setText',{type:moduleCP['other'],text:data.value.replace(patt,'').replace(/\#\{/g,'').replace(/\}/g,''),textP:data.valueP.replace(patt,'').replace(/\#\{/g,'').replace(/\}/g,''),pId:data.id,flag:true});
|
|
|
+
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.scroll.refresh()
|
|
|
+ })
|
|
|
},
|
|
|
getText(){
|
|
|
let textArr = this.checkText;
|