From fe0ee7d8da7d7e28ff2ccbcb17ce54ecdb2b5d09 Mon Sep 17 00:00:00 2001 From: chenyabin <Chenab123!> Date: 星期三, 14 四月 2021 13:59:36 +0800 Subject: [PATCH] 修改废水废气弹框样式。 --- src/components/BaseNav/PublicBounced/common/echarts/EChartsDate.vue | 94 ++++++++++++++++------------------------------ 1 files changed, 33 insertions(+), 61 deletions(-) diff --git a/src/components/BaseNav/PublicBounced/common/echarts/EChartsDate.vue b/src/components/BaseNav/PublicBounced/common/echarts/EChartsDate.vue index 89a4517..334965e 100644 --- a/src/components/BaseNav/PublicBounced/common/echarts/EChartsDate.vue +++ b/src/components/BaseNav/PublicBounced/common/echarts/EChartsDate.vue @@ -35,10 +35,10 @@ <!-- <el-option label="100" value="100"></el-option>--> <!-- </el-select>--> <!-- </div>--> - <div class="detailbtn" @click="onSubmit">鏌ヨ</div> - <div class="detailbtn" @click="dialogVisible = true" >鏄庣粏琛�</div> + <div class="detailbtn hover-bottom" @click="onSubmit">鏌ヨ</div> + <div class="detailbtn hover-bottom" @click="dialogVisible = true" >鏄庣粏琛�</div> </div> - <div style="width:6rem;height:2rem;" id="echarts" ref="main"> + <div style="width:5rem;height:1.5rem;" id="echarts" ref="main"> </div> </div> <!-- 鏄庣粏寮规 --> @@ -58,6 +58,7 @@ <script> import PublicDetailedList from '@components/BaseNav/PublicBounced/common/echarts/PublicDetailedList' +import dayjs from 'dayjs' export default { name: 'ECharts', @@ -140,8 +141,13 @@ } }, mounted () { + this.formInline.timeEnd = dayjs().format('YYYY-MM-DD HH:mm:ss') + this.formInline.timeStart = dayjs().subtract(1, 'month').format('YYYY-MM-DD HH:mm:ss') this.onSubmit() // this.CreateChart(this.JsonDayCharts.id, this.JsonDayCharts.title, this.JsonDayCharts.legend, this.JsonDayCharts.xdata, this.JsonDayCharts.ydatas, this.JsonDayCharts.yname, this.JsonDayCharts.id, this.JsonDayCharts.datatype) + }, + updated () { + this.onSubmit() }, methods: { onSubmit () { @@ -676,42 +682,20 @@ </script> <style scoped lang="less"> -//.animation{ -// padding: 0 1rem; -// overflow: hidden; -// //width: 1rem; -// .infomation{ -// display: flex; -// //margin: 0 1rem; -// overflow: hidden; -// animation: move 1s linear 0s infinite; -// @keyframes move { -// 0% { -// } -// 100% { -// transform: translateX(-10%); -// } -// } -// /* 榧犳爣缁忚繃marquee 灏卞仠姝㈠姩鐢� */ -// &:hover { -// //z-index: 9999999; -// animation-play-state: paused; -// } -// } -//} - .grid-content { - font-size: 8px; - background-color: #2e4967; - text-align: center; - border-radius: 2px; - margin-right: 10px; - padding:0 10px - } + .animation { - //width: 600px; - //height: 0.06rem; .infomation { - padding: 5px 10px; + padding: 0.02rem 0.04rem; + .grid-content { + font-size: 0.08rem; + background-color: #2e4967; + text-align: center; + border-radius: 0.01rem; + height: 0.15rem; + line-height: 0.15rem; + margin-right: 0.04rem; + padding:0 0.04rem + } } } .form-echrts { @@ -720,7 +704,7 @@ //margin: 10px 10px 10px 10px; .from-search{ display: flex; - padding:5px; + padding:0.02rem; >div{margin-left: 10px} .pickerMon{ display: flex; @@ -741,33 +725,26 @@ } /deep/.el-input__inner{ position: relative; - width:140px; + width:1rem; background-color: #2e4967; color: #fff; - font-size: 12px; - height: 24px; + font-size: 0.08rem; + height: 0.15rem; padding: 0; - border-color:#00fff6; - text-align: center; + border:none; + text-align: center; //padding-left:20px ; //padding: 0!important; } /deep/.el-input__icon{ display: block; - width: 140px; - height: 22px; - line-height: 22px; + width:1rem; + height: 0.15rem; + line-height: 0.15rem; cursor: pointer; font-size: 0; } - .echatsInput{ - color: #00ffff; - background-color: #2e4967; - border: none; - border-radius: 6px; - width: 80px; - height: 22px; - } + input::-webkit-calendar-picker-indicator { opacity: 100; } @@ -775,23 +752,18 @@ background-color:#2e4967; text-align: center; padding: 0 7px; - line-height: 20px; + height: 0.15rem; + line-height: 0.15rem; border-radius: 4px; margin-right: 6px; } } .el-dialog-div { - //height: 50vh!important; overflow: auto; - //overflow: hidden; } - #echarts { margin: 0; padding: 0; - //height: 3rem; - //border: 1px solid #396d83; - //margin: 10px 10px 10px 10px; } } </style> -- Gitblit v1.8.0