1
lzhe
2024-10-09 8b2a0199527fa2d2f0fd4c420dd374e42c496c48
src/views/mdc/station-live.vue
@@ -2,7 +2,7 @@
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-03-26 10:28:33
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-10-07 00:49:07
 * @LastEditTime: 2024-10-08 18:03:09
 * @FilePath: /smart-web/src/views/master/person/main/index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -46,7 +46,7 @@
                  </div>
               </div>
               <div class="fact-analysis-card" v-for="item in dmpList" v-if="dmpList.length != 0">
                  <div class="card-name" :style="{'background-color': item.color}">{{item.description}}</div>
                  <div class="card-name" :style="{'background-color': item.color}">{{item.dplabel}}</div>
                  <div :class="{'card-value': true,'card-value-bg1':item.name != 'Alarm','card-value-bg2':item.name == 'Alarm'}">{{item.codeName}}</div>
               </div>
            </div>
@@ -673,7 +673,6 @@
                                   item.color = item1.color;
                                }
                             })
                           item.description = item.dpLabel;
                         }else {
                            if(item.dpName == 'Alarm') {  //报警
                              if(eventData.data[item.dpName]) {
@@ -682,24 +681,23 @@
                                    if(v.length == 0) {
                                       JSONData.splice(index,1);
                                    }else {
                                       item.description = v[0].code;
                                       item.codeName = v[0].msg;
                                    }
                                 }else {
                                    item.description = v.code;
                                    item.codeName = v.msg;
                                 }
                              }
                            }else {
                              if(eventData.data[item.dpName]) {
                                 item.description = item.dpLabel;
                                 item.codeName = eventData.data[item.dpName].v;
                              }
                            }
                           that.allwcs.forEach((item1)=> {
                                if(item.code == item1.code) {
                                   item.color = item1.color;
                                }
                                }else {
                                 item.color = "#7FC0C0";
                              }
                             })
                         }
                     });