|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ useDashboard: __DEVICE_DASHBARD__,
|
|
|
loading: true,
|
|
|
device: null,
|
|
|
isActivated: false,
|
|
|
@@ -101,7 +102,7 @@ export default {
|
|
|
{ key: 'DeviceRuntime', label: '运行状态' },
|
|
|
{ key: 'DeviceAlarm', label: '设备告警' },
|
|
|
this.accessSet.has(Access.MANAGE_DEVICE) ? { key: 'DeviceInvoke', label: '设备操控' } : null,
|
|
|
- this.accessSet.has(Access.VIEW_SENSORS) ? { key: 'Sensors', label: '传感器' } : null,
|
|
|
+ __SENSOR__ ? { key: 'Sensors', label: '传感器' } : null,
|
|
|
__STAGING__ ? { key: 'Transmitter', label: '发送控制设备' } : null,
|
|
|
__STAGING__ ? { key: 'ReceivingCard', label: '接收卡' } : null,
|
|
|
__STAGING__ ? { key: 'LinkState', label: '全链路监测状态' } : null,
|
|
|
@@ -113,9 +114,6 @@ export default {
|
|
|
deviceId () {
|
|
|
return this.$route.params.id
|
|
|
},
|
|
|
- useDashboard () {
|
|
|
- return __DEVICE_DASHBARD__
|
|
|
- },
|
|
|
statusType () {
|
|
|
return this.isActivated
|
|
|
? this.isOnline
|