From 8d3a20cc01b4d97f1318fa73faad7c3c45a995e0 Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Wed, 19 Jan 2022 11:21:58 +0800
Subject: [PATCH] =?UTF-8?q?iscs=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../config/broadcast/centerHome.vue | 59 ++++++++-
.../config/broadcast/stateTable.vue | 4 +-
.../config/broadcast/stationHome.vue | 114 +++++++++++++++++-
.../iscs/iscsSystem/config/pis/mainScreen.vue | 6 +-
4 files changed, 171 insertions(+), 12 deletions(-)
diff --git a/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue b/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue
index 325213440..e4fe7c861 100644
--- a/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue
+++ b/src/views/iscs/iscsSystem/config/broadcast/centerHome.vue
@@ -21,7 +21,7 @@
- {{ deviceMap[i+ '-' +j].state }}
+ {{ deviceMap[i+ '-' +j].state }}
@@ -134,6 +134,53 @@ export default {
const index = this.iscsDeviceMap[item.code];
if (index) {
this.$set(this.deviceMap[index], 'state', item.state);
+ const div = document.getElementById('state-' + index);
+ if (div) {
+ switch (item.state) {
+ case '0':
+ div.style.background = '#CCCCCC';
+ break;
+ case '1':
+ div.style.background = '#FF0000';
+ break;
+ case '2':
+ div.style.background = '#880000';
+ break;
+ case '3':
+ div.style.background = '#0000FF';
+ break;
+ case '4':
+ div.style.background = '#554488';
+ break;
+ case '5':
+ div.style.background = '#44CC55';
+ break;
+ case '6':
+ div.style.background = '#FF00FF';
+ break;
+ case '7':
+ div.style.background = '#887711';
+ break;
+ case '8':
+ div.style.background = '#006600';
+ break;
+ case '9':
+ div.style.background = '#778877';
+ break;
+ case '10':
+ div.style.background = '#555454';
+ break;
+ case '11':
+ div.style.background = '#556688';
+ break;
+ case '12':
+ div.style.background = '#887711';
+ break;
+ case '13':
+ div.style.background = '#115577';
+ break;
+ }
+ }
}
});
}
@@ -562,4 +609,14 @@ export default {
.iscs-pa-table {
height: 32px;
}
+ .pa-tabel-state-box{
+ display: inline-block;
+ margin-left: 5px;
+ width: 20px;
+ text-align: center;
+ height: 18px;
+ line-height: 18px;
+ transform: translateY(-25%);
+ color: #000;
+ }
diff --git a/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue b/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue
index 41a02e4a5..fda5e22b0 100644
--- a/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue
+++ b/src/views/iscs/iscsSystem/config/broadcast/stateTable.vue
@@ -21,13 +21,13 @@
3
环调话筒广播
- 11
+ 10
车站普通预录
4
中心紧急预录
- 12
+ 11
ATS预录
diff --git a/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue b/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue
index da1d9c2ac..96a0088d3 100644
--- a/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue
+++ b/src/views/iscs/iscsSystem/config/broadcast/stationHome.vue
@@ -20,37 +20,37 @@
@@ -251,6 +251,53 @@ export default {
this.iscsDeviceList.forEach(device => {
this.$set(device, 'state', this.iscsDeviceState[device.code] ? this.iscsDeviceState[device.code].state : '0');
this.iscsDeviceMap[device.code] = device;
+ const div = document.getElementById(device.position);
+ if (div) {
+ switch (device.state) {
+ case '0':
+ div.style.background = '#CCCCCC';
+ break;
+ case '1':
+ div.style.background = '#FF0000';
+ break;
+ case '2':
+ div.style.background = '#880000';
+ break;
+ case '3':
+ div.style.background = '#0000FF';
+ break;
+ case '4':
+ div.style.background = '#554488';
+ break;
+ case '5':
+ div.style.background = '#44CC55';
+ break;
+ case '6':
+ div.style.background = '#FF00FF';
+ break;
+ case '7':
+ div.style.background = '#887711';
+ break;
+ case '8':
+ div.style.background = '#006600';
+ break;
+ case '9':
+ div.style.background = '#778877';
+ break;
+ case '10':
+ div.style.background = '#555454';
+ break;
+ case '11':
+ div.style.background = '#556688';
+ break;
+ case '12':
+ div.style.background = '#887711';
+ break;
+ case '13':
+ div.style.background = '#115577';
+ break;
+ }
+ }
});
});
},
@@ -265,6 +312,53 @@ export default {
const device = this.iscsDeviceMap[item.code];
if (device) {
this.$set(this.deviceMap[device.position], 'state', item.state);
+ const div = document.getElementById(device.position);
+ if (div) {
+ switch (item.state) {
+ case '0':
+ div.style.background = '#CCCCCC';
+ break;
+ case '1':
+ div.style.background = '#FF0000';
+ break;
+ case '2':
+ div.style.background = '#880000';
+ break;
+ case '3':
+ div.style.background = '#0000FF';
+ break;
+ case '4':
+ div.style.background = '#554488';
+ break;
+ case '5':
+ div.style.background = '#44CC55';
+ break;
+ case '6':
+ div.style.background = '#FF00FF';
+ break;
+ case '7':
+ div.style.background = '#887711';
+ break;
+ case '8':
+ div.style.background = '#006600';
+ break;
+ case '9':
+ div.style.background = '#778877';
+ break;
+ case '10':
+ div.style.background = '#555454';
+ break;
+ case '11':
+ div.style.background = '#556688';
+ break;
+ case '12':
+ div.style.background = '#887711';
+ break;
+ case '13':
+ div.style.background = '#115577';
+ break;
+ }
+ }
}
});
}
@@ -468,6 +562,7 @@ export default {
}
.pa-check-box{
position: relative;
+ left: 2px;
display: inline-block;
width: 12px;
height: 12px;
@@ -620,6 +715,13 @@ export default {
width: 13%;
font-size: 12px;
}
+ .pa-state-box{
+ position: relative;
+ left: 30px;
+ display: inline-block;
+ color: #000;
+ width: 20px;
+ }