lugano病灶标记无截图时添加提示

uat_us
caiyiling 2024-03-20 10:11:28 +08:00
parent 9fbeb4ce04
commit 9577d1d90e
1 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,7 @@
/> />
<div ref="imagesWrapper" class="images"> <div ref="imagesWrapper" class="images">
<div v-if="noData" class="empty-text"> <div v-if="noData" class="empty-text">
<slot name="empty">暂无数据</slot> <slot name="empty">{{ $t('trials:lugano:message:nodata') }}</slot>
</div> </div>
<div v-show="!noData" class="items" :style="itemsStyle"> <div v-show="!noData" class="items" :style="itemsStyle">
<div <div
@ -130,6 +130,11 @@ export default {
const loading = this.$loading({ fullscreen: true }) const loading = this.$loading({ fullscreen: true })
getPreviousOtherPicturePath({ rowId: this.lesionId }).then(res => { getPreviousOtherPicturePath({ rowId: this.lesionId }).then(res => {
this.previewImages = res.Result this.previewImages = res.Result
if (this.previewImages.length === 0) {
this.$alert(this.$t('trials:lugano:message:noScreenshot'), this.$t('trials:lugano:message:warnTip'), {
callback: action => {}
})
}
loading.close() loading.close()
resolve() resolve()
}).catch(() => { }).catch(() => {