对接数据接口

master
fanluyan 2 years ago
parent 6e7dd5af92
commit fde176b539

@ -6,8 +6,12 @@
:options="swiperOptionTop" :options="swiperOptionTop"
ref="swiperTop" ref="swiperTop"
> >
<swiper-slide class="slide-1" v-for="item in bigImg" :key="item.id"> <swiper-slide
<img :src="item.url" style="width: 100%; height: 100%" alt="" /> class="slide-1"
v-for="item in terminalPhoto"
:key="item.id"
>
<img :src="item.path" style="width: 100%; height: 100%" alt="" />
</swiper-slide> </swiper-slide>
<div <div
class="swiper-button-next swiper-button-white" class="swiper-button-next swiper-button-white"
@ -27,11 +31,11 @@
<swiper-slide <swiper-slide
class="slide" class="slide"
style="width: 30%; height: 100%" style="width: 30%; height: 100%"
v-for="(item, index) in bigImg" v-for="(item, index) in terminalPhoto"
:key="item.id" :key="item.id"
> >
<img style="width: 100%; height: 100%" :src="item.url" alt="" /> <img style="width: 100%; height: 100%" :src="item.path" alt="" />
<p class="timeInfo">{{ 7 + index }}:00:12</p> <p class="timeInfo">{{ item.photoTime }}</p>
</swiper-slide> </swiper-slide>
<div <div
class="swiper-button-next swiper-button-white" class="swiper-button-next swiper-button-white"
@ -47,6 +51,12 @@
<script> <script>
export default { export default {
props: {
terminalPhoto: {
type: Array,
default: () => [],
},
},
mounted() { mounted() {
// swiper // swiper
this.$nextTick(() => { this.$nextTick(() => {
@ -59,32 +69,32 @@ export default {
data() { data() {
return { return {
// //
bigImg: [ // bigImg: [
{ // {
url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/210509/XYIGQ10C221000080_21050918190300_1_255.jpg", // url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/210509/XYIGQ10C221000080_21050918190300_1_255.jpg",
id: 0, // id: 0,
}, // },
{ // {
url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323100012_1_255_res.jpg", // url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323100012_1_255_res.jpg",
id: 1, // id: 1,
}, // },
{ // {
url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323090012_1_255_res.jpg", // url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323090012_1_255_res.jpg",
id: 2, // id: 2,
}, // },
{ // {
url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323080011_1_255_res.jpg", // url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323080011_1_255_res.jpg",
id: 3, // id: 3,
}, // },
{ // {
url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323070012_1_255_res.jpg", // url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323070012_1_255_res.jpg",
id: 4, // id: 4,
}, // },
{ // {
url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323060012_1_255_res.jpg", // url: "http://180.166.218.222:8104/media/local/XYIGQ10C221000080/202303/XYIGQ10C221000080_20230323060012_1_255_res.jpg",
id: 5, // id: 5,
}, // },
], // ],
swiperOptionTop: { swiperOptionTop: {
zoom: true, zoom: true,
loop: true, loop: true,
@ -120,7 +130,7 @@ export default {
methods: {}, methods: {},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less">
.thumb-example { .thumb-example {
width: 100%; width: 100%;
display: flex; display: flex;
@ -135,8 +145,9 @@ export default {
height: 20% !important; height: 20% !important;
box-sizing: border-box; box-sizing: border-box;
padding: 10px 0px; padding: 10px 0px;
width: auto; width: 100%;
margin-left: 2px; margin-left: 2px;
background-color: #f0f0f8;
.swiper-button-next { .swiper-button-next {
right: 0px; right: 0px;
} }
@ -153,8 +164,6 @@ export default {
text-align: center; text-align: center;
} }
} }
}
.swiper-slide { .swiper-slide {
background-size: cover; background-size: cover;
background-position: center; background-position: center;
@ -168,4 +177,5 @@ export default {
.gallery-thumbs .swiper-slide-active { .gallery-thumbs .swiper-slide-active {
border: 3px solid @color-primary; border: 3px solid @color-primary;
} }
}
</style> </style>

@ -87,6 +87,7 @@
:data="terminalTableData" :data="terminalTableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
height="calc(100% - 40px)"
border border
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@ -292,6 +293,7 @@ export default {
} }
.photoGraphicTable { .photoGraphicTable {
padding: 16px 8px 0 8px; padding: 16px 8px 0 8px;
height: calc(100% - 80px);
} }
} }
</style> </style>

@ -42,6 +42,7 @@
:data="lineTableData" :data="lineTableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
height="calc(100% - 40px)"
border border
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@ -212,6 +213,8 @@ export default {
} }
.lineTable { .lineTable {
padding: 16px 8px 0 8px; padding: 16px 8px 0 8px;
height: calc(100% - 80px);
//background: #fcc;
} }
} }
</style> </style>

@ -24,12 +24,12 @@
<!-- 带参数的中心内容右侧参数区 --> <!-- 带参数的中心内容右侧参数区 -->
<div class="picSetBox"> <div class="picSetBox">
<div class="swiperBox"> <div class="swiperBox">
{{ terminalPhoto }} <!-- {{ terminalPhoto }}
<div class="pic" v-for="item in terminalPhoto"> <div class="pic" v-for="item in terminalPhoto">
<img :src="item.path" style="width: 100%; height: 100%" alt="" /> <img :src="item.path" style="width: 100%; height: 100%" alt="" />
</div> </div> -->
<!-- <carouselChart></carouselChart> --> <carouselChart :terminalPhoto="terminalPhoto"></carouselChart>
</div> </div>
<div class="parameterArea"> <div class="parameterArea">
<div class="monitorItemBox"> <div class="monitorItemBox">

Loading…
Cancel
Save