Authored by 王涛

Merge branch 'master-v32-xwx' into 'master'

[909] 活动告警显示硬件设备告警信息2#



See merge request !556
@@ -17,7 +17,7 @@ export default { @@ -17,7 +17,7 @@ export default {
17 () => myImport('views/commonComponents/machineRoom/index') 17 () => myImport('views/commonComponents/machineRoom/index')
18 ), 18 ),
19 }, 19 },
20 - props:['commandNameData'], 20 + props:['commandNameData','machineRoomRes'],
21 data(){ 21 data(){
22 return { 22 return {
23 domainName:sessionStorage.getItem('domainName'), 23 domainName:sessionStorage.getItem('domainName'),
@@ -82,13 +82,17 @@ export default { @@ -82,13 +82,17 @@ export default {
82 try { 82 try {
83 const ele = proxy.$refs[`machineRoom`]; 83 const ele = proxy.$refs[`machineRoom`];
84 var info = $(ele.$refs['roomDetail'].$refs['roomTable']); 84 var info = $(ele.$refs['roomDetail'].$refs['roomTable']);
85 - info.find(`td`).prepend('<i class="el-icon-arrow-down" style="color: #1E9FFF"></i>')  
86 var params = { 85 var params = {
87 theirRoomId : proxy.commandNameDataItem.machineRoomId 86 theirRoomId : proxy.commandNameDataItem.machineRoomId
88 } 87 }
89 proxy.$http.get(`/api-web/bigScreen/cabinetRoom`, params, function (res) { 88 proxy.$http.get(`/api-web/bigScreen/cabinetRoom`, params, function (res) {
90 if (res && res.success == true) { 89 if (res && res.success == true) {
91 res.data.filter(function(v){ 90 res.data.filter(function(v){
  91 + let machineRoomRes=props.machineRoomRes;
  92 + if(machineRoomRes != null && v.theirCabinet == machineRoomRes.theirCabinet){
  93 + proxy.commandNameDataItem.Uposition=machineRoomRes.startU;
  94 + info.find(`td[name="${v.theirCabinet}"]`).prepend('<i class="el-icon-arrow-down" style="position:absolute;left:0;right:0;top:-15px;color:#1e9fff;"></i>')
  95 + }
92 if(v.alarm == '0'){ 96 if(v.alarm == '0'){
93 // 有告警信息展示方式 97 // 有告警信息展示方式
94 info.find(`td[name="${v.theirCabinet}"] span`).addClass('arrowBox');//.css('color','blue') 98 info.find(`td[name="${v.theirCabinet}"] span`).addClass('arrowBox');//.css('color','blue')
@@ -221,7 +221,7 @@ export default { @@ -221,7 +221,7 @@ export default {
221 } 221 }
222 let UpositionBottom=Vue.ref(-1); 222 let UpositionBottom=Vue.ref(-1);
223 if(props.machineData.Uposition){ 223 if(props.machineData.Uposition){
224 - UpositionBottom.value=(props.machineData.Uposition-1)*16 224 + UpositionBottom.value=(props.machineData.Uposition-1)*16+8
225 } 225 }
226 const getDeviceInfo=()=>{ 226 const getDeviceInfo=()=>{
227 proxy.deviceDatas.map((item,index)=>{ 227 proxy.deviceDatas.map((item,index)=>{
1 <!--机房布局--> 1 <!--机房布局-->
2 <div style="margin-left: 15px;margin-top: 6px; "> 2 <div style="margin-left: 15px;margin-top: 6px; ">
3 - <GetMachineRoom v-if="commandNameData" :commandNameData="commandNameData"></GetMachineRoom> 3 + <GetMachineRoom v-if="commandNameData" :commandNameData="commandNameData" :machineRoomRes="machineRoomRes"></GetMachineRoom>
4 </div> 4 </div>
5 5
@@ -15,7 +15,9 @@ export default { @@ -15,7 +15,9 @@ export default {
15 const {proxy} = Vue.getCurrentInstance(); 15 const {proxy} = Vue.getCurrentInstance();
16 let roomSecondData=Vue.ref([]); 16 let roomSecondData=Vue.ref([]);
17 let commandNameData=Vue.ref(); 17 let commandNameData=Vue.ref();
  18 + let machineRoomRes=Vue.ref();
18 const getData=(roomRow)=>{ 19 const getData=(roomRow)=>{
  20 + proxy.machineRoomRes=roomRow;
19 proxy.$http.get('/api-web/machineroom/list',{},function (res){ 21 proxy.$http.get('/api-web/machineroom/list',{},function (res){
20 if(res && res.data){ 22 if(res && res.data){
21 let roomSecondDataArr=res.data; 23 let roomSecondDataArr=res.data;
@@ -43,7 +45,8 @@ export default { @@ -43,7 +45,8 @@ export default {
43 return{ 45 return{
44 getData, 46 getData,
45 roomSecondData, 47 roomSecondData,
46 - commandNameData 48 + commandNameData,
  49 + machineRoomRes
47 } 50 }
48 } 51 }
49 } 52 }