瀏覽代碼

feat: enable content protection and remote control

Casper Dai 3 年之前
父節點
當前提交
fb1e3ce4a4
共有 2 個文件被更改,包括 9 次插入15 次删除
  1. 4 10
      src/views/device/detail/components/DeviceInfo.vue
  2. 5 5
      src/views/device/detail/index.vue

+ 4 - 10
src/views/device/detail/components/DeviceInfo.vue

@@ -37,16 +37,10 @@
         <div class="l-flex__fill c-info__value">{{ device.resolutionRatio }}</div>
       </div>
       <div class="l-flex--row l-flex__fill c-info__item">
-        <template v-if="__STAGING__">
-          <div class="l-flex__none c-info__title">内容保护</div>
-          <div class="l-flex__fill c-info__value primary">
-            <content-protection :device="device" />
-          </div>
-        </template>
-        <template v-else>
-          <div class="l-flex__none c-info__title">创建时间</div>
-          <div class="l-flex__fill c-info__value">{{ device.createTime }}</div>
-        </template>
+        <div class="l-flex__none c-info__title">内容保护</div>
+        <div class="l-flex__fill c-info__value primary">
+          <content-protection :device="device" />
+        </div>
       </div>
     </div>
     <div class="l-flex--row c-info__block">

+ 5 - 5
src/views/device/detail/index.vue

@@ -110,11 +110,11 @@ export default {
         { key: 'DeviceAlarm', label: '设备告警' },
         this.accessSet.has(Access.MANAGE_DEVICE) ? { key: 'DeviceInvoke', label: '设备操控' } : null,
         __SENSOR__ ? { key: 'Sensors', label: '传感器' } : null,
-        __STAGING__ ? { key: 'LinkState', label: '全链路监测' } : null,
-        __STAGING__ ? { key: 'Transmitter', label: '发送控制设备' } : null,
-        __STAGING__ ? { key: 'ReceivingCard', label: '接收卡' } : null,
-        __STAGING__ ? { key: 'Camera', label: '摄像头' } : null,
-        __STAGING__ ? { key: 'Gateway', label: '网关' } : null
+        { key: 'LinkState', label: '全链路监测' },
+        { key: 'Transmitter', label: '发送控制设备' },
+        { key: 'ReceivingCard', label: '接收卡' },
+        { key: 'Camera', label: '摄像头' },
+        { key: 'Gateway', label: '网关' }
       ].filter(Boolean)
     }
   },