靶病灶评估列表下拉框滚动事件优化

uat_us
caiyiling 2024-04-18 15:57:39 +08:00
parent c886900005
commit 28b644a0ce
1 changed files with 5 additions and 3 deletions

View File

@ -18,7 +18,7 @@
<i class="el-icon-circle-close" style="font-size: 25px;cursor: pointer;" @click="handleClose" /> <i class="el-icon-circle-close" style="font-size: 25px;cursor: pointer;" @click="handleClose" />
</div> </div>
</div> </div>
<div style="height: 420px;overflow-y: auto;overflow-x: hidden;"> <div style="height: 420px;overflow-y: auto;overflow-x: hidden;" @scroll.stop="scrollHandle">
<el-form-item <el-form-item
:label="$t('trials:reading:title:lesionType')" :label="$t('trials:reading:title:lesionType')"
prop="LesionType" prop="LesionType"
@ -356,11 +356,13 @@ export default {
}) })
var digitPlaces = Number(localStorage.getItem('digitPlaces')) var digitPlaces = Number(localStorage.getItem('digitPlaces'))
this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces
window.addEventListener('scroll', this.scrollHandle , true) // var container = document.getElementById('qs_container')
// container.addEventListener('scroll', this.scrollHandle , true)
}, },
beforeDestroy() { beforeDestroy() {
DicomEvent.$off('handleImageQualityAbnormal') DicomEvent.$off('handleImageQualityAbnormal')
window.removeEventListener('scroll', this.scrollHandle , true) // var container = document.getElementById('qs_container')
// container.removeEventListener('scroll', this.scrollHandle , true)
}, },
methods: { methods: {
scrollHandle() { scrollHandle() {