浏览代码

暖通系统,消防系统上送值修改

yx 4 年之前
父节点
当前提交
ec877d3ab9
共有 1 个文件被更改,包括 15 次插入2 次删除
  1. 15 2
      src/components/Legend/src/legend.vue

+ 15 - 2
src/components/Legend/src/legend.vue

@@ -209,6 +209,9 @@ export default {
                 // floorId = this.$cookie.get('floorMapId'),
                 floorId = this.$store.state.currentFloor.gname || this.$cookie.get('floorMapId'),
                 categoryId = this.$cookie.get('categoryId')
+            // 暖通系统,消防系统上送值修改
+            categoryId == 'NTXT' && (categoryId = 'FZQZL')
+            categoryId == 'XFXT' && (categoryId = 'XFBFYCFL')
             // 增加校验 floorId,防止上传 undefined
             if (!floorId) {
                 return true
@@ -342,8 +345,14 @@ export default {
         // 查询图例
         queryView(flag) {
             let postParams = {}
+            //FZQZL
+            //XFBFYCFL
+            // 暖通系统,消防系统上送值修改
+            let categoryId = this.$cookie.get('categoryId')
+            categoryId == 'NTXT' && (categoryId = 'FZQZL')
+            categoryId == 'XFXT' && (categoryId = 'XFBFYCFL')
             let data = {
-                categoryId: this.$cookie.get('categoryId'),
+                categoryId,
                 graphId: this.$cookie.get('graphId'),
                 projectId: this.$store.state.plazaId,
                 flag: flag,
@@ -375,8 +384,12 @@ export default {
         // 查询编辑状态图例
         queryEditNum(flag) {
             let postParams = {}
+            // 暖通系统,消防系统上送值修改
+            let categoryId = this.$cookie.get('categoryId')
+            categoryId == 'NTXT' && (categoryId = 'FZQZL')
+            categoryId == 'XFXT' && (categoryId = 'XFBFYCFL')
             let data = {
-                categoryId: this.$cookie.get('categoryId'),
+                categoryId,
                 graphId: this.$cookie.get('graphId'),
                 projectId: this.$store.state.plazaId,
                 flag: flag,