Sfoglia il codice sorgente

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

yx 4 anni fa
parent
commit
ec877d3ab9
1 ha cambiato i file con 15 aggiunte e 2 eliminazioni
  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,