Browse Source

暴风眼2.0.0上线bug测试及修改

master
aBin 3 years ago
parent
commit
6000be9db8
  1. 5
      src/components/PatientList/PatientList.vue
  2. 13
      src/components/Test/Test.vue
  3. 20
      src/components/Test/component/Talk.vue
  4. 4
      src/pages/inner/inner.vue

5
src/components/PatientList/PatientList.vue

@ -369,10 +369,13 @@ export default {
}, 150);
},
},
onShow() {},
// --
beforeUpdate() {},
// --
updated() {},
updated() {
this.getData(true);
},
// --()
activated() {},
// --()

13
src/components/Test/Test.vue

@ -3,7 +3,7 @@
<div bordered class="list-box" v-for="(item, index) in test" :key="index">
<template v-for="(listItem, listIndex) in item">
<template v-if="listItem.code === 'ZQTH-SJ'">
<Talk :key="listIndex"/>
<Talk :key="listIndex" @changeHeigt="changeHeigt" />
</template>
<template v-else>
<div
@ -491,6 +491,9 @@ export default {
},
},
methods: {
changeHeigt() {
this.$emit('getCollaoseHeight', this.testIndex);
},
/**
* 判断当前 item 是否显示
* 根据 显示条件: isShow 是否和父级code: Fcode 的值相等判断
@ -859,7 +862,6 @@ export default {
},
// ,
iptChangeRadio(value, code, index, itemIndex) {
console.log('value, code, index, itemIndex: ', value, code, index, itemIndex);
this.Rerender(value, index, itemIndex);
this.setAnswer(code, value);
},
@ -887,7 +889,12 @@ export default {
},
// --
mounted() {},
mounted() {
const that = this
this.$nextTick(()=> {
that.changeHeigt();
})
},
created() {
this.test = [...this.list];
},

20
src/components/Test/component/Talk.vue

@ -1,5 +1,5 @@
<template>
<div class="talk" style="margin-top:8px">
<div class="talk" style="margin-top:8px" @click="change">
<div class="bg-white list-box">
<div class="list-item">
<div>谈话开始时间</div>
@ -19,11 +19,12 @@
style="margin-top:8px"
:bordered="false"
expand-icon-position="right"
ref="collapseView1"
>
<!-- <template #expandIcon="props">
<u-icon type="down" :rotate="props.isActive ? 0 : -180" />
</template> -->
<u-collapse-item :open="false" class="w-full" title="谈话辅助工具" :style="customStyle">
<u-collapse-item @change="change" :open="false" class="w-full" title="谈话辅助工具" :style="customStyle">
<!-- <video class="thr m-auto fill-width" src="https://www.tall.wiki/staticrec/photos/001.mp4"></video> -->
<!-- <video id="video" src="https://www.tall.wiki/gateway/qcp/v3.0/uploads/1.mp4" contr
ols="controls" class="fill-width"></video> -->
@ -53,8 +54,10 @@
style="margin-top:8px"
:bordered="false"
expand-icon-position="right"
ref="collapseView2"
>
<u-collapse-item :open="false" class="w-full" title="知情同意书存档" :style="customStyle">
<u-collapse-item @change="change" :open="false" class="w-full" title="知情同意书存档" :style="customStyle">
<u-upload
name="files"
:header="header"
@ -124,6 +127,17 @@ export default {
this.getDefault()
},
methods: {
change() {
const that = this;
//
this.$nextTick(() => {
that.$refs[`collapseView1`].init();
that.$refs[`collapseView2`].init();
});
setTimeout(() =>{
that.$emit('changeHeigt');
},200)
},
//
successUpload() {
const lists = this.$refs.uUpload.lists;

4
src/pages/inner/inner.vue

@ -258,10 +258,12 @@ export default {
//
getCollaoseHeight(index) {
const that = this;
// console.log('this.$refs', that.$refs[`collapseView${index}`]);
//
this.$nextTick(() => {
that.$refs[`collapseView${index}`][0].init();
setTimeout(() => {
that.$refs[`collapseView${index}`][0].init();
}, 200);
});
},
// modal,,

Loading…
Cancel
Save