Commit 53aed7ac authored by 朱建丰's avatar 朱建丰

=0726

parent c15faef5
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
"copy-webpack-plugin": "^4.0.1", "copy-webpack-plugin": "^4.0.1",
"cross-spawn": "^5.0.1", "cross-spawn": "^5.0.1",
"css-loader": "^0.28.0", "css-loader": "^0.28.0",
"element-resize-detector": "^1.2.3",
"eslint": "^4.15.0", "eslint": "^4.15.0",
"eslint-config-standard": "^10.2.1", "eslint-config-standard": "^10.2.1",
"eslint-friendly-formatter": "^3.0.0", "eslint-friendly-formatter": "^3.0.0",
......
...@@ -10,6 +10,9 @@ import 'element-ui/lib/theme-chalk/index.css' ...@@ -10,6 +10,9 @@ import 'element-ui/lib/theme-chalk/index.css'
import './assets/font/iconfont.css' import './assets/font/iconfont.css'
import * as echarts from 'echarts' import * as echarts from 'echarts'
import 'default-passive-events' import 'default-passive-events'
import ElementResizeDetectorMaker from 'element-resize-detector';
Vue.prototype.$erd = ElementResizeDetectorMaker();
Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -678,9 +678,18 @@ ...@@ -678,9 +678,18 @@
<p></p> <p></p>
<div id="main7" style="max-width: 100%; height: 210px"></div> <div id="main7" style="max-width: 100%; height: 210px"></div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="森林火险防控" name="third">
<el-tab-pane label="森林火险防控" name="third" disabled="true" title="建设中" tooltip="建设中">
<el-tooltip class="item-tabs" effect="light" placement="top" slot="label">
<div slot="content">
建设中
</div>
<span><i class="el-icon-date"></i> 森林火险防控</span>
</el-tooltip>
<div id="main8" style="max-width: 100%; height: 210px"></div> <div id="main8" style="max-width: 100%; height: 210px"></div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div class="shadow"> <div class="shadow">
<Breadcrumb :breadData="breadData"></Breadcrumb> <Breadcrumb :breadData="breadData"></Breadcrumb>
</div> </div>
<el-row :gutter="20" class="mt20" > <el-row :gutter="20" class="mt20">
<el-col :sm="12" :xs="24"> <el-col :sm="12" :xs="24">
<div class="clear-water unify-item shadow" ref="left_one"> <div class="clear-water unify-item shadow" ref="left_one" id="left_one" style="height: 640px;">
<h3 class="module-tit">深化碧水行动</h3> <h3 class="module-tit">深化碧水行动</h3>
<ul> <ul>
<li v-for="(item, index) in clear_water_info" :key="index"> <li v-for="(item, index) in clear_water_info" :key="index" style="margin-top:35px">
<p class="cw-classify">{{ item.classify }}</p> <p class="cw-classify">{{ item.classify }}</p>
<div class="cw-progress"> <div class="cw-progress">
<el-progress <el-progress
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
</el-col> </el-col>
<el-col :sm="12" :xs="24"> <el-col :sm="12" :xs="24">
<div class="air-quality unify-item shadow" ref="right_one"> <div class="air-quality unify-item shadow" ref="right_one" id="right_one" style="height: 640px">
<h3 class="module-tit">空气质量巩固提升行动</h3> <h3 class="module-tit">空气质量巩固提升行动</h3>
<div class="aq-map"> <div class="aq-map">
<img src="../assets/images/sy-map.jpg" alt=""/> <img src="../assets/images/sy-map.jpg" alt=""/>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :sm="12" :xs="24"> <el-col :sm="12" :xs="24">
<div class="no-waste unify-item shadow"> <div class="no-waste unify-item shadow" style="height:350px;">
<h3 class="module-tit">无废城市建设</h3> <h3 class="module-tit">无废城市建设</h3>
<ul class="nw-con"> <ul class="nw-con">
<li <li
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
</div> </div>
</el-col> </el-col>
<el-col :sm="12" :xs="24"> <el-col :sm="12" :xs="24">
<div class="beautiful-rivers unify-item shadow"> <div class="beautiful-rivers unify-item shadow" style="height:350px">
<h3 class="module-tit">美丽河湖库</h3> <h3 class="module-tit">美丽河湖库</h3>
<ul class="br-con"> <ul class="br-con">
<li v-for="(item, index) in br_info" :key="index"> <li v-for="(item, index) in br_info" :key="index">
...@@ -182,9 +182,11 @@ ...@@ -182,9 +182,11 @@
<script> <script>
import Breadcrumb from "../components/Breadcrumb.vue"; import Breadcrumb from "../components/Breadcrumb.vue";
import Tree from "../components/Tree.vue"; import Tree from "../components/Tree.vue";
import {messageFun} from "../util/jianquan"; import {messageFun} from "../util/jianquan";
export default { export default {
name: "ecology", name: "ecology",
components: {Tree, Breadcrumb}, components: {Tree, Breadcrumb},
...@@ -346,6 +348,15 @@ ...@@ -346,6 +348,15 @@
], ],
}; };
}, },
created(){
// this.$erd.listenTo(this.$refs.right_one, (element) => {
// debugger
// var width = element.offsetWidth;
// var height = element.offsetHeight;
// console.log("height="+height);
// });
},
mounted() { mounted() {
this.listenMessage(); this.listenMessage();
window.parent.postMessage(document.body.scrollHeight, '*'); window.parent.postMessage(document.body.scrollHeight, '*');
...@@ -357,10 +368,14 @@ ...@@ -357,10 +368,14 @@
window.addEventListener("resize", function (e) { window.addEventListener("resize", function (e) {
window.parent.postMessage(document.body.scrollHeight, '*'); window.parent.postMessage(document.body.scrollHeight, '*');
}); });
// let t=this.$refs.right_one.clientHeight;
//
// //
// this.$refs.left_one.style.height=t+"px"; // this.$refs.left_one.style.height=t+"px";
}, },
methods: { methods: {
listenMessage() { listenMessage() {
window.addEventListener('message', this.bindThis.bind(this)); window.addEventListener('message', this.bindThis.bind(this));
...@@ -381,7 +396,7 @@ ...@@ -381,7 +396,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.ecology { .ecology {
// width: 1300px;
width: calc(100% - 40px); width: calc(100% - 40px);
margin: 0px auto; margin: 0px auto;
padding: 20px; padding: 20px;
...@@ -587,7 +602,7 @@ ...@@ -587,7 +602,7 @@
justify-content: space-between; justify-content: space-between;
li { li {
padding: 12px 20px; padding: 12px 10px;
background-color: #eefbff; background-color: #eefbff;
width: 48%; width: 48%;
box-sizing: border-box; box-sizing: border-box;
......
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