瀏覽代碼

责任制+消息组件

qinhouyu 2 年之前
父節點
當前提交
ac092f0e97
共有 4 個文件被更改,包括 1709 次插入975 次删除
  1. 5 4
      src/api/forest.js
  2. 4 1
      src/assets/styles/base.scss
  3. 1695 966
      src/components/vBottomMenu.vue
  4. 5 4
      src/views/monitor.vue

+ 5 - 4
src/api/forest.js

@@ -290,17 +290,18 @@ export function userFeginlist(param) {
   })
 }
 
+
 // 获取消息个数
-export function selectMessageCount(userId) {
+export function selectMessageCount(userId,deptId) {
   return request({
-    url: '/center-message/centerMessageFeign/selectMessageCount/'+userId,
+    url: '/center-message/centerMessageFeign/selectMessageCount/'+userId+'/'+deptId,
     method: 'get'
   })
 }
 // 获取消息列表
-export function selectMessageList(userId) {
+export function selectMessageList(userId,deptId) {
   return request({
-    url: '/center-message/centerMessageFeign/selectMessageList/'+userId,
+    url: '/center-message/centerMessageFeign/selectMessageList/'+userId+'/'+deptId,
     method: 'get'
   })
 }

+ 4 - 1
src/assets/styles/base.scss

@@ -232,7 +232,7 @@ ul {
 }
 //tips样式
 .js-tps{
-    
+
   // background-image: -moz-linear-gradient($boxBG)!important;
   // background-image: -webkit-linear-gradient($boxBG) !important;
   // background-image: linear-gradient($boxBG)!important;
@@ -3272,3 +3272,6 @@ div::-webkit-scrollbar {
 .no_hover .no-weight h4{
 	color:#2bacf7!important;
 }
+.el-message{
+  z-index: 9999 !important;
+}

文件差異過大導致無法顯示
+ 1695 - 966
src/components/vBottomMenu.vue


+ 5 - 4
src/views/monitor.vue

@@ -183,7 +183,8 @@
         this.selectKeyAreaList()
         this.bottomMenuList() //获取底部公共组件消息和任务
         this.getTreeselect()
-        this.deptId = Cookies.get("deptId")
+        this.deptId = parseInt(Cookies.get("deptId"));
+
         //this.getSensorListByDeptIds()
         // this.chuanSet()
         this.getMonitorDeviceAndDataLists()
@@ -429,7 +430,7 @@
         this.onChuan = false;
         this.localMark = "she";
         this.placeholderMsg = "请输入摄像头名称";
-        this.deptId = Cookies.get("deptId");
+        // this.deptId = Cookies.get("deptId");
         clearInterval(this.cgqTimer);
         this.selectDeviceType();
         // this.getNotCoverPlaces(this.deptId);
@@ -440,7 +441,7 @@
         this.onChuan = false;
         this.localMark = "la";
         this.placeholderMsg = "请输入云广播名称";
-        this.deptId = Cookies.get("deptId");
+        // this.deptId = Cookies.get("deptId");
         clearInterval(this.cgqTimer);
         this.getDlblistBydeptId(null);
       },
@@ -450,7 +451,7 @@
         this.onChuan = true
         this.localMark = 'chuan'
         this.placeholderMsg = "请输入传感器名称"
-        this.deptId = Cookies.get("deptId")
+        // this.deptId = Cookies.get("deptId")
         this.getMonitorDeviceAndDataList(null)
       },
       // 云广播