瀏覽代碼

no message

XAWDJ0277HWXPT2\Administrator 5 年之前
父節點
當前提交
7f8ed66831

文件差異過大導致無法顯示
+ 1 - 1
web/css/chunk-a80ca5cc.7837e3be.css


二進制
web/favicon.ico


文件差異過大導致無法顯示
+ 1 - 1
web/index.html


文件差異過大導致無法顯示
+ 0 - 2
web/js/app.a741e8eb.js


文件差異過大導致無法顯示
+ 0 - 1
web/js/app.a741e8eb.js.map


文件差異過大導致無法顯示
+ 2 - 0
web/js/app.df88ffdc.js


文件差異過大導致無法顯示
+ 1 - 0
web/js/app.df88ffdc.js.map


文件差異過大導致無法顯示
+ 0 - 2
web/js/chunk-a80ca5cc.02e8280c.js


文件差異過大導致無法顯示
+ 0 - 1
web/js/chunk-a80ca5cc.02e8280c.js.map


文件差異過大導致無法顯示
+ 2 - 0
web/js/chunk-a80ca5cc.2bdba18c.js


文件差異過大導致無法顯示
+ 1 - 0
web/js/chunk-a80ca5cc.2bdba18c.js.map


文件差異過大導致無法顯示
+ 7 - 7
web/js/chunk-vendors.c14eb133.js


文件差異過大導致無法顯示
+ 1 - 0
web/js/chunk-vendors.96bd5e12.js.map


文件差異過大導致無法顯示
+ 0 - 1
web/js/chunk-vendors.c14eb133.js.map


+ 3 - 0
webConfig/src/main.js

@@ -16,8 +16,11 @@ require("echarts/lib/chart/line");
 // 引入提示框和标题组件
 require('echarts/lib/component/tooltip');
 require('echarts/lib/component/title');
+require('echarts/lib/component/legend');
+require('echarts/lib/component/legendScroll');
 Vue.prototype.$echarts = echarts
 
+
 import ElementUI from 'element-ui'
 import 'element-ui/lib/theme-chalk/index.css'
 import enLocale from 'element-ui/lib/locale/lang/en'

+ 69 - 26
webConfig/src/views/projectManagement.vue

@@ -955,6 +955,7 @@
                 division:'',
                 networkId:'0',
                 lamptype:1,
+                legendWidth:'',
                 divisionNav:[{id:'0',name:'All'}],
                 rightDate:'',
                 rightDateNav:[{id:'0',name:'Today'}],
@@ -3939,6 +3940,16 @@
                     }
                     this.lampHistoryData();
                 }else{
+                    
+                    this.LSDataType = '4';
+                    // console.log(this.screenDateLS);
+                    // if(this.dataLSType == '0'){
+                    //     this.lampHistoryData();
+                    // }else{
+                    //     this.currentPageLS = 1;
+                    //     this.historicalTableList = this[this.historicalNavSelect+'TableListEN'];
+                    //     this.lampcontrolHistorylist(1);
+                    // }
                     if(historicalNavSelect == '3'){
                         this.historicalNavSelect = 'lamp_info_log';
                     }
@@ -4029,12 +4040,12 @@
                         {name:'Voltage',icon:'circle'},
                         {name:'Current',icon:'circle'},
                         {name:'power',icon:'circle'},
-                        {name:'brightness',icon:'circle',select:false}
+                        // {name:'brightness',icon:'circle',select:false}
                     ];
                     legendSelected['Voltage'] = true;
                     legendSelected['Current'] = true;
                     legendSelected['power'] = true;
-                    legendSelected['brightness'] = false;
+                    // legendSelected['brightness'] = false;
                     for(let d of data.lamppower){
                         d = parseInt(d);
                         if(d > dataListMax){
@@ -4176,17 +4187,17 @@
                     gridLeft = dataListMax.length*10;
                 }
                
-                // console.log(data,'------')
                 let legendOrient = 'horizontal';
                 if(document.body.offsetWidth <1500){
                     this_.legendWidth = '180px';
-                    // if(type == '3'){
-                    //  legendOrient = 'vertical';
-                    // }
+                    if(type == '3'){
+                        legendOrient = 'vertical';
+                    }
                 }else{
                     this_.legendWidth = 'auto';
-                    // legendOrient = 'horizontal';
+                    legendOrient = 'horizontal';
                 }
+                console.log(data,'------',document.body.offsetWidth,legendData,legendSelected,legendOrient)
                 this.$nextTick(function(){
                     if(document.getElementsByClassName('history_echarts')[0]){
                         const myChart = this.$echarts.init(document.getElementsByClassName('history_echarts')[0]);
@@ -6272,8 +6283,8 @@
                         width: 10rem;
                         border-right: 2px solid rgba(240, 240, 240, 1);
                         .li{
-                            height:4.9rem;
-                            line-height: 4.9rem;
+                            height:3.5rem;
+                            line-height: 3.5rem;
 
                             font-size:1rem;
                             font-family:PingFang-SC-Medium;
@@ -6295,8 +6306,8 @@
                     }
                     .nav_list{
                         padding-left: 2rem;
-                        height: 5rem;
-                        line-height: 5rem;
+                        height: 4rem;
+                        line-height: 4rem;
                         font-size: 1rem;
                         border-bottom: 1px solid rgba(240, 240, 240, 1);
                         // background-color:rgba(255, 255, 255, 1);
@@ -6326,6 +6337,7 @@
                         justify-content: space-between;
                         >div{
                             display: flex;
+                            align-items: center;
                         }
                         .el-pager{
                             padding-top: 0.5rem;
@@ -6415,15 +6427,15 @@
                     }
                     .data_type_nav{
                         display: flex;
-                        width: 20rem;
-                        height: 3.2rem;line-height: 3.2rem;
+                        width: 15rem;
+                        height: 2.5rem;line-height: 2.5rem;
                         border: 1px solid rgba(232, 232, 232, 1);
                         border-radius: 1.6rem;
                         overflow: hidden;
                         text-align: center;
                         margin-top: 1rem;
                         position: relative;
-                        margin-left: -10rem;
+                        margin-left: -12rem;
                         left: 50%;
                         .li{
                             flex: 1;
@@ -6431,7 +6443,7 @@
                         }
                         .select{
                             color: #fff;
-                            height:3.2rem;
+                            height:2.5rem;
                             background:linear-gradient(270deg,rgba(54,130,251,1) 0%,rgba(56,161,246,1) 100%);
                             border-radius:10rem;
                         }
@@ -6457,19 +6469,18 @@
                             }
                             .screen_date_select{
                                 margin-right: 2rem;
-                                width: 24rem;
-                                height: 3rem;line-height: 3rem;
+                                width: 20rem;
+                                height: 2.5rem;line-height: 2.5rem;
                                 border: 1px solid #DCDFE6;
-                                border-radius: 2rem;
+                                border-radius: 2.5em;
                                 overflow: hidden;
                                 text-align: center;
                                 display: flex;
-                                font-size: 1.2rem;
                                 cursor: pointer;
                                 .li{
                                     flex:1;
                                     border-right: 1px solid #DCDFE6;
-                                    font-size: 1.2rem;
+                                    font-size: 1rem;
                                     &:last-child{
                                         border-right: none;
                                     }
@@ -6481,6 +6492,38 @@
                             .history_echarts{
                                 width: 100%;
                                 height: calc(100% - 6rem);
+                                .history_echarts_tooltip{
+                                    background-color:#fff;
+                                    color: rgba(102, 102, 102, 1);
+                                    padding:14px;
+                                    border: 1px solid rgba(211, 181, 164, 1);
+                                    p{
+                                        position:relative;
+                                        span{
+                                            display: inline-block;
+                                            width: 5px;height: 5px;
+                                            position: relative;
+                                            top: -2px;
+                                            margin-right: 10px;
+                                        }
+                                        .span_0{
+                                            background-color: #15CA56;
+                                        }
+                                        .span_1{
+                                            background-color: #F3BC12;
+                                        }
+                                        .span_2{
+                                            background-color: #3898F8;
+                                        }
+                                        .span_3{
+                                            background-color: #F05904;
+                                        }
+                                        margin-bottom: 12px;
+                                        &:last-child{
+                                            margin: 0;
+                                        }
+                                    }
+                                }
                             }
                             .history_echarts_noData{
                                 width: 100%;
@@ -6513,8 +6556,8 @@
                             }
                             .ul{
                                 .li{
-                                    height:4rem;
-                                    line-height: 4rem;
+                                    height:3rem;
+                                    line-height: 3rem;
                                     background:rgba(249,240,233,1);
                                     border-radius:0.4rem;
                                     display: flex;
@@ -6522,7 +6565,7 @@
                                     justify-content: space-between;
                                     margin-bottom: 1rem;
                                     .span1{
-                                        font-size:1rem;
+                                        font-size:0.8rem;
                                         font-family:PingFang-SC-Medium;
                                         font-weight:500;
                                         color:rgba(102,102,102,1);
@@ -6530,7 +6573,7 @@
                                     }
                                     .span_r{
                                         display: flex;
-                                        height: 4rem;
+                                        height: 3rem;
                                         align-items: center;
                                         flex: 1;
                                         justify-content: flex-end;
@@ -6552,7 +6595,7 @@
                                     }
                                     .span3{
                                         margin-right: 1rem;
-                                        font-size:1.4rem;
+                                        font-size:1.2rem;
                                         font-family:PingFang-SC-Medium;
                                         font-weight:500;
                                         color:rgba(153,153,153,1);
@@ -6584,7 +6627,7 @@
                             margin-top: 1rem;
                             height: 3.2rem;
                             line-height: 3.2rem;
-                            font-size:1.2rem;
+                            font-size:1rem;
                             font-family:PingFang-SC-Medium;
                             font-weight:500;
                             color:rgba(102,102,102,1);