Browse Source

1.queryStatis接口参数修改
2.updateStatis接口参数修改

yx 4 years ago
parent
commit
8ab8b584f4
2 changed files with 16 additions and 2 deletions
  1. 10 2
      src/components/Legend/src/legend.vue
  2. 6 0
      src/components/editLengend.vue

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

@@ -319,7 +319,9 @@ export default {
                 categoryId: this.$cookie.get('categoryId'),
                 graphId: this.$cookie.get('graphId'),
                 projectId: this.$store.state.plazaId,
-                flag: flag
+                flag: flag,
+                buildingId: '1',
+                floorId: this.$store.state.currentFloor.gname
             }
             queryStatis({ data, postParams }).then(res => {
                 this.loading = false
@@ -347,9 +349,12 @@ export default {
         queryEditNum(flag) {
             let postParams = {}
             let data = {
+                categoryId: this.$cookie.get('categoryId'),
                 graphId: this.$cookie.get('graphId'),
                 projectId: this.$store.state.plazaId,
-                flag: flag
+                flag: flag,
+                buildingId: '1',
+                floorId: this.$store.state.currentFloor.gname
             }
             queryStatis({ data, postParams }).then(res => {
                 //console.log('编辑图例数', res)
@@ -363,6 +368,9 @@ export default {
             if (val.length > 0) {
                 val.forEach(el => {
                     let obj = {
+                        BuildingId: '1',
+                        FloorId: this.$store.state.currentFloor.gname,
+                        ProjectId: this.plazaId,
                         CategoryId: el.GraphCategoryId,
                         GraphId: this.$cookie.get('graphId'),
                         GraphElementId: el.GraphElementId,

+ 6 - 0
src/components/editLengend.vue

@@ -163,6 +163,12 @@ export default {
         },
         // 编辑数量
         queryEdit(val) {
+            val.map(item => {
+                item.BuildingId = '1'
+                item.FloorId = this.$store.state.currentFloor.gname
+                item.ProjectId = this.$store.state.plazaId
+                item.CategoryId = this.$cookie.get('categoryId')
+            })
             let params = {
                 postParams: {
                     Content: val