提交 af566f60 authored 作者: 闫鹏's avatar 闫鹏

合并分支 'yp-dev' 到 'master'

Yp dev 查看合并请求 !44
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<template #default> <template #default>
<div class="box1"> <div class="box1">
<el-carousel trigger="click" height="350px" :autoplay="true"> <el-carousel ref="carouselRef" trigger="click" height="350px" :autoplay="true">
<el-carousel-item v-for="(item, index) in entitiesDataInfoList" :key="item.id + index"> <el-carousel-item v-for="(item, index) in entitiesDataInfoList" :key="item.id + index">
<div> <div>
<div class="box1-top"> <div class="box1-top">
...@@ -779,22 +779,26 @@ const handleBackHome = () => { ...@@ -779,22 +779,26 @@ const handleBackHome = () => {
path: "/overview" path: "/overview"
}); });
}; };
const carouselRef = ref(null);
const handleToDetail = () => { const handleToDetail = () => {
// router.push({ let activeIndex = 0;
// path: "/exportControlAnalysis" if (carouselRef.value) {
// }); activeIndex = carouselRef.value.activeIndex;
// router.push({ }
// path: "/exportControl/analysis"
// });
const route = router.resolve({ console.log("当前 Carousel 激活索引:", activeIndex);
path: "/exportControlAnalysis",
query: { // 使用当前激活项的数据
startTime: entitiesDataInfoList.value.startTime const currentItem = entitiesDataInfoList.value[activeIndex];
} if (currentItem) {
}); const route = router.resolve({
window.open(route.href, "_blank"); path: "/exportControlAnalysis",
query: {
startTime: currentItem.postDate
}
});
window.open(route.href, "_blank");
}
}; };
const billList = ref([]); const billList = ref([]);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论