Эх сурвалжийг харах

智能运维 页面脚本

zhulu 1 жил өмнө
parent
commit
9c86bb0291

+ 14 - 0
src/api/iot/videoDiagnosis.js

@@ -53,6 +53,20 @@ export function integrity(hostCode, channelCode,date) {
     });
   }
 
+
+  /**
+ * 获取角标
+ * @param {} orgId 
+ * @returns 
+ */
+   export function getSmartOprationPageBadge(orgId){
+    return request({
+      url: `/iot/smartopration/app/page/badge/${orgId}`,
+      method: 'get',
+      hideLoading:true
+    });
+  }
+
   // 查询【请填写功能名称】列表
 export function smartOprationlist(query) {
   if(query.activeTab == "videoCheck"){

+ 8 - 4
src/views/home/menu.vue

@@ -43,6 +43,8 @@ import { getDvrRecorderBadge } from '@/api/iot/dvrRecorder.js'
 import { getVideoDiagnosisBadge } from '@/api/iot/videoDiagnosis.js'
 import { getBadge as getAlarmCenterBadge } from '@/api/iot/alarmCenter.js'
 import { getFireWarningBadge,getEnvMonitorBadge } from '@/api/iot/sensorAlarm.js'
+import { getSmartOprationPageBadge } from '@/api/iot/videoDiagnosis.js'
+
 
 export default {
   name: 'menus',
@@ -66,12 +68,14 @@ export default {
       getMenu().then(res => {
         this.menuList = res.data
         this.$refs.Scroll.refresh()
-        this.getBadge('/iot/donghuan', getDonghuanBadge)
-        this.getBadge('/iot/dvrDisk', getDvrRecorderBadge)
-        this.getBadge('/iot/videoDiagnosis', getVideoDiagnosisBadge)
-        this.getBadge('/iot/alarmCenter', getAlarmCenterBadge)
+        // this.getBadge('/iot/donghuan', getDonghuanBadge)
+        // this.getBadge('/iot/dvrDisk', getDvrRecorderBadge)
+        // this.getBadge('/iot/videoDiagnosis', getVideoDiagnosisBadge)
+        // this.getBadge('/iot/alarmCenter', getAlarmCenterBadge)
         this.getBadge('/iot/fireWarning', getFireWarningBadge)
         this.getBadge('/iot/envMonitor', getEnvMonitorBadge)
+        this.getBadge('/iot/smartopration', getSmartOprationPageBadge)
+        
       })
     },
     getBadge(url, method) {