Browse Source

修改动参问题

haojianlong 4 years ago
parent
commit
f8b8b3ece3

+ 1 - 1
src/components/point/dynamicdata/locationCascader.vue

@@ -62,7 +62,7 @@ export default {
           } else if (node.level == 3) {
             let pa = {
               PageSize: 1000,
-              ObjectType: node.path[2],
+              ZoneType: node.path[2],
               Filters: `BuildingId='${node.path[0]}';FloorId='${node.path[1]}'`
             };
             zoneQuery(pa, res => {

+ 10 - 2
src/views/point/dynamicdata/addRelation/spaceRela/index.vue

@@ -406,10 +406,18 @@ export default {
         pa.Filters += `;RoomLocalName contain "${this.form.ObjectLocalName}"`;
       }
       if (this.form.locationVal.length > 0) {
-        pa.Filters += `;BuildingId="${this.form.locationVal[0]}"`;
+        if (this.form.locationVal[0] == "unknowBuild") {
+          pa.BuildingId = 'isnull';
+        } else {
+          pa.BuildingId = this.form.locationVal[0];
+        }
       }
       if (this.form.locationVal.length > 1) {
-        pa.Filters += `;FloorId="${this.form.locationVal[1]}"`;
+        if (this.form.locationVal[1] == "unknowFloor") {
+          pa.FloorId = 'isnull';
+        } else {
+          pa.FloorId = this.form.locationVal[1];
+        }
       }
       let pa2 = {
         Filters: `TypeName='${this.typeName}'`