Bladeren bron

no message

XAWDJ0277HWXPT2\Administrator 5 jaren geleden
bovenliggende
commit
20143bd6fc

File diff suppressed because it is too large
+ 1 - 1
web/css/chunk-27550a72.ffba318a.css


File diff suppressed because it is too large
+ 1 - 1
web/index.html


File diff suppressed because it is too large
+ 2 - 2
web/js/app.44d1fc06.js


File diff suppressed because it is too large
+ 1 - 1
web/js/app.44d1fc06.js.map


File diff suppressed because it is too large
+ 0 - 2
web/js/chunk-27550a72.852f8860.js


File diff suppressed because it is too large
+ 0 - 1
web/js/chunk-27550a72.852f8860.js.map


File diff suppressed because it is too large
+ 2 - 0
web/js/chunk-27550a72.d78bb1fe.js


File diff suppressed because it is too large
+ 1 - 0
web/js/chunk-27550a72.d78bb1fe.js.map


+ 44 - 6
webConfig/src/views/dashboard.vue

@@ -164,6 +164,7 @@
                             <el-table
                                 ref="deviceList"
                                 v-loading="loading.deviceList"
+                                highlight-current-row
                                 element-loading-background="rgba(0, 0, 0, 0.5)"
                                 height="calc(100% - 0rem)"
                                 @cell-mouse-enter="tableEnter"
@@ -1000,7 +1001,21 @@
                 )
             },
             tableEnter(data){
-              this.tableShowId = data.id;
+                this.tableShowId = data.id;
+                this.myChart2.dispatchAction({
+                    type: 'downplay',
+                })
+                this.myChart2.dispatchAction({
+                    type: 'highlight',
+                    // 可选,系列 index,可以是一个数组指定多个系列
+                    // seriesIndex?: number|Array,
+                    // // 可选,系列名称,可以是一个数组指定多个系列
+                    // seriesName?: string|Array,
+                    // // 可选,数据的 index
+                    // dataIndex?: number,
+                    // 可选,数据的 名称
+                    name: data.name
+                })
             },
             tableLeave(){
               this.tableShowId = '-1';
@@ -1184,6 +1199,20 @@
                             }
                         ]
                     })
+                    this.myChart2.on('mouseover', params=>{
+                        for(let d of this.deviceList){
+                            if(params.name == d.name){
+                                this.$refs.deviceList.setCurrentRow(d);
+                            }
+                        }
+                    })
+                    this.myChart2.on('mouseout', ()=>{
+                                this.$refs.deviceList.setCurrentRow();
+                        // for(let d of this.deviceList){
+                        //     if(params.name == d.name){
+                        //     }
+                        // }
+                    })
                 }
             },
         },
@@ -1748,11 +1777,20 @@
                                         color:rgba(51,51,51,1);
                                     }
                                 }
-                                tr:hover>td{
-                                    background: rgba(246, 248, 250, 1);
-                                    >.cell{
-                                        font-family:PingFangSC-Semibold,PingFang SC;
-                                        font-weight:600;
+                                tr{
+                                    &:hover>td{
+                                        background: rgba(246, 248, 250, 1);
+                                        >.cell{
+                                            font-family:PingFangSC-Semibold,PingFang SC;
+                                            font-weight:600;
+                                        }
+                                    }
+                                    &.current-row>td{
+                                        background: rgba(246, 248, 250, 1);
+                                        >.cell{
+                                            font-family:PingFangSC-Semibold,PingFang SC;
+                                            font-weight:600;
+                                        }
                                     }
                                 }
                                 .city{