Merge branch 'develop' of http://101.43.41.9:13000/xzzn/emsfront into develop

This commit is contained in:
白菜
2026-01-28 21:36:14 +08:00
4 changed files with 104 additions and 16 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

View File

@ -1,8 +1,32 @@
<template> <template>
<el-dialog :fullscreen="true" :append-to-body="true" :visible.sync="show" :show-close="false" top="0" <el-dialog
custom-class="big-data-dialog"> :fullscreen="true"
<img src="@/assets/images/ems/bigData.png" alt=""> :append-to-body="true"
<div class="close-btn" @click="show=false"> :visible.sync="show"
:show-close="false"
top="0"
custom-class="big-data-dialog"
>
<div class="swiper-container">
<div class="swiper-icon left-icon" v-show="imgIndex > 0">
<i class="el-icon-d-arrow-left icon" @click="toLeft"></i>
</div>
<div v-show="showRightIcon" class="swiper-icon right-icon">
<i class="el-icon-d-arrow-right icon" @click="toRight"></i>
</div>
<div
class="img-container"
:style="{ transform: 'translateX(' + imgIndex * -100 + 'vw)' }"
>
<img
v-for="index in maxImgNumber"
:key="'swiperImg' + index"
:src="require(`@/assets/images/ems/bigData-${index}.png`)"
alt=""
/>
</div>
</div>
<div class="close-btn" @click="show = false">
<i class="el-icon-close"></i> <i class="el-icon-close"></i>
</div> </div>
</el-dialog> </el-dialog>
@ -14,15 +38,54 @@
top: 10px; top: 10px;
font-size: 23px; font-size: 23px;
line-height: 20px; line-height: 20px;
color: rgba(176, 228, 255, 0.7); color: rgba(217, 242, 255, 1);
cursor: pointer; cursor: pointer;
} }
.swiper-container {
img { height: 100%;
height: 100vh; width: 100%;
overflow: hidden;
position: relative;
.swiper-icon {
color: rgba(217, 242, 255, 1);
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 20;
cursor: pointer;
font-size: 30px;
padding: 20px;
background: transparent;
&.left-icon {
left: 20px;
}
&.right-icon {
right: 20px;
}
&:hover {
.icon {
opacity: 1;
}
}
.icon {
transition: all 0.6s;
opacity: 0;
}
}
.img-container {
height: 100%;
transition: all 1s;
display: flex;
flex-direction: row;
z-index: 0;
img {
width: 100vw; width: 100vw;
height: 100vh;
display: block; display: block;
margin: 0; margin: 0;
flex-shrink: 0;
}
}
} }
</style> </style>
<style lang="scss"> <style lang="scss">
@ -42,8 +105,33 @@ img {
export default { export default {
data() { data() {
return { return {
show: false show: false,
} imgIndex: 0,
} maxImgNumber: 3,
} };
},
computed: {
showRightIcon() {
return this.imgIndex < this.maxImgNumber - 1;
},
},
watch: {
show: {
handler(newValue) {
if (!newValue) this.imgIndex = 0;
},
immediate: true,
},
},
methods: {
toLeft() {
if (this.imgIndex === 0) return;
this.imgIndex -= 1;
},
toRight() {
if (this.imgIndex >= this.maxImgNumber - 1) return;
this.imgIndex += 1;
},
},
};
</script> </script>