Skip to content

Commit 5057e75

Browse files
author
puhui999
committed
Merge remote-tracking branch 'yudao/dev'
2 parents 4212870 + 3db7b26 commit 5057e75

File tree

100 files changed

+5710
-4026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+5710
-4026
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ dist-ssr
55
*.local
66
/dist*
77
*-lock.*
8-
pnpm-debug
8+
pnpm-debug

build/vite/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ export function createVitePlugins(VITE_APP_TITLE: string) {
3939
imports: [
4040
'vue',
4141
'vue-router',
42+
// 可额外添加需要 autoImport 的组件
4243
{
4344
'@/hooks/web/useI18n': ['useI18n'],
44-
'@/hooks/web/useXTable': ['useXTable'],
4545
'@/hooks/web/useMessage': ['useMessage'],
46+
'@/hooks/web/useXTable': ['useXTable'],
4647
'@/hooks/web/useVxeCrudSchemas': ['useVxeCrudSchemas'],
48+
'@/hooks/web/useTable': ['useTable'],
49+
'@/hooks/web/useCrudSchemas': ['useCrudSchemas'],
4750
'@/utils/formRules': ['required'],
4851
'@/utils/dict': ['DICT_TYPE']
4952
}

src/api/bpm/userGroup/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,37 @@ export type UserGroupVO = {
1111
}
1212

1313
// 创建用户组
14-
export const createUserGroupApi = async (data: UserGroupVO) => {
14+
export const createUserGroup = async (data: UserGroupVO) => {
1515
return await request.post({
1616
url: '/bpm/user-group/create',
1717
data: data
1818
})
1919
}
2020

2121
// 更新用户组
22-
export const updateUserGroupApi = async (data: UserGroupVO) => {
22+
export const updateUserGroup = async (data: UserGroupVO) => {
2323
return await request.put({
2424
url: '/bpm/user-group/update',
2525
data: data
2626
})
2727
}
2828

2929
// 删除用户组
30-
export const deleteUserGroupApi = async (id: number) => {
30+
export const deleteUserGroup = async (id: number) => {
3131
return await request.delete({ url: '/bpm/user-group/delete?id=' + id })
3232
}
3333

3434
// 获得用户组
35-
export const getUserGroupApi = async (id: number) => {
35+
export const getUserGroup = async (id: number) => {
3636
return await request.get({ url: '/bpm/user-group/get?id=' + id })
3737
}
3838

3939
// 获得用户组分页
40-
export const getUserGroupPageApi = async (params) => {
40+
export const getUserGroupPage = async (params) => {
4141
return await request.get({ url: '/bpm/user-group/page', params })
4242
}
4343

4444
// 获取用户组精简信息列表
45-
export const listSimpleUserGroupsApi = async () => {
45+
export const listSimpleUserGroup = async () => {
4646
return await request.get({ url: '/bpm/user-group/list-all-simple' })
4747
}

src/api/infra/apiErrorLog/index.ts

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,20 @@ export interface ApiErrorLogVO {
2727
createTime: Date
2828
}
2929

30-
export interface ApiErrorLogPageReqVO extends PageParam {
31-
userId?: number
32-
userType?: number
33-
applicationName?: string
34-
requestUrl?: string
35-
exceptionTime?: Date[]
36-
processStatus: number
37-
}
38-
39-
export interface ApiErrorLogExportReqVO {
40-
userId?: number
41-
userType?: number
42-
applicationName?: string
43-
requestUrl?: string
44-
exceptionTime?: Date[]
45-
processStatus: number
46-
}
47-
4830
// 查询列表API 访问日志
49-
export const getApiErrorLogPageApi = (params: ApiErrorLogPageReqVO) => {
31+
export const getApiErrorLogPage = (params: PageParam) => {
5032
return request.get({ url: '/infra/api-error-log/page', params })
5133
}
5234

5335
// 更新 API 错误日志的处理状态
54-
export const updateApiErrorLogPageApi = (id: number, processStatus: number) => {
36+
export const updateApiErrorLogPage = (id: number, processStatus: number) => {
5537
return request.put({
5638
url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
5739
})
5840
}
5941

6042
// 导出API 访问日志
61-
export const exportApiErrorLogApi = (params: ApiErrorLogExportReqVO) => {
43+
export const exportApiErrorLog = (params) => {
6244
return request.download({
6345
url: '/infra/api-error-log/export-excel',
6446
params

src/api/infra/config/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ export interface ConfigVO {
1212
createTime: Date
1313
}
1414

15-
export interface ConfigExportReqVO {
16-
name?: string
17-
key?: string
18-
type?: number
19-
createTime?: Date[]
20-
}
21-
2215
// 查询参数列表
2316
export const getConfigPage = (params: PageParam) => {
2417
return request.get({ url: '/infra/config/page', params })
@@ -50,6 +43,6 @@ export const deleteConfig = (id: number) => {
5043
}
5144

5245
// 导出参数
53-
export const exportConfigApi = (params: ConfigExportReqVO) => {
46+
export const exportConfigApi = (params) => {
5447
return request.download({ url: '/infra/config/export', params })
5548
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
import request from '@/config/axios'
22

33
export interface DataSourceConfigVO {
4-
id: number
4+
id: number | undefined
55
name: string
66
url: string
77
username: string
88
password: string
9-
createTime: Date
10-
}
11-
12-
// 查询数据源配置列表
13-
export const getDataSourceConfigListApi = () => {
14-
return request.get({ url: '/infra/data-source-config/list' })
15-
}
16-
17-
// 查询数据源配置详情
18-
export const getDataSourceConfigApi = (id: number) => {
19-
return request.get({ url: '/infra/data-source-config/get?id=' + id })
9+
createTime?: Date
2010
}
2111

2212
// 新增数据源配置
23-
export const createDataSourceConfigApi = (data: DataSourceConfigVO) => {
13+
export const createDataSourceConfig = (data: DataSourceConfigVO) => {
2414
return request.post({ url: '/infra/data-source-config/create', data })
2515
}
2616

2717
// 修改数据源配置
28-
export const updateDataSourceConfigApi = (data: DataSourceConfigVO) => {
18+
export const updateDataSourceConfig = (data: DataSourceConfigVO) => {
2919
return request.put({ url: '/infra/data-source-config/update', data })
3020
}
3121

3222
// 删除数据源配置
33-
export const deleteDataSourceConfigApi = (id: number) => {
23+
export const deleteDataSourceConfig = (id: number) => {
3424
return request.delete({ url: '/infra/data-source-config/delete?id=' + id })
3525
}
26+
27+
// 查询数据源配置详情
28+
export const getDataSourceConfig = (id: number) => {
29+
return request.get({ url: '/infra/data-source-config/get?id=' + id })
30+
}
31+
32+
// 查询数据源配置列表
33+
export const getDataSourceConfigList = () => {
34+
return request.get({ url: '/infra/data-source-config/list' })
35+
}
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
import request from '@/config/axios'
22

3-
export interface FileVO {
4-
id: number
5-
configId: number
6-
path: string
7-
name: string
8-
url: string
9-
size: string
10-
type: string
11-
createTime: Date
12-
}
13-
143
export interface FilePageReqVO extends PageParam {
154
path?: string
165
type?: string
176
createTime?: Date[]
187
}
198

209
// 查询文件列表
21-
export const getFilePageApi = (params: FilePageReqVO) => {
10+
export const getFilePage = (params: FilePageReqVO) => {
2211
return request.get({ url: '/infra/file/page', params })
2312
}
2413

2514
// 删除文件
26-
export const deleteFileApi = (id: number) => {
15+
export const deleteFile = (id: number) => {
2716
return request.delete({ url: '/infra/file/delete?id=' + id })
2817
}

src/api/infra/fileConfig/index.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface FileClientConfig {
1313
accessSecret?: string
1414
domain: string
1515
}
16+
1617
export interface FileConfigVO {
1718
id: number
1819
name: string
@@ -24,43 +25,37 @@ export interface FileConfigVO {
2425
createTime: Date
2526
}
2627

27-
export interface FileConfigPageReqVO extends PageParam {
28-
name?: string
29-
storage?: number
30-
createTime?: Date[]
31-
}
32-
3328
// 查询文件配置列表
34-
export const getFileConfigPageApi = (params: FileConfigPageReqVO) => {
29+
export const getFileConfigPage = (params: PageParam) => {
3530
return request.get({ url: '/infra/file-config/page', params })
3631
}
3732

3833
// 查询文件配置详情
39-
export const getFileConfigApi = (id: number) => {
34+
export const getFileConfig = (id: number) => {
4035
return request.get({ url: '/infra/file-config/get?id=' + id })
4136
}
4237

4338
// 更新文件配置为主配置
44-
export const updateFileConfigMasterApi = (id: number) => {
39+
export const updateFileConfigMaster = (id: number) => {
4540
return request.put({ url: '/infra/file-config/update-master?id=' + id })
4641
}
4742

4843
// 新增文件配置
49-
export const createFileConfigApi = (data: FileConfigVO) => {
44+
export const createFileConfig = (data: FileConfigVO) => {
5045
return request.post({ url: '/infra/file-config/create', data })
5146
}
5247

5348
// 修改文件配置
54-
export const updateFileConfigApi = (data: FileConfigVO) => {
49+
export const updateFileConfig = (data: FileConfigVO) => {
5550
return request.put({ url: '/infra/file-config/update', data })
5651
}
5752

5853
// 删除文件配置
59-
export const deleteFileConfigApi = (id: number) => {
54+
export const deleteFileConfig = (id: number) => {
6055
return request.delete({ url: '/infra/file-config/delete?id=' + id })
6156
}
6257

6358
// 测试文件配置
64-
export const testFileConfigApi = (id: number) => {
59+
export const testFileConfig = (id: number) => {
6560
return request.get({ url: '/infra/file-config/test?id=' + id })
6661
}

src/api/system/area/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import request from '@/config/axios'
2+
3+
// 获得地区树
4+
export const getAreaTree = async () => {
5+
return await request.get({ url: '/system/area/tree' })
6+
}
7+
8+
// 获得 IP 对应的地区名
9+
export const getAreaByIp = async (ip: string) => {
10+
return await request.get({ url: '/system/area/get-by-ip?ip=' + ip })
11+
}

src/api/system/dict/dict.data.ts

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,49 @@
11
import request from '@/config/axios'
2-
import type { DictDataVO, DictDataPageReqVO, DictDataExportReqVO } from './types'
2+
3+
export type DictDataVO = {
4+
id: number | undefined
5+
sort: number | undefined
6+
label: string
7+
value: string
8+
dictType: string
9+
status: number
10+
colorType: string
11+
cssClass: string
12+
remark: string
13+
createTime: Date
14+
}
315

416
// 查询字典数据(精简)列表
5-
export const listSimpleDictDataApi = () => {
17+
export const listSimpleDictData = () => {
618
return request.get({ url: '/system/dict-data/list-all-simple' })
719
}
820

921
// 查询字典数据列表
10-
export const getDictDataPageApi = (params: DictDataPageReqVO) => {
22+
export const getDictDataPage = (params: PageParam) => {
1123
return request.get({ url: '/system/dict-data/page', params })
1224
}
1325

1426
// 查询字典数据详情
15-
export const getDictDataApi = (id: number) => {
27+
export const getDictData = (id: number) => {
1628
return request.get({ url: '/system/dict-data/get?id=' + id })
1729
}
1830

1931
// 新增字典数据
20-
export const createDictDataApi = (data: DictDataVO) => {
32+
export const createDictData = (data: DictDataVO) => {
2133
return request.post({ url: '/system/dict-data/create', data })
2234
}
2335

2436
// 修改字典数据
25-
export const updateDictDataApi = (data: DictDataVO) => {
37+
export const updateDictData = (data: DictDataVO) => {
2638
return request.put({ url: '/system/dict-data/update', data })
2739
}
2840

2941
// 删除字典数据
30-
export const deleteDictDataApi = (id: number) => {
42+
export const deleteDictData = (id: number) => {
3143
return request.delete({ url: '/system/dict-data/delete?id=' + id })
3244
}
45+
3346
// 导出字典类型数据
34-
export const exportDictDataApi = (params: DictDataExportReqVO) => {
47+
export const exportDictDataApi = (params) => {
3548
return request.get({ url: '/system/dict-data/export', params })
3649
}

0 commit comments

Comments
 (0)