zs 1 سال پیش
والد
کامیت
9c1306ed8c
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/views/users/detail/index.vue

+ 3 - 3
src/views/users/detail/index.vue

@@ -81,12 +81,12 @@ const search = async () => {
       // 所属社区
       // 所属社区
       res = await officeAxios.query({ belong: info.street, type: '1', is_use: '0' });
       res = await officeAxios.query({ belong: info.street, type: '1', is_use: '0' });
       if (res.errcode == '0') communityList.value = res.data;
       if (res.errcode == '0') communityList.value = res.data;
-      if (info.role == 'sqry') {
-        fields.value.push({ label: '所属社区', model: 'community', type: 'select' });
-      }
       if (info.role != 'cs') {
       if (info.role != 'cs') {
         fields.value.push({ label: '所属街道', model: 'street', type: 'select' });
         fields.value.push({ label: '所属街道', model: 'street', type: 'select' });
       }
       }
+      if (info.role == 'sqry') {
+        fields.value.push({ label: '所属社区', model: 'community', type: 'select' });
+      }
     }
     }
   }
   }
 };
 };