Commit eb95bb49 authored by 范加坤's avatar 范加坤

fix: 示范村图片预览

parent 74307dbf
...@@ -478,3 +478,11 @@ i { ...@@ -478,3 +478,11 @@ i {
// box-shadow: inset 0 0 6px rgba(234, 227, 216, 0.1); // box-shadow: inset 0 0 6px rgba(234, 227, 216, 0.1);
background-color: rgba(0, 100, 210, 1); background-color: rgba(0, 100, 210, 1);
} }
.el-image-viewer__wrapper{
.el-image-viewer__canvas {
img {
max-height: 80%!important;
max-width: 80%!important;
}
}
}
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
color: ["#d65108"], color: ["#d65108"],
tooltip: { tooltip: {
show: true, show: true,
trigger: 'axis'
}, },
grid: { grid: {
left: "3%", left: "3%",
...@@ -118,7 +119,6 @@ export default { ...@@ -118,7 +119,6 @@ export default {
], ],
series: [ series: [
{ {
name: "入侵报告次数",
type: "bar", type: "bar",
barWidth: `80%`, barWidth: `80%`,
data: yData, data: yData,
......
...@@ -118,7 +118,8 @@ export default { ...@@ -118,7 +118,8 @@ export default {
title: {}, title: {},
color: ['#d65108'], color: ['#d65108'],
tooltip: { tooltip: {
show: true show: true,
trigger: 'axis'
}, },
grid: { grid: {
left: '3%', left: '3%',
...@@ -264,7 +265,7 @@ export default { ...@@ -264,7 +265,7 @@ export default {
position: absolute; position: absolute;
left: 1vw; left: 1vw;
top: 21vh; top: 21vh;
.StatusControl{ .StatusControl {
margin-top: 1vh; margin-top: 1vh;
} }
} }
......
...@@ -397,7 +397,7 @@ export default { ...@@ -397,7 +397,7 @@ export default {
[135.087387, 53.561602] [135.087387, 53.561602]
], ],
{ {
padding: { bottom: 400, top: 120, left: 100, right: 400} padding: { bottom: 400, top: 120, left: 100, right: 400 }
} }
) )
}, },
...@@ -619,7 +619,7 @@ export default { ...@@ -619,7 +619,7 @@ export default {
.left-part-item { .left-part-item {
height: 5vh; height: 5vh;
margin-bottom: 1vh; margin-bottom: 1vh;
margin-left: 1vw; margin-right: 1vw;
} }
} }
.bottom-part { .bottom-part {
...@@ -633,21 +633,14 @@ export default { ...@@ -633,21 +633,14 @@ export default {
left: 1vw; left: 1vw;
z-index: 21; z-index: 21;
display: flex; display: flex;
.bottom-part-table {
width: 40vw;
.bottom-part-table-cont {
width: 100%;
}
}
.bottom-part-echart { .bottom-part-echart {
margin-left: 1vw;
flex: 1; flex: 1;
} }
} }
.legend-part { .legend-part {
position: absolute; position: absolute;
z-index: 11; z-index: 11;
left: 2vw; left: 1vw;
bottom: 29vh; bottom: 29vh;
} }
.right-part { .right-part {
...@@ -667,7 +660,7 @@ export default { ...@@ -667,7 +660,7 @@ export default {
} }
.status-control-wrap { .status-control-wrap {
position: absolute; position: absolute;
left: 2vw; left: 1vw;
top: 21vh; top: 21vh;
z-index: 995; z-index: 995;
} }
......
...@@ -62,6 +62,7 @@ export default { ...@@ -62,6 +62,7 @@ export default {
}, },
tooltip: { tooltip: {
show: true, show: true,
trigger: 'axis'
}, },
xAxis: [ xAxis: [
{ {
...@@ -96,7 +97,6 @@ export default { ...@@ -96,7 +97,6 @@ export default {
], ],
series: [ series: [
{ {
name: "入侵报告次数",
type: "bar", type: "bar",
barWidth: 12, barWidth: 12,
data: yData, data: yData,
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
class="filterProvince" class="filterProvince"
@onAddressChange="onAddressChange" @onAddressChange="onAddressChange"
></FilterProvince> ></FilterProvince>
<PicPopup v-model="showPopup" :id="popupId"></PicPopup> <el-image
class="my-img"
v-if="imageUrl"
ref="myImg"
:src="imageUrl"
:preview-src-list="srcList"
>
</el-image>
<!-- <PicPopup v-model="showPopup" :id="popupId"></PicPopup> -->
</div> </div>
</template> </template>
...@@ -45,7 +53,7 @@ import EnergyVillageMap from './components/energyVillageMap.vue' ...@@ -45,7 +53,7 @@ import EnergyVillageMap from './components/energyVillageMap.vue'
// import Table from "./components/table.vue"; // import Table from "./components/table.vue";
import FilterProvince from './components/filterProvince.vue' import FilterProvince from './components/filterProvince.vue'
import SortList from './components/sortList.vue' import SortList from './components/sortList.vue'
import PicPopup from './components/picPopup.vue' // import PicPopup from './components/picPopup.vue'
export default { export default {
name: 'RenewableEnergyVillage', name: 'RenewableEnergyVillage',
components: { components: {
...@@ -55,8 +63,8 @@ export default { ...@@ -55,8 +63,8 @@ export default {
// StatusControl, // StatusControl,
SortList, SortList,
FilterProvince, FilterProvince,
DateWidget, DateWidget
PicPopup // PicPopup
}, },
created() { created() {
this.getData() this.getData()
...@@ -69,7 +77,16 @@ export default { ...@@ -69,7 +77,16 @@ export default {
yearRange: [], yearRange: [],
yearValue: '', yearValue: '',
showPopup: false, showPopup: false,
popupId: '' popupId: '',
imageUrl: `${process.env.VUE_APP_BASE_URL}/images/14_basic_info1.jpg`,
srcList: [
`${process.env.VUE_APP_BASE_URL}/images/14_basic_info1.jpg`,
`${process.env.VUE_APP_BASE_URL}/images/14_basic_info2.jpg`,
`${process.env.VUE_APP_BASE_URL}/images/14_basic_info3.jpg`,
`${process.env.VUE_APP_BASE_URL}/images/14_technical_patterns.jpg`,
`${process.env.VUE_APP_BASE_URL}/images/14_goal_achievement.jpg`,
`${process.env.VUE_APP_BASE_URL}/images/14_eco_benefits.jpg`
]
} }
}, },
computed: { computed: {
...@@ -115,11 +132,13 @@ export default { ...@@ -115,11 +132,13 @@ export default {
dateChange(e) { dateChange(e) {
this.yearValue = e this.yearValue = e
}, },
isShowPopup(id) { isShowPopup() {
this.popupId = id this.$refs.myImg.showViewer = true
if (id === '14') { console.log(this.$refs.myImg)
this.showPopup = true // this.popupId = id
} // if (id === '14') {
// this.showPopup = true
// }
}, },
...mapActions('energyVillage', ['getData']) ...mapActions('energyVillage', ['getData'])
} }
...@@ -127,9 +146,25 @@ export default { ...@@ -127,9 +146,25 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/deep/.el-image-viewer__canvas {
img {
max-height: 80%;
max-width: 80%;
}
}
.enetgyVillage { .enetgyVillage {
height: inherit; height: inherit;
.my-img {
.el-image__inner {
visibility: hidden;
}
.my-pre {
position: absolute;
margin-left: 111px;
margin-top: -156px;
}
}
.left-part-item { .left-part-item {
position: absolute; position: absolute;
top: calc(11vh + 45px + 2vh); top: calc(11vh + 45px + 2vh);
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
<div class="header"> <div class="header">
<div class="header-left"> <div class="header-left">
<img src="../assets/img/logo.png" alt /> <img src="../assets/img/logo.png" alt />
<h3>农村农业生态建设</h3> <img src="../assets/img/title.png" alt />
</div> </div>
<div class="menu"> <div class="menu">
<div <div
:class="[ :class="[
'a-menu', 'a-menu',
$route.path == '/methane_upgrade' ? 'active' : '', $route.path == '/methane_upgrade' ? 'active' : ''
]" ]"
@click="$router.push('/methane_upgrade')" @click="$router.push('/methane_upgrade')"
> >
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div <div
:class="[ :class="[
'a-menu', 'a-menu',
$route.path == '/biomass_energy_warm' ? 'active' : '', $route.path == '/biomass_energy_warm' ? 'active' : ''
]" ]"
@click="$router.push('/biomass_energy_warm')" @click="$router.push('/biomass_energy_warm')"
> >
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div <div
:class="[ :class="[
'a-menu', 'a-menu',
$route.path == '/biogas_manure_eco_agriculture' ? 'active' : '', $route.path == '/biogas_manure_eco_agriculture' ? 'active' : ''
]" ]"
@click="$router.push('/biogas_manure_eco_agriculture')" @click="$router.push('/biogas_manure_eco_agriculture')"
> >
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<div <div
:class="[ :class="[
'a-menu', 'a-menu',
$route.path == '/renewable_energy_village' ? 'active' : '', $route.path == '/renewable_energy_village' ? 'active' : ''
]" ]"
@click="$router.push('/renewable_energy_village')" @click="$router.push('/renewable_energy_village')"
> >
...@@ -58,16 +58,16 @@ ...@@ -58,16 +58,16 @@
<script> <script>
export default { export default {
name: "Home", name: 'Home',
data() { data() {
return { return {
// baseUrl: process.env.BASE_URL // baseUrl: process.env.BASE_URL
}; }
}, },
components: { components: {
// HelloWorld, // HelloWorld,
}, }
}; }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
font-weight: 700; font-weight: 700;
letter-spacing: 0.1vh; letter-spacing: 0.1vh;
color: @main-color; color: @main-color;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} }
} }
.menu { .menu {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment