diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml
index 640baae1e..5195479dc 100644
--- a/yudao-dependencies/pom.xml
+++ b/yudao-dependencies/pom.xml
@@ -27,7 +27,6 @@
3.5.2
3.5.2
3.18.0
-
2.2.2
1.7.1
diff --git a/yudao-ui-admin-vue3/pnpm-lock.yaml b/yudao-ui-admin-vue3/pnpm-lock.yaml
index f9a4ddbfb..9894a9bb8 100644
--- a/yudao-ui-admin-vue3/pnpm-lock.yaml
+++ b/yudao-ui-admin-vue3/pnpm-lock.yaml
@@ -28,7 +28,7 @@ specifiers:
dayjs: ^1.11.6
echarts: ^5.4.0
echarts-wordcloud: ^2.0.0
- element-plus: 2.2.22
+ element-plus: 2.2.21
eslint: ^8.27.0
eslint-config-prettier: ^8.5.0
eslint-define-config: ^1.12.0
@@ -92,7 +92,7 @@ dependencies:
dayjs: registry.npmmirror.com/dayjs/1.11.6
echarts: registry.npmmirror.com/echarts/5.4.0
echarts-wordcloud: registry.npmmirror.com/echarts-wordcloud/2.0.0_echarts@5.4.0
- element-plus: registry.npmmirror.com/element-plus/2.2.22_vue@3.2.45
+ element-plus: registry.npmmirror.com/element-plus/2.2.21_vue@3.2.45
intro.js: registry.npmmirror.com/intro.js/6.0.0
js-cookie: registry.npmmirror.com/js-cookie/3.0.1
jsencrypt: registry.npmmirror.com/jsencrypt/3.3.1
@@ -3645,11 +3645,11 @@ packages:
version: 1.4.284
dev: true
- registry.npmmirror.com/element-plus/2.2.22_vue@3.2.45:
- resolution: {integrity: sha512-gg2g2WOMNpWf0wGesymUvTV0VZDF/4khQKroSNeCV/vWJ/cqssPYdtqfGxTiFRt/f+JpyFkV7O1mo0yzMCzrBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/element-plus/-/element-plus-2.2.22.tgz}
- id: registry.npmmirror.com/element-plus/2.2.22
+ registry.npmmirror.com/element-plus/2.2.21_vue@3.2.45:
+ resolution: {integrity: sha512-wZUePoXZ1zuCkzENK/8mn+mekuLJ9OoGYiudjUujzCf+T8HfOQl+TKQStwOkGBNk93fK8e9YdFIty4jH4AX6dg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/element-plus/-/element-plus-2.2.21.tgz}
+ id: registry.npmmirror.com/element-plus/2.2.21
name: element-plus
- version: 2.2.22
+ version: 2.2.21
peerDependencies:
vue: ^3.2.0
dependencies:
diff --git a/yudao-ui-admin-vue3/src/api/system/tenant/index.ts b/yudao-ui-admin-vue3/src/api/system/tenant/index.ts
index 0eb134d8c..45f1ee48d 100644
--- a/yudao-ui-admin-vue3/src/api/system/tenant/index.ts
+++ b/yudao-ui-admin-vue3/src/api/system/tenant/index.ts
@@ -1,8 +1,36 @@
import request from '@/config/axios'
-import type { TenantVO } from './types'
+
+export interface TenantVO {
+ id: number
+ name: string
+ packageId: number
+ contactName: string
+ contactMobile: string
+ username: string
+ password: string
+ accountCount: number
+ expireTime: string
+ domain: string
+ status: number
+ createTime: string
+}
+
+export interface TenantPageReqVO extends PageParam {
+ name?: string
+ contactName?: string
+ contactMobile?: string
+ status?: number
+}
+
+export interface TenantExportReqVO {
+ name?: string
+ contactName?: string
+ contactMobile?: string
+ status?: number
+}
// 查询租户列表
-export const getTenantPageApi = (params) => {
+export const getTenantPageApi = (params: TenantPageReqVO) => {
return request.get({ url: '/system/tenant/page', params })
}
@@ -27,6 +55,6 @@ export const deleteTenantApi = (id: number) => {
}
// 导出租户
-export const exportTenantApi = (params) => {
+export const exportTenantApi = (params: TenantExportReqVO) => {
return request.download({ url: '/system/tenant/export-excel', params })
}
diff --git a/yudao-ui-admin-vue3/src/api/system/tenant/types.ts b/yudao-ui-admin-vue3/src/api/system/tenant/types.ts
deleted file mode 100644
index dc19b8e2c..000000000
--- a/yudao-ui-admin-vue3/src/api/system/tenant/types.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-export type TenantVO = {
- id: number
- name: string
- packageId: number
- contactName: string
- contactMobile: string
- username: string
- password: string
- accountCount: number
- expireTime: string
- domain: string
- status: number
- createTime: string
-}
diff --git a/yudao-ui-admin-vue3/src/api/system/tenantPackage/index.ts b/yudao-ui-admin-vue3/src/api/system/tenantPackage/index.ts
index 420cf24a3..9b6fdfc02 100644
--- a/yudao-ui-admin-vue3/src/api/system/tenantPackage/index.ts
+++ b/yudao-ui-admin-vue3/src/api/system/tenantPackage/index.ts
@@ -1,8 +1,26 @@
import request from '@/config/axios'
-import type { TenantPackageVO } from './types'
+
+export interface TenantPackageVO {
+ id: number
+ name: string
+ status: number
+ remark: string
+ creator: string
+ createTime: string
+ updater: string
+ updateTime: string
+ menuIds: string[]
+}
+
+export interface TenantPackagePageReqVO extends PageParam {
+ name?: string
+ contactName?: string
+ contactMobile?: string
+ status?: number
+}
// 查询租户套餐列表
-export const getTenantPackageTypePageApi = (params) => {
+export const getTenantPackageTypePageApi = (params: TenantPackagePageReqVO) => {
return request.get({ url: '/system/tenant-package/page', params })
}
@@ -25,7 +43,7 @@ export const updateTenantPackageTypeApi = (data: TenantPackageVO) => {
export const deleteTenantPackageTypeApi = (id: number) => {
return request.delete({ url: '/system/tenant-package/delete?id=' + id })
}
-// // 获取租户套餐精简信息列表
+// 获取租户套餐精简信息列表
export const getTenantPackageList = () => {
return request.get({ url: '/system/tenant-package/get-simple-list' })
}
diff --git a/yudao-ui-admin-vue3/src/api/system/tenantPackage/types.ts b/yudao-ui-admin-vue3/src/api/system/tenantPackage/types.ts
deleted file mode 100644
index b67dad77e..000000000
--- a/yudao-ui-admin-vue3/src/api/system/tenantPackage/types.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export type TenantPackageVO = {
- id: number
- name: string
- status: number
- remark: string
- creator: string
- createTime: string
- updater: string
- updateTime: string
- menuIds: string[]
-}
diff --git a/yudao-ui-admin-vue3/src/views/system/tenant/index.vue b/yudao-ui-admin-vue3/src/views/system/tenant/index.vue
index 7cc758727..ca9e74ea5 100644
--- a/yudao-ui-admin-vue3/src/views/system/tenant/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/tenant/index.vue
@@ -1,79 +1,55 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
{{ row.accountCount }}
-
-
-
系统租户
{{ getPackageName(row.packageId) }}
-
- {{ dayjs(row.expireTime).format('YYYY-MM-DD HH:mm:ss') }}
-
-
- {{ dayjs(row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
-
-
+
-
+
@@ -124,27 +100,33 @@
diff --git a/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts b/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts
index ef88848ff..b20ef4e74 100644
--- a/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts
+++ b/yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts
@@ -1,8 +1,8 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules'
-import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
import { DICT_TYPE } from '@/utils/dict'
+import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
const { t } = useI18n() // 国际化
// 表单校验
@@ -18,115 +18,82 @@ export const rules = reactive({
})
// CrudSchema.
-const crudSchemas = reactive([
- {
- label: t('common.index'),
- field: 'id',
- type: 'index',
- form: {
- show: false
+const crudSchemas = reactive({
+ primaryKey: 'id',
+ primaryType: 'seq',
+ action: true,
+ columns: [
+ {
+ title: '租户名称',
+ field: 'name',
+ isSearch: true
},
- detail: {
- show: false
- }
- },
- {
- label: '租户名称',
- field: 'name',
- search: {
- show: true
- }
- },
- {
- label: '租户套餐',
- field: 'packageId'
- },
- {
- label: '联系人',
- field: 'contactName',
- search: {
- show: true
- }
- },
- {
- label: '联系手机',
- field: 'contactMobile',
- search: {
- show: true
- }
- },
- {
- label: '用户名称',
- field: 'username',
- table: {
- show: false
+ {
+ title: '租户套餐',
+ field: 'packageId'
},
- detail: {
- show: false
- }
- },
- {
- label: '用户密码',
- field: 'password',
- table: {
- show: false
+ {
+ title: '联系人',
+ field: 'contactName',
+ isSearch: true
},
- detail: {
- show: false
+ {
+ title: '联系手机',
+ field: 'contactMobile',
+ isSearch: true
},
- form: {
- component: 'InputPassword'
- }
- },
- {
- label: '账号额度',
- field: 'accountCount',
- form: {
- component: 'InputNumber'
- }
- },
- {
- label: '过期时间',
- field: 'expireTime',
- form: {
- show: true,
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
+ {
+ title: '用户名称',
+ field: 'username',
+ isTable: false,
+ isDetail: false
+ },
+ {
+ title: '用户密码',
+ field: 'password',
+ isTable: false,
+ isDetail: false,
+ form: {
+ component: 'InputPassword'
}
- }
- },
- {
- label: '绑定域名',
- field: 'domain'
- },
- {
- label: '租户状态',
- field: 'status',
- dictType: DICT_TYPE.COMMON_STATUS,
- dictClass: 'number',
- search: {
- show: true
- }
- },
- {
- label: t('table.createTime'),
- field: 'createTime',
- form: {
- show: false
- }
- },
- {
- label: t('table.action'),
- field: 'action',
- width: '240px',
- form: {
- show: false
},
- detail: {
- show: false
+ {
+ title: '账号额度',
+ field: 'accountCount',
+ form: {
+ component: 'InputNumber'
+ }
+ },
+ {
+ title: '过期时间',
+ field: 'expireTime',
+ formatter: 'formatDate',
+ form: {
+ show: true,
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ }
+ },
+ {
+ title: '绑定域名',
+ field: 'domain'
+ },
+ {
+ title: '租户状态',
+ field: 'status',
+ dictType: DICT_TYPE.COMMON_STATUS,
+ dictClass: 'number',
+ isSearch: true
+ },
+ {
+ title: t('table.createTime'),
+ field: 'createTime',
+ formatter: 'formatDate',
+ isForm: false
}
- }
-])
-export const { allSchemas } = useCrudSchemas(crudSchemas)
+ ]
+})
+export const { allSchemas } = useVxeCrudSchemas(crudSchemas)
diff --git a/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue b/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
index 8a6808c64..60b37c113 100644
--- a/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
@@ -1,42 +1,20 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
- {{ dayjs(row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
+
+
+
-
-
-
-
-
+
@@ -89,28 +67,39 @@