From 00aaacce42df391f96d92c6e99deff93ae113ca3 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 9 May 2023 09:52:55 +0800 Subject: [PATCH] youhua --- src/views/components/carouselChart.vue | 3 +-- src/views/realTimeSearch/index.vue | 10 ++++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue index e03e126..500a3e4 100644 --- a/src/views/components/carouselChart.vue +++ b/src/views/components/carouselChart.vue @@ -120,7 +120,6 @@ export default { loadPrevNext: true, loadPrevNextAmount: 1, loadOnTransitionStart: true, - //loadOnTransitionStart: true, }, // lazyLoading: true, //懒加载开启 navigation: { @@ -135,7 +134,7 @@ export default { }, swiperOptionThumbs: { spaceBetween: 10, - centeredSlides: false, + centeredSlides: true, slidesPerView: "auto", touchRatio: 0.2, lazyLoading: true, //懒加载开启 diff --git a/src/views/realTimeSearch/index.vue b/src/views/realTimeSearch/index.vue index 96fe9a7..1d512cd 100644 --- a/src/views/realTimeSearch/index.vue +++ b/src/views/realTimeSearch/index.vue @@ -131,7 +131,7 @@ export default { }, methods: { //获取电压信息 - async getSearchdy() { + getSearchdy() { getSearchInfo({ type: 1 }) .then((res) => { this.dyOptions = res.data.list; @@ -141,7 +141,7 @@ export default { .catch((err) => {}); }, //获取线路数据 - async getSearchxl() { + getSearchxl() { getSearchInfo({ type: 2, id: this.formdata.dyid }) .then((res) => { this.xlOptions = res.data.list; @@ -151,7 +151,7 @@ export default { .catch((err) => {}); }, //获取杆塔数据 - async getSearchgt() { + getSearchgt() { getSearchInfo({ type: 3, id: this.formdata.lineid }) .then((res) => { this.gtOptions = res.data.list; @@ -162,7 +162,7 @@ export default { .catch((err) => {}); }, //获取通道数据 - async getSearchtd() { + getSearchtd() { getSearchInfo({ type: 4, id: this.formdata.towerid }) .then((res) => { this.tdOptions = res.data.list; @@ -173,7 +173,6 @@ export default { }, //获取图片列表 getPicData() { - console.log(this.formdata); this.loading = true; this.$set(this.formdata, "pageindex", this.page); this.$set(this.formdata, "pagesize", this.pageSize); @@ -181,7 +180,6 @@ export default { this.$set(this.formdata, "endtime", this.formdata.timeVal[1]); getRealtimePhoto(this.formdata) .then((res) => { - console.log(res); this.picList = res.data.list; this.total = res.data.total; this.loading = false;