瀏覽代碼

动参租户待关联实例查询替换

haojianlong 5 年之前
父節點
當前提交
0cb97433ae
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/views/point/dynamicdata/addRelation/tenantRela/index.vue

+ 9 - 1
src/views/point/dynamicdata/addRelation/tenantRela/index.vue

@@ -393,7 +393,8 @@ export default {
     getRightData() {
       let pa = {
         PageNumber: this.rPage.pageNumber,
-        PageSize: this.rPage.pageSize
+        PageSize: this.rPage.pageSize,
+        Cascade: [{ Name: 'zoneTenantList' }]
       };
       //处理查询条件
       if (this.form.ObjectLocalName && this.form.ObjectLocalName.length) {
@@ -418,6 +419,13 @@ export default {
           t.ObjectID = t.TenantID.substr(14);
           t.ObjectLocalName = t.TenantLocalName;
           t.ObjectLocalCode = t.TenantLocalID;
+          t.RoomLocalName = '';
+          if (t.ZoneTenantList) {
+            t.ZoneTenantList.forEach(item => {
+              t.RoomLocalName += item.RoomLocalName + ',';
+            });
+            t.RoomLocalName = t.RoomLocalName.substring(0, t.RoomLocalName.length - 1);
+          }
           return t;
         });
         if (this.rPage.pageNumber == 1) {