|
|
|
|
@ -196,6 +196,23 @@
|
|
|
|
|
</el-result> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
<div class="demo-image__error" flex gap-2> |
|
|
|
|
<span class="link pointer" @click="openGuidePreview"> |
|
|
|
|
导入模板已兼容公安信访综合信息系统的台账,在公安部信访平台导出台账后直接在此导入。(点击查看示例图片)(共 {{ srcList.length }} 张) |
|
|
|
|
</span> |
|
|
|
|
<el-image-viewer |
|
|
|
|
v-if="showPreview" |
|
|
|
|
show-progress |
|
|
|
|
:url-list="srcList" |
|
|
|
|
@close="showPreview = false" |
|
|
|
|
@switch="onPreviewChange" |
|
|
|
|
> |
|
|
|
|
<!-- 底部说明 --> |
|
|
|
|
<!-- <div class="image-desc">--> |
|
|
|
|
<!-- {{ imageList[currentIndex]?.desc }}--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
</el-image-viewer> |
|
|
|
|
</div> |
|
|
|
|
<footer class="flex end mt-20 v-center"> |
|
|
|
|
<el-button size="large" @click="handlePrev" v-if="activeStep !== 3 && activeStep !== 0" |
|
|
|
|
>上一步</el-button |
|
|
|
|
@ -284,6 +301,41 @@ watch(
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
const showPreview = ref(false) |
|
|
|
|
const currentIndex = ref(0); |
|
|
|
|
|
|
|
|
|
const onPreviewChange = (index) => { |
|
|
|
|
currentIndex.value = index; |
|
|
|
|
}; |
|
|
|
|
const imageList = [ |
|
|
|
|
{ |
|
|
|
|
url: "/imgs/gabxftp.jpg", |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
const srcList = imageList.map(i => i.url); |
|
|
|
|
const openGuidePreview = () => { |
|
|
|
|
showPreview.value = true; |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.demo-image__error .el-image { |
|
|
|
|
max-width: 300px; |
|
|
|
|
max-height: 200px; |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.image-desc { |
|
|
|
|
position: fixed; |
|
|
|
|
left: 50%; |
|
|
|
|
top: 20%; |
|
|
|
|
transform: translateX(-50%); |
|
|
|
|
max-width: 70%; |
|
|
|
|
padding: 8px 16px; |
|
|
|
|
background: rgba(0, 0, 0, 0.6); |
|
|
|
|
color: #fff; |
|
|
|
|
font-size: 14px; |
|
|
|
|
border-radius: 6px; |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|