From 7c92735aff994ce44b5862d76a1f8b2af62e0d3e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 23 Mar 2023 09:42:53 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9AREVIEW=20?= =?UTF-8?q?=E7=A7=9F=E6=88=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/tenant/index.ts | 12 +- src/views/system/tenant/form.vue | 166 +++++++++------------- src/views/system/tenant/index.vue | 76 +++++----- src/views/system/tenant/tenant.data.ts | 186 ------------------------- 4 files changed, 114 insertions(+), 326 deletions(-) delete mode 100644 src/views/system/tenant/tenant.data.ts diff --git a/src/api/system/tenant/index.ts b/src/api/system/tenant/index.ts index d79fb7b2..176c3757 100644 --- a/src/api/system/tenant/index.ts +++ b/src/api/system/tenant/index.ts @@ -32,31 +32,31 @@ export interface TenantExportReqVO { } // 查询租户列表 -export const getTenantPageApi = (params: TenantPageReqVO) => { +export const getTenantPage = (params: TenantPageReqVO) => { return request.get({ url: '/system/tenant/page', params }) } // 查询租户详情 -export const getTenantApi = (id: number) => { +export const getTenant = (id: number) => { return request.get({ url: '/system/tenant/get?id=' + id }) } // 新增租户 -export const createTenantApi = (data: TenantVO) => { +export const createTenant = (data: TenantVO) => { return request.post({ url: '/system/tenant/create', data }) } // 修改租户 -export const updateTenantApi = (data: TenantVO) => { +export const updateTenant = (data: TenantVO) => { return request.put({ url: '/system/tenant/update', data }) } // 删除租户 -export const deleteTenantApi = (id: number) => { +export const deleteTenant = (id: number) => { return request.delete({ url: '/system/tenant/delete?id=' + id }) } // 导出租户 -export const exportTenantApi = (params: TenantExportReqVO) => { +export const exportTenant = (params: TenantExportReqVO) => { return request.download({ url: '/system/tenant/export-excel', params }) } diff --git a/src/views/system/tenant/form.vue b/src/views/system/tenant/form.vue index c50f6ffc..368327d0 100644 --- a/src/views/system/tenant/form.vue +++ b/src/views/system/tenant/form.vue @@ -7,96 +7,67 @@ label-width="80px" v-loading="formLoading" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + +