From 48ea6d030138277b2d168135a065b6147e8674ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 19 Jul 2024 08:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E6=94=B9=EF=BC=9A=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=95=B4=E7=90=86=E8=8F=9C=E5=8D=95=E5=8F=8A=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/oa/app/model/index.ts | 1 + src/api/system/{tennat => tenant}/index.ts | 0 .../system/{tennat => tenant}/model/index.ts | 3 + .../SelectTenant/components/select-data.vue | 2 +- src/components/SelectTenant/index.vue | 2 +- src/store/modules/tenant.ts | 2 +- src/store/modules/user.ts | 2 +- .../system/company/components/search.vue | 5 +- src/views/system/company/index.vue | 250 ++++----------- src/views/system/plug/components/plug.vue | 279 ++++++++-------- src/views/system/plug/components/tenant.vue | 23 +- src/views/system/plug/index.vue | 14 +- src/views/system/user/balance-log/index.vue | 297 ++++++++++++++++++ src/views/system/user/index.vue | 1 - 15 files changed, 519 insertions(+), 366 deletions(-) rename src/api/system/{tennat => tenant}/index.ts (100%) rename src/api/system/{tennat => tenant}/model/index.ts (92%) create mode 100644 src/views/system/user/balance-log/index.vue diff --git a/.env.development b/.env.development index cd9000d..0aabc1d 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ VITE_APP_NAME=后台管理系统 VITE_SOCKET_URL=wss://server.gxwebsoft.com -VITE_SERVER_URL=https://server.gxwebsoft.com/api +#VITE_SERVER_URL=https://server.gxwebsoft.com/api VITE_API_URL=https://modules.gxwebsoft.com/api -#VITE_SERVER_URL=http://127.0.0.1:9091/api +VITE_SERVER_URL=http://127.0.0.1:9091/api #VITE_API_URL=http://127.0.0.1:9099/api diff --git a/src/api/oa/app/model/index.ts b/src/api/oa/app/model/index.ts index e4c2c62..920449c 100644 --- a/src/api/oa/app/model/index.ts +++ b/src/api/oa/app/model/index.ts @@ -160,4 +160,5 @@ export interface AppParam extends PageParam { showIndex?: boolean; showExpiration?: boolean; keywords?: any; + sceneType?: string; } diff --git a/src/api/system/tennat/index.ts b/src/api/system/tenant/index.ts similarity index 100% rename from src/api/system/tennat/index.ts rename to src/api/system/tenant/index.ts diff --git a/src/api/system/tennat/model/index.ts b/src/api/system/tenant/model/index.ts similarity index 92% rename from src/api/system/tennat/model/index.ts rename to src/api/system/tenant/model/index.ts index 6de67cd..de007b2 100644 --- a/src/api/system/tennat/model/index.ts +++ b/src/api/system/tenant/model/index.ts @@ -39,5 +39,8 @@ export interface TenantParam extends PageParam { appId?: string; companyId?: number; companyName?: string; + version?: string; + province?: string; + city?: string; tenantCode?: string; } diff --git a/src/components/SelectTenant/components/select-data.vue b/src/components/SelectTenant/components/select-data.vue index 67d42b8..ecac8b6 100644 --- a/src/components/SelectTenant/components/select-data.vue +++ b/src/components/SelectTenant/components/select-data.vue @@ -55,7 +55,7 @@ ColumnItem, DatasourceFunction } from 'ele-admin-pro/es/ele-pro-table/types'; - import { pageTenant } from '@/api/system/tennat'; + import { pageTenant } from '@/api/system/tenant'; import { FILE_THUMBNAIL } from '@/config/setting'; import { EleProTable } from 'ele-admin-pro'; import { Company, CompanyParam } from '@/api/system/company/model'; diff --git a/src/components/SelectTenant/index.vue b/src/components/SelectTenant/index.vue index 5e311e8..5f3db98 100644 --- a/src/components/SelectTenant/index.vue +++ b/src/components/SelectTenant/index.vue @@ -26,7 +26,7 @@ import { BulbOutlined } from '@ant-design/icons-vue'; import { ref } from 'vue'; import SelectData from './components/select-data.vue'; - import { Tenant } from '@/api/system/tennat/model'; + import { Tenant } from '@/api/system/tenant/model'; withDefaults( defineProps<{ diff --git a/src/store/modules/tenant.ts b/src/store/modules/tenant.ts index 39b0615..2eca924 100644 --- a/src/store/modules/tenant.ts +++ b/src/store/modules/tenant.ts @@ -6,7 +6,7 @@ import { formatMenus, toTreeData, formatTreeData } from 'ele-admin-pro'; import type { MenuItem } from 'ele-admin-pro'; import { USER_MENUS } from '@/config/setting'; import { getTenantInfo } from '@/api/layout'; -import { Tenant } from '@/api/system/tennat/model'; +import { Tenant } from '@/api/system/tenant/model'; import { Company } from '@/api/system/company/model'; // const EXTRA_MENUS: any = []; diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 81963f7..3e86b78 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -7,7 +7,7 @@ import type { MenuItemType } from 'ele-admin-pro/es'; import type { User } from '@/api/system/user/model'; import { TOKEN_STORE_NAME, USER_MENUS } from '@/config/setting'; import { getUserInfo } from '@/api/layout'; -import { initialization } from '@/api/system/tennat'; +import { initialization } from '@/api/system/tenant'; // import { isExternalLink } from 'ele-admin-pro'; // import { message } from 'ant-design-vue'; const EXTRA_MENUS: any = []; diff --git a/src/views/system/company/components/search.vue b/src/views/system/company/components/search.vue index 18a9cd5..f2602da 100644 --- a/src/views/system/company/components/search.vue +++ b/src/views/system/company/components/search.vue @@ -3,7 +3,6 @@