Browse Source

租户信息请求接口修改

lph 1 năm trước cách đây
mục cha
commit
9424ae961c

+ 8 - 0
zkqy-ui/src/api/system/tenant.js

@@ -17,6 +17,14 @@ export function getTenantAllList(query) {
   })
 }
 
+// 选项信息
+export function tenantTree() {
+  return request({
+    url: '/system/tenant/tenantTree',
+    method: 'get'
+  })
+}
+
 // 查询租户信息详细
 export function getTenant(tenantId) {
   return request({

+ 1 - 0
zkqy-ui/src/views/system/tenant/index.vue

@@ -499,6 +499,7 @@ import {
   activationOperation,
   getTenantChildrenInfo,
   getTenantAllList,
+  tenantTree,
 } from "@/api/system/tenant";
 import { getDataSourceInfo, insertDataSource } from "@/api/system/data";
 import {

+ 4 - 3
zkqy-ui/src/views/system/tenant/tenantIndex.vue

@@ -610,6 +610,7 @@ import {
   activationOperation,
   getTenantChildrenInfo,
   getTenantAllList,
+  tenantTree,
 } from "@/api/system/tenant";
 import { getDataSourceInfo, insertDataSource } from "@/api/system/data";
 import {
@@ -827,14 +828,14 @@ export default {
 
     // 查询所有平台所有租户
     getTenantAllList() {
-      getTenantAllList().then((response) => {
+      tenantTree().then((response) => {
         let tenantAllListOne = this.handleTree(
-          response.rows,
+          response.data,
           "tenantId",
           "tenantParentId"
         );
         this.tenantAllList = [
-          { tenantId: 0, tenantName: "顶级租户" },
+          // { tenantId: 0, tenantName: "顶级租户" },
           ...tenantAllListOne,
         ];
       });