From 490dd68ed72014f0a8ba337f97681e48917fd673 Mon Sep 17 00:00:00 2001 From: BabyBoy <2019108827@qq.com> Date: Sat, 2 Aug 2025 16:59:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/index.ts | 20 ++++ src/api/account/types.ts | 20 ++++ src/api/system/tenant/types.ts | 1 + src/views/account/index.vue | 153 ++++++++++++++++++++++++++++++ src/views/system/tenant/index.vue | 8 +- 5 files changed, 198 insertions(+), 4 deletions(-) create mode 100644 src/api/account/index.ts create mode 100644 src/api/account/types.ts create mode 100644 src/views/account/index.vue diff --git a/src/api/account/index.ts b/src/api/account/index.ts new file mode 100644 index 0000000..311151d --- /dev/null +++ b/src/api/account/index.ts @@ -0,0 +1,20 @@ +import { AccountQuery } from './types'; +import { AxiosPromise } from 'axios'; +import request from '@/utils/request'; + +// 查询租户账户列表 +export function getList(query: AccountQuery): AxiosPromise { + return request({ + url: '/system/tenant/account/list', + method: 'post', + data: query + }); +} +// 查询租户账户列表 +export function getDel(query: string): AxiosPromise { + return request({ + url: '/system/tenant/account/list', + method: 'delete', + data: query + }); +} diff --git a/src/api/account/types.ts b/src/api/account/types.ts new file mode 100644 index 0000000..041feca --- /dev/null +++ b/src/api/account/types.ts @@ -0,0 +1,20 @@ +export interface AccountQuery { + current: number; + size: number; + type: string | number; + tenantName: string; +} +export interface VersionList { + createBy: number; + createTime: string; + id: number; + integralBalance: string; + moneyBalance: string; + revenue: string; + tenantId: number; + totalIntegralBalance: string; + type: number; + updateBy: number; + updateTime: string; + wallet: string; +} diff --git a/src/api/system/tenant/types.ts b/src/api/system/tenant/types.ts index 8ee8c6d..40fdb90 100644 --- a/src/api/system/tenant/types.ts +++ b/src/api/system/tenant/types.ts @@ -33,6 +33,7 @@ export interface TenantForm { id: number | string | undefined; tenantId: number | string | undefined; username: string; + templateName: string; password: string; storeName: string; inviteUserName: string; diff --git a/src/views/account/index.vue b/src/views/account/index.vue new file mode 100644 index 0000000..0f1eca7 --- /dev/null +++ b/src/views/account/index.vue @@ -0,0 +1,153 @@ + + + diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index 1528a57..622b7c9 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -58,9 +58,9 @@ 删除 - + 同步租户字典 @@ -517,7 +517,7 @@ -
+
@@ -1004,7 +1004,7 @@ const handleUpdate = async (row?: TenantVO) => { await getTenantPackage(); const _id = row?.id || ids.value[0]; const res = await getTenant(_id); - businessTypesjson.value = res.data.businessTypes.split(','); + businessTypesjson.value = res.data.businessTypes?.split(','); Object.assign(form.value, res.data); dialog.visible = true; dialog.title = '修改租户';